diff options
Diffstat (limited to 'cli/tests/testdata/jupyter/integration_test.ipynb')
-rw-r--r-- | cli/tests/testdata/jupyter/integration_test.ipynb | 51 |
1 files changed, 50 insertions, 1 deletions
diff --git a/cli/tests/testdata/jupyter/integration_test.ipynb b/cli/tests/testdata/jupyter/integration_test.ipynb index e9347750d..1d48c8fc9 100644 --- a/cli/tests/testdata/jupyter/integration_test.ipynb +++ b/cli/tests/testdata/jupyter/integration_test.ipynb @@ -665,9 +665,58 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "id": "8e93df23-06eb-414b-98d4-51fbebb53d1f", "metadata": {}, + "outputs": [ + { + "ename": "TypeError", + "evalue": "Cannot read properties of undefined (reading 'broadcast')", + "output_type": "error", + "traceback": [ + "Stack trace:", + "TypeError: Cannot read properties of undefined (reading 'broadcast')", + " at <anonymous>:2:20" + ] + } + ], + "source": [ + "await Deno.jupyter.broadcast(\"display_data\", {\n", + " data: { \"text/html\": \"<b>Processing.</b>\" },\n", + " metadata: {},\n", + " transient: { display_id: \"progress\" }\n", + "});\n", + "\n", + "await new Promise((resolve) => setTimeout(resolve, 500));\n", + "\n", + "await Deno.jupyter.broadcast(\"update_display_data\", {\n", + " data: { \"text/html\": \"<b>Processing..</b>\" },\n", + " metadata: {},\n", + " transient: { display_id: \"progress\" }\n", + "});\n", + "\n", + "await new Promise((resolve) => setTimeout(resolve, 500));\n", + "\n", + "await Deno.jupyter.broadcast(\"update_display_data\", {\n", + " data: { \"text/html\": \"<b>Processing...</b>\" },\n", + " metadata: {},\n", + " transient: { display_id: \"progress\" }\n", + "});\n", + "\n", + "await new Promise((resolve) => setTimeout(resolve, 500));\n", + "\n", + "await Deno.jupyter.broadcast(\"update_display_data\", {\n", + " data: { \"text/html\": \"<b>Complete ✅</b>\" },\n", + " metadata: {},\n", + " transient: { display_id: \"progress\" }\n", + "});" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "0181f28e", + "metadata": {}, "outputs": [], "source": [] } |