Skip to content

Commit

Permalink
WIP: Naive attempt at adding toolbar to the Notebook widget
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisher87 committed Jan 23, 2025
1 parent ea7ceea commit 5329e90
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions python/jupytergis_lab/src/notebookrenderer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import { ICollaborativeDrive } from '@jupyter/collaborative-drive';
import { JupyterGISPanel } from '@jupytergis/base';
import {
JupyterGISPanel,
JupyterGISWidget,
ToolbarWidget
} from '@jupytergis/base';
import { JupyterGISModel, IJupyterGISDoc } from '@jupytergis/schema';

import {
Expand Down Expand Up @@ -35,7 +39,15 @@ export class YJupyterGISLuminoWidget extends Panel {
super();

this.addClass(CLASS_NAME);
this._jgisWidget = new JupyterGISPanel(options);
this._jgisWidget = new JupyterGISWidget({
// FIXME: Where do we get a context object?
// context: ...,
content: new JupyterGISPanel(options),
toolbar: new ToolbarWidget({
model: options.model,
externalCommands: [],
}),
});
this.addWidget(this._jgisWidget);
}

Expand All @@ -48,7 +60,7 @@ export class YJupyterGISLuminoWidget extends Panel {
}
};

private _jgisWidget: JupyterGISPanel;
private _jgisWidget: JupyterGISWidget;
}

export const notebookRenderePlugin: JupyterFrontEndPlugin<void> = {
Expand Down

0 comments on commit 5329e90

Please sign in to comment.