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\"