@jupyterlab/apputils
Version:
JupyterLab - Application Utilities
43 lines (42 loc) • 1.57 kB
TypeScript
import { ITranslator } from '@jupyterlab/translation';
import { Widget } from '@lumino/widgets';
import { ISessionContext } from '../sessioncontext';
/**
* The namespace for Toolbar class statics.
*/
export declare namespace Toolbar {
/**
* Create an interrupt toolbar item.
*
* @deprecated since version v3.2
* This is dead code now.
*/
function createInterruptButton(sessionContext: ISessionContext, translator?: ITranslator): Widget;
/**
* Create a restart toolbar item.
*
* @deprecated since v3.2
* This is dead code now.
*/
function createRestartButton(sessionContext: ISessionContext, dialogs?: ISessionContext.IDialogs, translator?: ITranslator): Widget;
/**
* Create a kernel name indicator item.
*
* #### Notes
* It will display the `'display_name`' of the session context. It can
* handle a change in context or kernel.
*/
function createKernelNameItem(sessionContext: ISessionContext, dialogs?: ISessionContext.IDialogs, translator?: ITranslator): Widget;
/**
* Create a kernel status indicator item.
*
* @deprecated since v3.5
* The kernel status indicator is now replaced by the execution status indicator.
*
* #### Notes
* It will show a busy status if the kernel status is busy.
* It will show the current status in the node title.
* It can handle a change to the context or the kernel.
*/
function createKernelStatusItem(sessionContext: ISessionContext, translator?: ITranslator): Widget;
}