How to use the @jupyterlab/statusbar.StatusBar function in @jupyterlab/statusbar

To help you get started, we’ve selected a few @jupyterlab/statusbar 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 / packages / statusbar-extension / src / index.ts View on Github external
activate: (
    app: JupyterFrontEnd,
    labShell: ILabShell | null,
    settingRegistry: ISettingRegistry | null,
    mainMenu: IMainMenu | null,
    palette: ICommandPalette | null
  ) => {
    const statusBar = new StatusBar();
    statusBar.id = 'jp-main-statusbar';
    app.shell.add(statusBar, 'bottom');

    // If available, connect to the shell's layout modified signal.
    if (labShell) {
      labShell.layoutModified.connect(() => {
        statusBar.update();
      });
    }

    const category: string = 'Main Area';
    const command: string = 'statusbar:toggle';

    app.commands.addCommand(command, {
      label: 'Show Status Bar',
      execute: (args: any) => {
github jupyterlab / jupyterlab-data-explorer / packages / statusbar-extension / src / index.ts View on Github external
activate: (
    app: JupyterFrontEnd,
    labShell: ILabShell | null,
    settingRegistry: ISettingRegistry | null,
    mainMenu: IMainMenu | null,
    palette: ICommandPalette | null
  ) => {
    const statusBar = new StatusBar();
    statusBar.id = 'jp-main-statusbar';
    app.shell.add(statusBar, 'bottom');

    // If available, connect to the shell's layout modified signal.
    if (labShell) {
      labShell.layoutModified.connect(() => {
        statusBar.update();
      });
    }

    const category: string = 'Main Area';
    const command: string = 'statusbar:toggle';

    app.commands.addCommand(command, {
      label: 'Show Status Bar',
      execute: (args: any) => {
github jupyterlab / jupyterlab / tests / test-statusbar / src / statusbar.spec.ts View on Github external
it('should construct a new status bar', () => {
        const statusBar = new StatusBar();
        expect(statusBar).to.be.an.instanceof(StatusBar);
      });
    });
github jupyterlab / jupyterlab / tests / test-statusbar / src / statusbar.spec.ts View on Github external
beforeEach(() => {
      statusBar = new StatusBar();
      Widget.attach(statusBar, document.body);
    });

@jupyterlab/statusbar

JupyterLab statusbar package.

BSD-3-Clause
Latest version published 17 days ago

Package Health Score

95 / 100
Full package analysis

Similar packages