Skip to content

Commit 3ade0cb

Browse files
committed
Add output
1 parent 0e47552 commit 3ade0cb

File tree

1 file changed

+111
-37
lines changed

1 file changed

+111
-37
lines changed

examples/widgets.ipynb

Lines changed: 111 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
{
1919
"data": {
2020
"application/vnd.jupyter.widget-view+json": {
21-
"model_id": "a2b6c7c1e88640f762df08941d757f97",
21+
"model_id": "9d9eefdeb56a472c6408c7bde31a5a59",
2222
"version_major": 2,
2323
"version_minor": 0
2424
},
@@ -39,9 +39,35 @@
3939
},
4040
{
4141
"cell_type": "code",
42-
"execution_count": null,
42+
"execution_count": 2,
4343
"metadata": {},
44-
"outputs": [],
44+
"outputs": [
45+
{
46+
"data": {
47+
"text/plain": [
48+
"A-INT-SLIDER"
49+
]
50+
},
51+
"execution_count": 2,
52+
"metadata": {},
53+
"output_type": "execute_result"
54+
},
55+
{
56+
"data": {
57+
"application/vnd.jupyter.widget-view+json": {
58+
"model_id": "05328a0cd5cb45699d57f4b2f8785fe4",
59+
"version_major": 2,
60+
"version_minor": 0
61+
},
62+
"text/plain": [
63+
"A Jupyter Widget"
64+
]
65+
},
66+
"execution_count": 2,
67+
"metadata": {},
68+
"output_type": "execute_result"
69+
}
70+
],
4571
"source": [
4672
"(defvar a-int-slider (jw:make-int-slider))\n",
4773
"\n",
@@ -50,36 +76,85 @@
5076
},
5177
{
5278
"cell_type": "code",
53-
"execution_count": null,
79+
"execution_count": 3,
5480
"metadata": {},
55-
"outputs": [],
81+
"outputs": [
82+
{
83+
"data": {
84+
"text/plain": [
85+
"0"
86+
]
87+
},
88+
"execution_count": 3,
89+
"metadata": {},
90+
"output_type": "execute_result"
91+
}
92+
],
5693
"source": [
5794
"(jw:widget-value a-int-slider)"
5895
]
5996
},
6097
{
6198
"cell_type": "code",
62-
"execution_count": null,
99+
"execution_count": 4,
63100
"metadata": {},
64-
"outputs": [],
101+
"outputs": [
102+
{
103+
"data": {
104+
"text/plain": [
105+
"10"
106+
]
107+
},
108+
"execution_count": 4,
109+
"metadata": {},
110+
"output_type": "execute_result"
111+
}
112+
],
65113
"source": [
66114
"(setf (jw:widget-value a-int-slider) 10)"
67115
]
68116
},
69117
{
70118
"cell_type": "code",
71-
"execution_count": null,
119+
"execution_count": 5,
72120
"metadata": {},
73-
"outputs": [],
121+
"outputs": [
122+
{
123+
"data": {
124+
"text/plain": [
125+
"\"vertical\""
126+
]
127+
},
128+
"execution_count": 5,
129+
"metadata": {},
130+
"output_type": "execute_result"
131+
}
132+
],
74133
"source": [
75134
"(setf (jw:widget-orientation a-int-slider) \"vertical\")"
76135
]
77136
},
78137
{
79138
"cell_type": "code",
80-
"execution_count": null,
139+
"execution_count": 6,
81140
"metadata": {},
82-
"outputs": [],
141+
"outputs": [
142+
{
143+
"data": {
144+
"application/vnd.jupyter.widget-view+json": {
145+
"model_id": "05328a0cd5cb45699d57f4b2f8785fe4",
146+
"version_major": 2,
147+
"version_minor": 0
148+
},
149+
"text/plain": [
150+
"A Jupyter Widget"
151+
]
152+
},
153+
"execution_count": 6,
154+
"metadata": {},
155+
"output_type": "execute_result"
156+
}
157+
],
83158
"source": [
84159
"a-int-slider"
85160
]
@@ -104,56 +179,55 @@
104179
"mimetype": "text/x-common-lisp",
105180
"name": "common-lisp",
106181
"pygments_lexer": "common-lisp",
107-
"version": "2.1.6"
182+
"version": "2.2.5"
108183
},
109184
"widgets": {
110185
"application/vnd.jupyter.widget-state+json": {
111186
"state": {
112-
"1c73e203ebb641736338d165f1d1cf2b": {
113-
"model_module": "@jupyter-widgets/controls",
114-
"model_module_version": "1.5.0",
115-
"model_name": "ButtonStyleModel",
116-
"state": {}
117-
},
118-
"27a88fde460b47373acae976fe7c5314": {
187+
"05328a0cd5cb45699d57f4b2f8785fe4": {
119188
"model_module": "@jupyter-widgets/controls",
120189
"model_module_version": "1.5.0",
121190
"model_name": "IntSliderModel",
122191
"state": {
123-
"layout": "IPY_MODEL_34ffa2ac7f8b4dc13483e64fa3bbc532",
192+
"layout": "IPY_MODEL_b6ddc5553b9344be0f7259dbac149819",
124193
"orientation": "vertical",
125-
"style": "IPY_MODEL_3053b0a84e404f4223745eebfbd9cad5",
194+
"style": "IPY_MODEL_e979389e57514553c787fd255fbf2183",
126195
"value": 10
127196
}
128197
},
129-
"3053b0a84e404f4223745eebfbd9cad5": {
130-
"model_module": "@jupyter-widgets/controls",
131-
"model_module_version": "1.5.0",
132-
"model_name": "SliderStyleModel",
133-
"state": {}
134-
},
135-
"34ffa2ac7f8b4dc13483e64fa3bbc532": {
198+
"3b36bf817f594f54bc81e7bd215a8b4b": {
136199
"model_module": "@jupyter-widgets/base",
137200
"model_module_version": "1.2.0",
138201
"model_name": "LayoutModel",
139202
"state": {}
140203
},
141-
"76d9935234944092dfa3e2ea2dfd5813": {
204+
"9d9eefdeb56a472c6408c7bde31a5a59": {
205+
"model_module": "@jupyter-widgets/controls",
206+
"model_module_version": "1.5.0",
207+
"model_name": "ButtonModel",
208+
"state": {
209+
"description": "Click me",
210+
"layout": "IPY_MODEL_3b36bf817f594f54bc81e7bd215a8b4b",
211+
"style": "IPY_MODEL_af6412848c1c44b1f22b53bdadafbf3d"
212+
}
213+
},
214+
"af6412848c1c44b1f22b53bdadafbf3d": {
215+
"model_module": "@jupyter-widgets/controls",
216+
"model_module_version": "1.5.0",
217+
"model_name": "ButtonStyleModel",
218+
"state": {}
219+
},
220+
"b6ddc5553b9344be0f7259dbac149819": {
142221
"model_module": "@jupyter-widgets/base",
143222
"model_module_version": "1.2.0",
144223
"model_name": "LayoutModel",
145224
"state": {}
146225
},
147-
"d6d1783994284c47f132d25b42a15c12": {
226+
"e979389e57514553c787fd255fbf2183": {
148227
"model_module": "@jupyter-widgets/controls",
149228
"model_module_version": "1.5.0",
150-
"model_name": "ButtonModel",
151-
"state": {
152-
"description": "Click me",
153-
"layout": "IPY_MODEL_76d9935234944092dfa3e2ea2dfd5813",
154-
"style": "IPY_MODEL_1c73e203ebb641736338d165f1d1cf2b",
155-
"tooltip": null
156-
}
229+
"model_name": "SliderStyleModel",
230+
"state": {}
157231
}
158232
},
159233
"version_major": 2,

0 commit comments

Comments
 (0)