@jupyter-notebook/notebook-extension 7.2.0-rc.0 → 7.2.0-rc.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,21 +435,6 @@ 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
- };
453
438
  /**
454
439
  * Export the plugins as default.
455
440
  */
@@ -463,6 +448,5 @@ const plugins = [
463
448
  scrollOutput,
464
449
  tabIcon,
465
450
  trusted,
466
- windowing,
467
451
  ];
468
452
  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-rc.0",
3
+ "version": "7.2.0-rc.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-rc.0",
42
- "@jupyterlab/application": "~4.2.0-rc.0",
43
- "@jupyterlab/apputils": "~4.3.0-rc.0",
44
- "@jupyterlab/cells": "~4.2.0-rc.0",
45
- "@jupyterlab/docmanager": "~4.2.0-rc.0",
46
- "@jupyterlab/notebook": "~4.2.0-rc.0",
47
- "@jupyterlab/settingregistry": "~4.2.0-rc.0",
48
- "@jupyterlab/translation": "~4.2.0-rc.0",
41
+ "@jupyter-notebook/application": "^7.2.0-rc.1",
42
+ "@jupyterlab/application": "~4.2.0",
43
+ "@jupyterlab/apputils": "~4.3.0",
44
+ "@jupyterlab/cells": "~4.2.0",
45
+ "@jupyterlab/docmanager": "~4.2.0",
46
+ "@jupyterlab/notebook": "~4.2.0",
47
+ "@jupyterlab/settingregistry": "~4.2.0",
48
+ "@jupyterlab/translation": "~4.2.0",
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
@@ -37,6 +37,8 @@ body[data-notebook='notebooks'] .jp-WindowedPanel-outer {
37
37
 
38
38
  body[data-notebook='notebooks'] .jp-WindowedPanel-inner {
39
39
  margin-top: var(--jp-notebook-toolbar-margin-bottom);
40
+ /* Adjustments for the extra top and bottom notebook padding */
41
+ margin-bottom: calc(4 * var(--jp-notebook-padding));
40
42
  }
41
43
 
42
44
  body[data-notebook='notebooks'] .jp-Notebook-cell {
@@ -52,12 +54,6 @@ body[data-notebook='notebooks']
52
54
  min-height: 100px;
53
55
  }
54
56
 
55
- /* Workaround for disabling the full windowing mode */
56
- body[data-notebook='notebooks']
57
- .jp-Toolbar-item[data-jp-item-name='scrollbar'] {
58
- display: none;
59
- }
60
-
61
57
  /* Fix background colors */
62
58
 
63
59
  body[data-notebook='notebooks'] .jp-WindowedPanel-outer > * {
@@ -70,18 +66,6 @@ body[data-notebook='notebooks']
70
66
  background: var(--jp-layout-color0) !important;
71
67
  }
72
68
 
73
- /**
74
- Extra padding to the first and and last cell of the notebook.
75
- TODO: revisit when https://github.com/jupyterlab/jupyterlab/issues/13151 is fixed
76
- */
77
- .jp-Notebook-cell[data-windowed-list-index='0'] {
78
- padding-top: calc(2 * var(--jp-notebook-padding));
79
- }
80
-
81
- body[data-notebook='notebooks'] .jp-WindowedPanel-viewport > *:last-child {
82
- padding-bottom: calc(2 * var(--jp-notebook-padding));
83
- }
84
-
85
69
  body[data-notebook='notebooks']
86
70
  .jp-Notebook
87
71
  .jp-Notebook-cell:not(:first-child)::before {
@@ -124,9 +108,9 @@ body[data-notebook='notebooks']
124
108
 
125
109
  /* Tweak the notebook footer (to add a new cell) */
126
110
  body[data-notebook='notebooks'] .jp-Notebook-footer {
111
+ background: unset;
127
112
  width: 100%;
128
113
  margin-left: unset;
129
- background: unset;
130
114
  }
131
115
 
132
116
  /* Mobile View */
@@ -143,21 +127,18 @@ body[data-format='mobile'] .jp-ToolbarButton .jp-DebuggerBugButton {
143
127
  display: none;
144
128
  }
145
129
 
146
- /* Virtual Notebook fixes */
147
-
148
130
  body[data-notebook='notebooks'] .jp-WindowedPanel-viewport {
149
131
  background: var(--jp-layout-color0);
132
+ box-shadow: var(--jp-elevation-z4);
150
133
  padding: unset;
134
+
135
+ /* Extra padding at the top and bottom so the notebook looks nicer */
136
+ padding-top: calc(2 * var(--jp-notebook-padding));
137
+ padding-bottom: calc(2 * var(--jp-notebook-padding));
151
138
  }
152
139
 
153
140
  /* Notebook box shadow */
154
141
 
155
- body[data-notebook='notebooks']
156
- .jp-WindowedPanel-outer
157
- > *:first-child:not(:last-child) {
158
- box-shadow: var(--jp-elevation-z4);
159
- }
160
-
161
142
  body[data-notebook='notebooks']
162
143
  .jp-Notebook
163
144
  > *:first-child:last-child::before {