Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
app.commands.addCommand(command, {
label: 'Toggle Single-Document Mode',
execute: () => {
const args = app.shell.mode === 'multiple-document' ?
{ mode: 'single-document' } : { mode: 'multiple-document' };
return app.commands.execute(CommandIDs.setMode, args);
}
});
palette.addItem({ command, category });
}
/**
* Override default jupyterlab plugins
*/
let nPlugins = plugins.map((p: JupyterLabPlugin) => {
if (p.id === 'jupyter.extensions.main') {
return mainPlugin;
}
return p;
});
export default nPlugins;