Skip to content

Commit

Permalink
remove unneeded traitlets imports and document that the link and dlin…
Browse files Browse the repository at this point in the history
…k are re-exported by ipywidgets
  • Loading branch information
rprimet committed Jan 24, 2018
1 parent 69dda10 commit 3ca8108
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions docs/source/examples/Widget Events.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -250,18 +250,7 @@
"source": [
"### Linking traitlets attributes in the kernel\n",
"\n",
"The first method is to use the `link` and `dlink` functions from the `traitlets` module. This only works if we are interacting with a live kernel."
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"import traitlets"
"The first method is to use the `link` and `dlink` functions from the `traitlets` module (these two functions are re-exported by the `ipywidgets` module for convenience). This only works if we are interacting with a live kernel."
]
},
{
Expand Down Expand Up @@ -651,7 +640,6 @@
}
],
"source": [
"import traitlets\n",
"a = widgets.IntSlider(description=\"Delayed\", continuous_update=False)\n",
"b = widgets.IntText(description=\"Delayed\", continuous_update=False)\n",
"c = widgets.IntSlider(description=\"Continuous\", continuous_update=True)\n",
Expand Down

0 comments on commit 3ca8108

Please sign in to comment.