Skip to content

Commit

Permalink
Replaced FrontEndSubsection with AsyncWidgetBase. Dropped CommandPale…
Browse files Browse the repository at this point in the history
…tteModel.

AsyncWidgetBase added _basename and concept of 'base'. Dropped pallet.ts. Tidied up IpylabModel and now making operation super calls from subclasses.
  • Loading branch information
Alan Fleming committed Aug 26, 2024
1 parent f06268e commit 48d4a85
Show file tree
Hide file tree
Showing 21 changed files with 690 additions and 628 deletions.
6 changes: 3 additions & 3 deletions examples/autostart.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@
"\n",
"\n",
"async def register_commands():\n",
" await app.commands.add_command(\n",
" cmd = await app.commands.add(\n",
" \"start_my_app\", execute=start_my_app, label=\"Start Custom App\", icon_class=\"jp-PythonIcon\"\n",
" )\n",
" await app.launcher.add_item(\"start_my_app\", \"Ipylab\")\n",
" await cmd.add_launcher(\"Ipylab\")\n",
"\n",
"\n",
"ipylab_plugin = None\n",
Expand Down Expand Up @@ -191,7 +191,7 @@
"metadata": {},
"outputs": [],
"source": [
"app.launcher.remove_item(\"start_my_app\", \"Ipylab\")"
"app.commands.launcher.remove(str(cmd), \"Ipylab\")"
]
}
],
Expand Down
Loading

0 comments on commit 48d4a85

Please sign in to comment.