Skip to content

Commit e685cc3

Browse files
committed
Bugfix: When launching, _replace_ launcher with widget
If we don't return the widget, the launcher doesn't have enough information to replace itself
1 parent 4e6d649 commit e685cc3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ const plugin: JupyterFrontEndPlugin<void> = {
6161

6262
// Then add it to the main area:
6363
app.shell.add(widget, 'main');
64+
return widget;
6465
},
6566
icon: imageIcon,
6667
label: 'View a random image & caption'

0 commit comments

Comments
 (0)