@jupyter-notebook/notebook-extension 7.1.2 → 7.2.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +23 -0
  2. package/package.json +10 -10
package/lib/index.js CHANGED
@@ -435,6 +435,28 @@ const editNotebookMetadata = {
435
435
  }
436
436
  },
437
437
  };
438
+ /**
439
+ * A plugin to set the default windowing mode for the notebook
440
+ * TODO: remove
441
+ */
442
+ const windowing = {
443
+ id: '@jupyter-notebook/notebook-extension:windowing',
444
+ autoStart: true,
445
+ requires: [ISettingRegistry],
446
+ activate: (app, settingRegistry) => {
447
+ // default to `none` to avoid notebook rendering glitches
448
+ const settings = settingRegistry.load('@jupyterlab/notebook-extension:tracker');
449
+ Promise.all([settings, app.restored])
450
+ .then(([settings]) => {
451
+ if (settings.user.windowing === undefined) {
452
+ void settings.set('windowingMode', 'defer');
453
+ }
454
+ })
455
+ .catch((reason) => {
456
+ console.error(reason.message);
457
+ });
458
+ },
459
+ };
438
460
  /**
439
461
  * Export the plugins as default.
440
462
  */
@@ -448,5 +470,6 @@ const plugins = [
448
470
  scrollOutput,
449
471
  tabIcon,
450
472
  trusted,
473
+ windowing,
451
474
  ];
452
475
  export default plugins;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupyter-notebook/notebook-extension",
3
- "version": "7.1.2",
3
+ "version": "7.2.0-beta.0",
4
4
  "description": "Jupyter Notebook - Notebook Extension",
5
5
  "homepage": "https://github.com/jupyter/notebook",
6
6
  "bugs": {
@@ -38,16 +38,16 @@
38
38
  "watch": "tsc -b --watch"
39
39
  },
40
40
  "dependencies": {
41
- "@jupyter-notebook/application": "^7.1.2",
42
- "@jupyterlab/application": "~4.1.5",
43
- "@jupyterlab/apputils": "~4.2.5",
44
- "@jupyterlab/cells": "~4.1.5",
45
- "@jupyterlab/docmanager": "~4.1.5",
46
- "@jupyterlab/notebook": "~4.1.5",
47
- "@jupyterlab/settingregistry": "~4.1.5",
48
- "@jupyterlab/translation": "~4.1.5",
41
+ "@jupyter-notebook/application": "^7.2.0-beta.0",
42
+ "@jupyterlab/application": "~4.2.0-beta.1",
43
+ "@jupyterlab/apputils": "~4.3.0-beta.1",
44
+ "@jupyterlab/cells": "~4.2.0-beta.1",
45
+ "@jupyterlab/docmanager": "~4.2.0-beta.1",
46
+ "@jupyterlab/notebook": "~4.2.0-beta.1",
47
+ "@jupyterlab/settingregistry": "~4.2.0-beta.1",
48
+ "@jupyterlab/translation": "~4.2.0-beta.1",
49
49
  "@lumino/polling": "^2.1.2",
50
- "@lumino/widgets": "^2.3.1",
50
+ "@lumino/widgets": "^2.3.2",
51
51
  "react": "^18.2.0",
52
52
  "react-dom": "^18.2.0"
53
53
  },