How to use the @jupyterlab/logconsole.LogConsolePanel function in @jupyterlab/logconsole

To help you get started, we’ve selected a few @jupyterlab/logconsole examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jupyterlab / jupyterlab / tests / test-logconsole / src / widget.spec.ts View on Github external
beforeEach(() => {
    defaultRendermime = new RenderMimeRegistry({ initialFactories });
    registry = new LoggerRegistry({
      defaultRendermime,
      maxLength: 10
    });
    logConsole = new LogConsolePanel(registry);
  });
  afterEach(() => {
github jupyterlab / jupyterlab / packages / logconsole-extension / src / index.tsx View on Github external
const createLogConsoleWidget = (options: ILogConsoleOptions = {}) => {
    logConsolePanel = new LogConsolePanel(loggerRegistry);

    logConsolePanel.source =
      options.source !== undefined
        ? options.source
        : nbtracker.currentWidget
        ? nbtracker.currentWidget.context.path
        : null;

    logConsoleWidget = new MainAreaWidget({ content: logConsolePanel });
    logConsoleWidget.addClass('jp-LogConsole');
    logConsoleWidget.title.closable = true;
    logConsoleWidget.title.label = 'Log Console';
    logConsoleWidget.title.iconClass = 'jp-LogConsoleIcon';

    const addCheckpointButton = new CommandToolbarButton({
      commands: app.commands,
github jupyterlab / jupyterlab / packages / logconsole-extension / src / index.tsx View on Github external
const createLogConsoleWidget = (options: ILogConsoleOptions = {}) => {
    logConsolePanel = new LogConsolePanel(loggerRegistry);

    logConsolePanel.source =
      options.source !== undefined
        ? options.source
        : nbtracker.currentWidget
        ? nbtracker.currentWidget.context.path
        : null;

    logConsoleWidget = new MainAreaWidget({ content: logConsolePanel });
    logConsoleWidget.addClass('jp-LogConsole');
    logConsoleWidget.title.closable = true;
    logConsoleWidget.title.label = 'Log Console';
    logConsoleWidget.title.iconClass = 'jp-ListIcon';

    const addCheckpointButton = new CommandToolbarButton({
      commands: app.commands,

@jupyterlab/logconsole

JupyterLab - Log Console

BSD-3-Clause
Latest version published 5 days ago

Package Health Score

95 / 100
Full package analysis