Skip to content

Commit

Permalink
Merge pull request #7747 from blink1073/toolbar-example-2.0
Browse files Browse the repository at this point in the history
Update notebook toolbar example
  • Loading branch information
Steven Silvester committed Jan 8, 2020
2 parents b3152c6 + 04da52b commit 9d2e616
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/developer/notebook.rst
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,11 @@ Copy the following to ``src/index.ts``:
*/
createNew(panel: NotebookPanel, context: DocumentRegistry.IContext<INotebookModel>): IDisposable {
let callback = () => {
NotebookActions.runAll(panel.content, context.session);
NotebookActions.runAll(panel.content, context.sessionContext);
};
let button = new ToolbarButton({
className: 'myButton',
iconClassName: 'fa fa-fast-forward',
iconClass: 'fa fa-fast-forward',
onClick: callback,
tooltip: 'Run All'
});
Expand Down

0 comments on commit 9d2e616

Please sign in to comment.