How to use the @jupyterlab/apputils-extension.map function in @jupyterlab/apputils-extension

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;

@jupyterlab/apputils-extension

JupyterLab - Application Utilities Extension

BSD-3-Clause
Latest version published 6 days ago

Package Health Score

95 / 100
Full package analysis

Popular @jupyterlab/apputils-extension functions

Similar packages