Skip to content

Commit 22c78fb

Browse files
committed
add test notebook for basic ipywidget rendering in nbconvert
1 parent 6123427 commit 22c78fb

File tree

1 file changed

+131
-0
lines changed

1 file changed

+131
-0
lines changed
Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": 1,
6+
"metadata": {},
7+
"outputs": [
8+
{
9+
"data": {
10+
"application/vnd.jupyter.widget-view+json": {
11+
"model_id": "a38737676d4a415bbff6dc67a297ef62",
12+
"version_major": 2,
13+
"version_minor": 0
14+
},
15+
"text/plain": [
16+
"IntSlider(value=7, continuous_update=False, description='Test:', max=10)"
17+
]
18+
},
19+
"metadata": {},
20+
"output_type": "display_data"
21+
}
22+
],
23+
"source": [
24+
"import ipywidgets as widgets\n",
25+
"\n",
26+
"widgets.IntSlider(\n",
27+
" value=7,\n",
28+
" min=0,\n",
29+
" max=10,\n",
30+
" step=1,\n",
31+
" description='Test:',\n",
32+
" disabled=False,\n",
33+
" continuous_update=False,\n",
34+
" orientation='horizontal',\n",
35+
" readout=True,\n",
36+
" readout_format='d'\n",
37+
")"
38+
]
39+
},
40+
{
41+
"cell_type": "code",
42+
"execution_count": null,
43+
"metadata": {},
44+
"outputs": [],
45+
"source": []
46+
}
47+
],
48+
"metadata": {
49+
"kernelspec": {
50+
"display_name": "Python 3",
51+
"language": "python",
52+
"name": "python3"
53+
},
54+
"language_info": {
55+
"codemirror_mode": {
56+
"name": "ipython",
57+
"version": 3
58+
},
59+
"file_extension": ".py",
60+
"mimetype": "text/x-python",
61+
"name": "python",
62+
"nbconvert_exporter": "python",
63+
"pygments_lexer": "ipython3",
64+
"version": "3.6.3"
65+
},
66+
"widgets": {
67+
"application/vnd.jupyter.widget-state+json": {
68+
"state": {
69+
"230bc9c767974d7c9a1933f3839c84de": {
70+
"model_module": "@jupyter-widgets/base",
71+
"model_module_version": "1.0.0",
72+
"model_name": "LayoutModel",
73+
"state": {}
74+
},
75+
"52fa0250b745454cb6e5f536fee784e4": {
76+
"model_module": "@jupyter-widgets/base",
77+
"model_module_version": "1.0.0",
78+
"model_name": "LayoutModel",
79+
"state": {}
80+
},
81+
"69a47956a44b4a3e9eaac5f895580e01": {
82+
"model_module": "@jupyter-widgets/controls",
83+
"model_module_version": "1.2.0",
84+
"model_name": "SliderStyleModel",
85+
"state": {
86+
"description_width": ""
87+
}
88+
},
89+
"97f58405dbbe45769dbe014ce928c083": {
90+
"model_module": "@jupyter-widgets/controls",
91+
"model_module_version": "1.2.0",
92+
"model_name": "SliderStyleModel",
93+
"state": {
94+
"description_width": ""
95+
}
96+
},
97+
"a38737676d4a415bbff6dc67a297ef62": {
98+
"model_module": "@jupyter-widgets/controls",
99+
"model_module_version": "1.2.0",
100+
"model_name": "IntSliderModel",
101+
"state": {
102+
"continuous_update": false,
103+
"description": "Test:",
104+
"layout": "IPY_MODEL_230bc9c767974d7c9a1933f3839c84de",
105+
"max": 10,
106+
"style": "IPY_MODEL_69a47956a44b4a3e9eaac5f895580e01",
107+
"value": 7
108+
}
109+
},
110+
"d2f27dec3e5e430eb7ee64f4e442e7b7": {
111+
"model_module": "@jupyter-widgets/controls",
112+
"model_module_version": "1.2.0",
113+
"model_name": "IntSliderModel",
114+
"state": {
115+
"continuous_update": false,
116+
"description": "Test:",
117+
"layout": "IPY_MODEL_52fa0250b745454cb6e5f536fee784e4",
118+
"max": 10,
119+
"style": "IPY_MODEL_97f58405dbbe45769dbe014ce928c083",
120+
"value": 7
121+
}
122+
}
123+
},
124+
"version_major": 2,
125+
"version_minor": 0
126+
}
127+
}
128+
},
129+
"nbformat": 4,
130+
"nbformat_minor": 2
131+
}

0 commit comments

Comments
 (0)