jupyterlab-emrys
Version:
A computational environment for Jupyter. Powered by Emrys
58 lines (57 loc) • 1.59 kB
TypeScript
import { ISession } from 'jupyter-js-services';
import { Message } from 'phosphor-messaging';
import { Panel } from 'phosphor-panel';
import { RenderMime } from '../rendermime';
import { ConsoleWidget } from './widget';
/**
* A panel which contains a console and the ability to add other children.
*/
export declare class ConsolePanel extends Panel {
/**
* Construct a console panel.
*/
constructor(options: ConsolePanel.IOptions);
/**
* The console widget used by the panel.
*
* #### Notes
* This is a read-only property.
*/
content: ConsoleWidget;
/**
* Dispose of the resources held by the widget.
*/
dispose(): void;
/**
* Handle `'close-request'` messages.
*/
protected onCloseRequest(msg: Message): void;
private _console;
}
/**
* A namespace for ConsolePanel statics.
*/
export declare namespace ConsolePanel {
/**
* The initialization options for a console panel.
*/
interface IOptions {
/**
* The optional console widget instance to display in the console panel.
*
* #### Notes
* If a console widget is passed in, its MIME renderer and session must
* match the values in the console panel options argument or it will result
* in undefined behavior.
*/
console?: ConsoleWidget;
/**
* The mime renderer for the console panel.
*/
rendermime: RenderMime;
/**
* The session for the console panel.
*/
session: ISession;
}
}