Skip to content

Instantly share code, notes, and snippets.

@cgestes
Created January 29, 2015 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cgestes/e029c475b08bdfe43f6a to your computer and use it in GitHub Desktop.
Save cgestes/e029c475b08bdfe43f6a to your computer and use it in GitHub Desktop.
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
":0: FutureWarning: IPython widgets are experimental and may change in the future.\n",
"WARNING: \"FloatSliderWidget\" is deprecated, please use \"FloatSlider\" instead.\n"
]
}
],
"source": [
"from IPython.html import widgets\n",
"from IPython.display import clear_output, display, HTML\n",
"mywidget = widgets.FloatSliderWidget()\n",
"#display(mywidget)\n",
"pop = widgets.Dock([mywidget])\n",
"display(pop)\n",
"display(mywidget)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.9"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment