|
47 | 47 | }, |
48 | 48 | { |
49 | 49 | "cell_type": "code", |
50 | | - "execution_count": 1, |
| 50 | + "execution_count": null, |
51 | 51 | "metadata": {}, |
52 | 52 | "outputs": [], |
53 | 53 | "source": [ |
|
65 | 65 | }, |
66 | 66 | { |
67 | 67 | "cell_type": "code", |
68 | | - "execution_count": 2, |
69 | | - "metadata": {}, |
70 | | - "outputs": [ |
71 | | - { |
72 | | - "name": "stdout", |
73 | | - "output_type": "stream", |
74 | | - "text": [ |
75 | | - "[2020-04-22 17:37:27 -0700] [3083] [INFO] Goin' Fast @ http://127.0.0.1:8765\n" |
76 | | - ] |
77 | | - } |
78 | | - ], |
| 68 | + "execution_count": null, |
| 69 | + "metadata": {}, |
| 70 | + "outputs": [], |
79 | 71 | "source": [ |
80 | 72 | "from idom.server.sanic import PerClientState\n", |
81 | 73 | "from example_utils import setup_example_server, display_href, pretty_dict_string\n", |
|
98 | 90 | }, |
99 | 91 | { |
100 | 92 | "cell_type": "code", |
101 | | - "execution_count": 3, |
| 93 | + "execution_count": null, |
102 | 94 | "metadata": {}, |
103 | 95 | "outputs": [], |
104 | 96 | "source": [ |
|
123 | 115 | }, |
124 | 116 | { |
125 | 117 | "cell_type": "code", |
126 | | - "execution_count": 4, |
127 | | - "metadata": {}, |
128 | | - "outputs": [ |
129 | | - { |
130 | | - "name": "stdout", |
131 | | - "output_type": "stream", |
132 | | - "text": [ |
133 | | - "Try clicking the image! 🖱️\n" |
134 | | - ] |
135 | | - }, |
136 | | - { |
137 | | - "data": { |
138 | | - "text/html": [ |
139 | | - "<script>document.idomServerExists = true;</script>" |
140 | | - ] |
141 | | - }, |
142 | | - "metadata": {}, |
143 | | - "output_type": "display_data" |
144 | | - }, |
145 | | - { |
146 | | - "data": { |
147 | | - "text/html": [ |
148 | | - "\n", |
149 | | - " <div id=\"idom-2dbb91f1d1c948adab63c95854c5b9db\" class=\"idom-widget\"/>\n", |
150 | | - " \n", |
151 | | - " <script type=\"module\">\n", |
152 | | - " // we want to avoid making this request (in case of CORS)\n", |
153 | | - " // unless we know an IDOM server is expected to respond\n", |
154 | | - " if (document.idomServerExists) {\n", |
155 | | - " const loc = {\"host\": \"127.0.0.1:8765\", \"protocol\": \"http:\"};\n", |
156 | | - " const idom_url = \"//\" + loc.host + \"\";\n", |
157 | | - " const http_proto = loc.protocol;\n", |
158 | | - " const ws_proto = (http_proto === \"https:\") ? \"wss:\" : \"ws:\";\n", |
159 | | - " import(http_proto + idom_url + \"/client/core_modules/layout.js\").then(\n", |
160 | | - " (module) => {\n", |
161 | | - " module.renderLayout(\n", |
162 | | - " document.getElementById(\"idom-2dbb91f1d1c948adab63c95854c5b9db\"),\n", |
163 | | - " ws_proto + idom_url + \"/stream\"\n", |
164 | | - " );\n", |
165 | | - " }\n", |
166 | | - " );\n", |
167 | | - " }\n", |
168 | | - " </script>\n", |
169 | | - " \n", |
170 | | - " " |
171 | | - ], |
172 | | - "text/plain": [ |
173 | | - "JupyterWigdet('')" |
174 | | - ] |
175 | | - }, |
176 | | - "execution_count": 4, |
177 | | - "metadata": {}, |
178 | | - "output_type": "execute_result" |
179 | | - } |
180 | | - ], |
| 118 | + "execution_count": null, |
| 119 | + "metadata": {}, |
| 120 | + "outputs": [], |
181 | 121 | "source": [ |
182 | 122 | "print(\"Try clicking the image! 🖱️\")\n", |
183 | 123 | "\n", |
|
0 commit comments