Skip to content

Instantly share code, notes, and snippets.

@blois
Created January 9, 2019 18:00
Show Gist options
  • Save blois/4bbc709adebffc2b520d76b6807ea4c3 to your computer and use it in GitHub Desktop.
Save blois/4bbc709adebffc2b520d76b6807ea4c3 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "d02f5278d8814a5c81e48ec94f4b234a",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"IntSlider(value=10)"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"import ipywidgets as widgets\n",
"widget = widgets.IntSlider(value=10)\n",
"widget\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.4rc1"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
"state": {
"d02f5278d8814a5c81e48ec94f4b234a": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.4.0",
"model_name": "IntSliderModel",
"state": {
"layout": "IPY_MODEL_d4e87652deb5489dba63b23b238aabe5",
"style": "IPY_MODEL_d178a283e87e49dfae3e64a8ef9795c4",
"value": 10
}
},
"d178a283e87e49dfae3e64a8ef9795c4": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.4.0",
"model_name": "SliderStyleModel",
"state": {
"description_width": ""
}
},
"d4e87652deb5489dba63b23b238aabe5": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.1.0",
"model_name": "LayoutModel",
"state": {}
}
},
"version_major": 2,
"version_minor": 0
}
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment