Skip to content

Commit

Permalink
Remove custom windowing plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpio committed Apr 17, 2024
1 parent 25cda3c commit 27db22f
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions packages/notebook-extension/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -563,31 +563,6 @@ const editNotebookMetadata: JupyterFrontEndPlugin<void> = {
},
};

/**
* A plugin to set the default windowing mode for the notebook
* TODO: remove
*/
const windowing: JupyterFrontEndPlugin<void> = {
id: '@jupyter-notebook/notebook-extension:windowing',
autoStart: true,
requires: [ISettingRegistry],
activate: (app: JupyterFrontEnd, settingRegistry: ISettingRegistry): void => {
// default to `none` to avoid notebook rendering glitches
const settings = settingRegistry.load(
'@jupyterlab/notebook-extension:tracker'
);
Promise.all([settings, app.restored])
.then(([settings]) => {
if (settings.user.windowing === undefined) {
void settings.set('windowingMode', 'defer');
}
})
.catch((reason: Error) => {
console.error(reason.message);
});
},
};

/**
* Export the plugins as default.
*/
Expand All @@ -601,7 +576,6 @@ const plugins: JupyterFrontEndPlugin<any>[] = [
scrollOutput,
tabIcon,
trusted,
windowing,
];

export default plugins;

0 comments on commit 27db22f

Please sign in to comment.