UNPKG

804 BJavaScriptView Raw
1// Copyright (c) Jupyter Development Team.
2// Distributed under the terms of the Modified BSD License.
3import { RankedMenu } from '@jupyterlab/ui-components';
4import { SemanticCommand } from '@jupyterlab/apputils';
5/**
6 * An extensible Kernel menu for the application.
7 */
8export class KernelMenu extends RankedMenu {
9 /**
10 * Construct the kernel menu.
11 */
12 constructor(options) {
13 super(options);
14 this.kernelUsers = {
15 changeKernel: new SemanticCommand(),
16 clearWidget: new SemanticCommand(),
17 interruptKernel: new SemanticCommand(),
18 reconnectToKernel: new SemanticCommand(),
19 restartKernel: new SemanticCommand(),
20 shutdownKernel: new SemanticCommand()
21 };
22 }
23}
24//# sourceMappingURL=kernel.js.map
\No newline at end of file