UNPKG

1.57 kBTypeScriptView Raw
1import { ITranslator } from '@jupyterlab/translation';
2import { Widget } from '@lumino/widgets';
3import { ISessionContext } from '../sessioncontext';
4/**
5 * The namespace for Toolbar class statics.
6 */
7export declare namespace Toolbar {
8 /**
9 * Create an interrupt toolbar item.
10 *
11 * @deprecated since version v3.2
12 * This is dead code now.
13 */
14 function createInterruptButton(sessionContext: ISessionContext, translator?: ITranslator): Widget;
15 /**
16 * Create a restart toolbar item.
17 *
18 * @deprecated since v3.2
19 * This is dead code now.
20 */
21 function createRestartButton(sessionContext: ISessionContext, dialogs?: ISessionContext.IDialogs, translator?: ITranslator): Widget;
22 /**
23 * Create a kernel name indicator item.
24 *
25 * #### Notes
26 * It will display the `'display_name`' of the session context. It can
27 * handle a change in context or kernel.
28 */
29 function createKernelNameItem(sessionContext: ISessionContext, dialogs?: ISessionContext.IDialogs, translator?: ITranslator): Widget;
30 /**
31 * Create a kernel status indicator item.
32 *
33 * @deprecated since v3.5
34 * The kernel status indicator is now replaced by the execution status indicator.
35 *
36 * #### Notes
37 * It will show a busy status if the kernel status is busy.
38 * It will show the current status in the node title.
39 * It can handle a change to the context or the kernel.
40 */
41 function createKernelStatusItem(sessionContext: ISessionContext, translator?: ITranslator): Widget;
42}