Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export
const shiftEnterToExecute = 'consol:shift-enter-to-execute';
}
/**
* The console widget tracker provider.
*/
const tracker: JupyterLabPlugin = {
id: '@jupyterlab/console-extension:tracker',
provides: IConsoleTracker,
requires: [
IMainMenu,
ICommandPalette,
ConsolePanel.IContentFactory,
IEditorServices,
ILayoutRestorer,
IFileBrowserFactory,
IRenderMimeRegistry,
ISettingRegistry
],
optional: [ILauncher],
activate: activateConsole,
autoStart: true
};
/**
* The console widget content factory.
*/
const factory: JupyterLabPlugin = {
export const shiftEnterToExecute = 'console:shift-enter-to-execute';
export const interactionMode = 'console:interaction-mode';
}
/**
* The console widget tracker provider.
*/
const tracker: JupyterFrontEndPlugin = {
id: '@jupyterlab/console-extension:tracker',
provides: IConsoleTracker,
requires: [
IMainMenu,
ICommandPalette,
ConsolePanel.IContentFactory,
IEditorServices,
ILayoutRestorer,
IFileBrowserFactory,
IRenderMimeRegistry,
ISettingRegistry
],
optional: [ILauncher, ILabStatus],
activate: activateConsole,
autoStart: true
};
/**
* The console widget content factory.
*/
const factory: JupyterFrontEndPlugin = {
id: '@jupyterlab/console-extension:factory',
ILayoutRestorer,
IFileBrowserFactory,
IRenderMimeRegistry,
ISettingRegistry
],
optional: [ILauncher, ILabStatus],
activate: activateConsole,
autoStart: true
};
/**
* The console widget content factory.
*/
const factory: JupyterFrontEndPlugin = {
id: '@jupyterlab/console-extension:factory',
provides: ConsolePanel.IContentFactory,
requires: [IEditorServices],
autoStart: true,
activate: (app: JupyterFrontEnd, editorServices: IEditorServices) => {
const editorFactory = editorServices.factoryService.newInlineEditor;
return new ConsolePanel.ContentFactory({ editorFactory });
}
};
/**
* Export the plugins as the default.
*/
const plugins: JupyterFrontEndPlugin[] = [factory, tracker, foreign];
export default plugins;
/**
* Activate the console extension.
export const shiftEnterToExecute = 'console:shift-enter-to-execute';
export const interactionMode = 'console:interaction-mode';
}
/**
* The console widget tracker provider.
*/
const tracker: JupyterFrontEndPlugin = {
id: '@jupyterlab/console-extension:tracker',
provides: IConsoleTracker,
requires: [
IMainMenu,
ICommandPalette,
ConsolePanel.IContentFactory,
IEditorServices,
ILayoutRestorer,
IFileBrowserFactory,
IRenderMimeRegistry,
ISettingRegistry
],
optional: [ILauncher, ILabStatus],
activate: activateConsole,
autoStart: true
};
/**
* The console widget content factory.
*/
const factory: JupyterFrontEndPlugin = {
id: '@jupyterlab/console-extension:factory',
IEditorServices,
ILayoutRestorer
],
optional: [ILauncher],
activate: activateConsole,
autoStart: true
};
/**
* The console widget content factory.
*/
export
const contentFactoryPlugin: JupyterLabPlugin = {
id: 'jupyter.services.console-renderer',
provides: ConsolePanel.IContentFactory,
requires: [IEditorServices],
autoStart: true,
activate: (app: JupyterLab, editorServices: IEditorServices) => {
let editorFactory = editorServices.factoryService.newInlineEditor.bind(
editorServices.factoryService);
return new ConsolePanel.ContentFactory({ editorFactory });
}
};
/**
* Export the plugins as the default.
*/
const plugins: JupyterLabPlugin[] = [contentFactoryPlugin, trackerPlugin];
export default plugins;
const changeKernel = 'console:change-kernel';
};
/**
* The console widget tracker provider.
*/
export
const trackerPlugin: JupyterLabPlugin = {
id: 'jupyter.services.console-tracker',
provides: IConsoleTracker,
requires: [
IServiceManager,
IMainMenu,
ICommandPalette,
ConsolePanel.IContentFactory,
IEditorServices,
ILayoutRestorer
],
optional: [ILauncher],
activate: activateConsole,
autoStart: true
};
/**
* The console widget content factory.
*/
export
const contentFactoryPlugin: JupyterLabPlugin = {
id: 'jupyter.services.console-renderer',
provides: ConsolePanel.IContentFactory,
ILayoutRestorer,
IFileBrowserFactory,
IRenderMimeRegistry,
ISettingRegistry
],
optional: [ILauncher, ILabStatus],
activate: activateConsole,
autoStart: true
};
/**
* The console widget content factory.
*/
const factory: JupyterFrontEndPlugin = {
id: '@jupyterlab/console-extension:factory',
provides: ConsolePanel.IContentFactory,
requires: [IEditorServices],
autoStart: true,
activate: (app: JupyterFrontEnd, editorServices: IEditorServices) => {
const editorFactory = editorServices.factoryService.newInlineEditor;
return new ConsolePanel.ContentFactory({ editorFactory });
}
};
/**
* Export the plugins as the default.
*/
const plugins: JupyterFrontEndPlugin[] = [factory, tracker, foreign];
export default plugins;
/**
* Activate the console extension.
IFileBrowserFactory,
IRenderMimeRegistry,
ISettingRegistry
],
optional: [ILauncher],
activate: activateConsole,
autoStart: true
};
/**
* The console widget content factory.
*/
const factory: JupyterLabPlugin = {
id: '@jupyterlab/console-extension:factory',
provides: ConsolePanel.IContentFactory,
requires: [IEditorServices],
autoStart: true,
activate: (app: JupyterLab, editorServices: IEditorServices) => {
const editorFactory = editorServices.factoryService.newInlineEditor;
return new ConsolePanel.ContentFactory({ editorFactory });
}
};
/**
* Export the plugins as the default.
*/
const plugins: JupyterLabPlugin[] = [factory, tracker];
export default plugins;