How to use @jupyterlab/apputils-extension - 2 common examples

To help you get started, we’ve selected a few @jupyterlab/apputils-extension 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_app / src / browser / extensions / utils-extension / index.tsx View on Github external
manager.themes.forEach(theme => {
                    palette.addItem({ command, args: { isPalette, theme }, category });
                });
            });
        }

        return manager;
    },
    autoStart: true,
    provides: IThemeManager
};

/**
 * Override Main Menu plugin from apputils-extension
 */
let nPlugins = plugins.map((p: JupyterLabPlugin) => {
    switch (p.id) {
        case settingPlugin.id:
            return settingPlugin;
        case themesPlugin.id:
            return themesPlugin;
        default:
            return p;
    }
});

nPlugins.push(serverManagerPlugin);
export default nPlugins;
github jupyterlab / jupyterlab_app / src / browser / extensions / utils-extension / index.tsx View on Github external
let uiState = app.info.uiState;
    if (uiState == 'linux' || uiState == 'mac') {
        menu = buildNativeMenu(app);
    } else {
        menu = buildPhosphorMenu(app);
    }

    return menu;
  }
};

/**
 * Override Main Menu plugin from apputils-extension
 */
plugin[0] = nativeMainMenuPlugin;
plugin.push(serverManagerPlugin);
export default plugin;

@jupyterlab/apputils-extension

JupyterLab - Application Utilities Extension

BSD-3-Clause
Latest version published 6 days ago

Package Health Score

92 / 100
Full package analysis

Popular @jupyterlab/apputils-extension functions

Similar packages