@jupyter-notebook/notebook-extension 7.2.0-alpha.0 → 7.2.0-beta.1

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.
package/lib/index.js CHANGED
@@ -435,6 +435,21 @@ const editNotebookMetadata = {
435
435
  }
436
436
  },
437
437
  };
438
+ /**
439
+ * A plugin to set the default windowing mode to defer for the notebook
440
+ * TODO: remove?
441
+ */
442
+ const windowing = {
443
+ id: '@jupyter-notebook/notebook-extension:windowing',
444
+ autoStart: true,
445
+ requires: [INotebookTracker],
446
+ activate: (app, notebookTracker) => {
447
+ notebookTracker.widgetAdded.connect((sender, widget) => {
448
+ widget.content['_viewModel'].windowingActive = false;
449
+ widget.content.notebookConfig.windowingMode = 'defer';
450
+ });
451
+ },
452
+ };
438
453
  /**
439
454
  * Export the plugins as default.
440
455
  */
@@ -448,5 +463,6 @@ const plugins = [
448
463
  scrollOutput,
449
464
  tabIcon,
450
465
  trusted,
466
+ windowing,
451
467
  ];
452
468
  export default plugins;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupyter-notebook/notebook-extension",
3
- "version": "7.2.0-alpha.0",
3
+ "version": "7.2.0-beta.1",
4
4
  "description": "Jupyter Notebook - Notebook Extension",
5
5
  "homepage": "https://github.com/jupyter/notebook",
6
6
  "bugs": {
@@ -38,14 +38,14 @@
38
38
  "watch": "tsc -b --watch"
39
39
  },
40
40
  "dependencies": {
41
- "@jupyter-notebook/application": "^7.2.0-alpha.0",
42
- "@jupyterlab/application": "~4.2.0-alpha.2",
43
- "@jupyterlab/apputils": "~4.3.0-alpha.2",
44
- "@jupyterlab/cells": "~4.2.0-alpha.2",
45
- "@jupyterlab/docmanager": "~4.2.0-alpha.2",
46
- "@jupyterlab/notebook": "~4.2.0-alpha.2",
47
- "@jupyterlab/settingregistry": "~4.2.0-alpha.2",
48
- "@jupyterlab/translation": "~4.2.0-alpha.2",
41
+ "@jupyter-notebook/application": "^7.2.0-beta.1",
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
50
  "@lumino/widgets": "^2.3.2",
51
51
  "react": "^18.2.0",
package/style/base.css CHANGED
@@ -45,10 +45,18 @@ body[data-notebook='notebooks'] .jp-Notebook-cell {
45
45
  }
46
46
 
47
47
  /* Empty space at the bottom of the notebook (similar to classic) */
48
- body[data-notebook='notebooks'] .jp-Notebook.jp-mod-scrollPastEnd::after {
48
+ body[data-notebook='notebooks']
49
+ .jp-Notebook.jp-mod-scrollPastEnd
50
+ .jp-WindowedPanel-outer::after {
49
51
  min-height: 100px;
50
52
  }
51
53
 
54
+ /* Workaround for disabling the full windowing mode */
55
+ body[data-notebook='notebooks']
56
+ .jp-Toolbar-item[data-jp-item-name='scrollbar'] {
57
+ display: none;
58
+ }
59
+
52
60
  /* Fix background colors */
53
61
 
54
62
  body[data-notebook='notebooks'] .jp-WindowedPanel-outer > * {