|
42 | 42 | { |
43 | 43 | "data": { |
44 | 44 | "text/plain": [ |
45 | | - "App(7fb06f32c400)" |
| 45 | + "App(7f911920b6a0)" |
46 | 46 | ] |
47 | 47 | }, |
48 | 48 | "execution_count": 2, |
|
52 | 52 | { |
53 | 53 | "data": { |
54 | 54 | "application/vnd.jupyter.widget-view+json": { |
55 | | - "model_id": "c788abe7d2404a57a53902bdb13f4c1a", |
| 55 | + "model_id": "14bfdffe5d5148b8bf923dc95fbfd788", |
56 | 56 | "version_major": 2, |
57 | 57 | "version_minor": 0 |
58 | 58 | }, |
59 | 59 | "text/plain": [ |
60 | | - "LayoutWidget(Layout(App(7fb06f32c400)))" |
| 60 | + "LayoutWidget(Layout(App(7f911920b6a0)))" |
61 | 61 | ] |
62 | 62 | }, |
63 | 63 | "metadata": {}, |
|
89 | 89 | }, |
90 | 90 | { |
91 | 91 | "cell_type": "code", |
92 | | - "execution_count": 3, |
| 92 | + "execution_count": null, |
93 | 93 | "metadata": {}, |
94 | | - "outputs": [ |
95 | | - { |
96 | | - "data": { |
97 | | - "text/plain": [ |
98 | | - "TodoList(7fb06f32c880)" |
99 | | - ] |
100 | | - }, |
101 | | - "execution_count": 3, |
102 | | - "metadata": {}, |
103 | | - "output_type": "execute_result" |
104 | | - }, |
105 | | - { |
106 | | - "data": { |
107 | | - "application/vnd.jupyter.widget-view+json": { |
108 | | - "model_id": "6263559b25bf445e9c8c3e8e12995d0b", |
109 | | - "version_major": 2, |
110 | | - "version_minor": 0 |
111 | | - }, |
112 | | - "text/plain": [ |
113 | | - "LayoutWidget(Layout(TodoList(7fb06f32c880)))" |
114 | | - ] |
115 | | - }, |
116 | | - "metadata": {}, |
117 | | - "output_type": "display_data" |
118 | | - } |
119 | | - ], |
| 94 | + "outputs": [], |
120 | 95 | "source": [ |
121 | 96 | "from idom import component, html\n", |
122 | 97 | "\n", |
|
165 | 140 | }, |
166 | 141 | { |
167 | 142 | "cell_type": "code", |
168 | | - "execution_count": 4, |
| 143 | + "execution_count": null, |
169 | 144 | "metadata": {}, |
170 | | - "outputs": [ |
171 | | - { |
172 | | - "data": { |
173 | | - "text/plain": [ |
174 | | - "Gallery(7fb0845b7460)" |
175 | | - ] |
176 | | - }, |
177 | | - "execution_count": 4, |
178 | | - "metadata": {}, |
179 | | - "output_type": "execute_result" |
180 | | - }, |
181 | | - { |
182 | | - "data": { |
183 | | - "application/vnd.jupyter.widget-view+json": { |
184 | | - "model_id": "7421b51daf6c44e09922f2cc3df143e4", |
185 | | - "version_major": 2, |
186 | | - "version_minor": 0 |
187 | | - }, |
188 | | - "text/plain": [ |
189 | | - "LayoutWidget(Layout(Gallery(7fb0845b7460)))" |
190 | | - ] |
191 | | - }, |
192 | | - "metadata": {}, |
193 | | - "output_type": "display_data" |
194 | | - } |
195 | | - ], |
| 145 | + "outputs": [], |
196 | 146 | "source": [ |
197 | 147 | "import json\n", |
198 | 148 | "from pathlib import Path\n", |
|
239 | 189 | "\n", |
240 | 190 | "While IDOM is a great tool for displaying HTML and responding to browser events with pure Python, there are other projects which already allow you to do this inside Jupyter Notebooks or in standard web apps. The real power of IDOM comes from its ability to seamlessly leverage the existing Javascript ecosystem:\n", |
241 | 191 | "\n", |
242 | | - "<a href=\"https://idom-docs.herokuapp.com/docs/escape-hatches/javascript-components.html\" target=\"_blank\"><button>Read More!</button></a>" |
| 192 | + "<a href=\"https://idom-docs.herokuapp.com/docs/guides/escape-hatches/javascript-components.html\" target=\"_blank\"><button>Read More!</button></a>" |
243 | 193 | ] |
244 | 194 | }, |
245 | 195 | { |
246 | 196 | "cell_type": "code", |
247 | | - "execution_count": 5, |
| 197 | + "execution_count": null, |
248 | 198 | "metadata": {}, |
249 | | - "outputs": [ |
250 | | - { |
251 | | - "name": "stdout", |
252 | | - "output_type": "stream", |
253 | | - "text": [ |
254 | | - "2022-12-23T00:31:22-0800 | \u001b[32mINFO\u001b[0m | Existing web module '__from_template__/victory-bar.js' will be replaced with /home/ryan/.local/share/idom-jupyter/__from_template__/victory-bar.js\u001b[0m\n" |
255 | | - ] |
256 | | - }, |
257 | | - { |
258 | | - "data": { |
259 | | - "text/plain": [ |
260 | | - "Demo(7fb06f32e3e0)" |
261 | | - ] |
262 | | - }, |
263 | | - "execution_count": 5, |
264 | | - "metadata": {}, |
265 | | - "output_type": "execute_result" |
266 | | - }, |
267 | | - { |
268 | | - "data": { |
269 | | - "application/vnd.jupyter.widget-view+json": { |
270 | | - "model_id": "041a6087bb294cfcac034f01decee3a9", |
271 | | - "version_major": 2, |
272 | | - "version_minor": 0 |
273 | | - }, |
274 | | - "text/plain": [ |
275 | | - "LayoutWidget(Layout(Demo(7fb06f32e3e0)))" |
276 | | - ] |
277 | | - }, |
278 | | - "metadata": {}, |
279 | | - "output_type": "display_data" |
280 | | - } |
281 | | - ], |
| 199 | + "outputs": [], |
282 | 200 | "source": [ |
283 | 201 | "from idom import component, web\n", |
284 | 202 | "\n", |
|
306 | 224 | ], |
307 | 225 | "metadata": { |
308 | 226 | "kernelspec": { |
309 | | - "display_name": "Python 3.10.6 ('venv': venv)", |
| 227 | + "display_name": "Python 3 (ipykernel)", |
310 | 228 | "language": "python", |
311 | 229 | "name": "python3" |
312 | 230 | }, |
|
0 commit comments