diff --git a/examples/autostart.ipynb b/examples/autostart.ipynb index 0096ffe..32caa75 100644 --- a/examples/autostart.ipynb +++ b/examples/autostart.ipynb @@ -91,11 +91,16 @@ " tooltip=\"An error dialog will pop up when this is clicked.\\n\"\n", " \"The dialog demonstrates the use of the `on_frontend_error` plugin.\",\n", " )\n", - " console_button.on_click(lambda _: ma.load_console() if ma.console_status == \"unloaded\" else ma.unload_console())\n", + " console_button.on_click(\n", + " lambda _: ma.load_console(path=\"console\") if ma.console_status == \"unloaded\" else ma.unload_console()\n", + " )\n", " error_button.on_click(lambda _: ma.executeCommand(\"Not a command\"))\n", + " console_status = ipw.HTML()\n", + " ipw.dlink((ma, \"console_status\"), (console_status, \"value\"))\n", " ma.content.children = [\n", " ipw.HTML(f\"

My simple app

Welcome to my app.
kernel id: {ma.kernelId}\"),\n", " ipw.HBox([console_button, error_button]),\n", + " console_status,\n", " ]\n", "\n", " # Shutdown when MainArea is unloaded.\n", @@ -182,7 +187,18 @@ "execution_count": null, "metadata": {}, "outputs": [], - "source": [] + "source": [ + "import ipywidgets as ipw" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "ipw.Label" + ] } ], "metadata": { @@ -201,7 +217,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.13" + "version": "3.10.14" } }, "nbformat": 4,