@jupyter-notebook/notebook-extension 7.2.0-beta.1 → 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-beta.1",
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-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",
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
@@ -24,18 +24,21 @@ body[data-notebook='notebooks'] .jp-NotebookPanel-toolbar {
24
24
  }
25
25
 
26
26
  body[data-notebook='notebooks'] .jp-WindowedPanel-outer {
27
+ width: unset !important;
27
28
  padding-top: unset;
28
29
  padding-left: calc(calc(100% - var(--jp-notebook-max-width)) * 0.5);
29
30
  padding-right: calc(
30
31
  calc(
31
32
  100% - var(--jp-notebook-max-width) - var(--jp-notebook-padding-offset)
32
33
  ) * 0.5
33
- );
34
+ ) !important;
34
35
  background: var(--jp-layout-color2);
35
36
  }
36
37
 
37
38
  body[data-notebook='notebooks'] .jp-WindowedPanel-inner {
38
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));
39
42
  }
40
43
 
41
44
  body[data-notebook='notebooks'] .jp-Notebook-cell {
@@ -51,12 +54,6 @@ body[data-notebook='notebooks']
51
54
  min-height: 100px;
52
55
  }
53
56
 
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
-
60
57
  /* Fix background colors */
61
58
 
62
59
  body[data-notebook='notebooks'] .jp-WindowedPanel-outer > * {
@@ -69,18 +66,6 @@ body[data-notebook='notebooks']
69
66
  background: var(--jp-layout-color0) !important;
70
67
  }
71
68
 
72
- /**
73
- Extra padding to the first and and last cell of the notebook.
74
- TODO: revisit when https://github.com/jupyterlab/jupyterlab/issues/13151 is fixed
75
- */
76
- .jp-Notebook-cell[data-windowed-list-index='0'] {
77
- padding-top: calc(2 * var(--jp-notebook-padding));
78
- }
79
-
80
- body[data-notebook='notebooks'] .jp-WindowedPanel-viewport > *:last-child {
81
- padding-bottom: calc(2 * var(--jp-notebook-padding));
82
- }
83
-
84
69
  body[data-notebook='notebooks']
85
70
  .jp-Notebook
86
71
  .jp-Notebook-cell:not(:first-child)::before {
@@ -98,15 +83,6 @@ body[data-notebook='notebooks'] .jp-cell-toolbar {
98
83
  box-shadow: unset;
99
84
  }
100
85
 
101
- body[data-notebook='notebooks']
102
- .jp-RawCell[data-windowed-list-index='0']
103
- .jp-cell-toolbar,
104
- body[data-notebook='notebooks']
105
- .jp-MarkdownCell[data-windowed-list-index='0']
106
- .jp-cell-toolbar {
107
- top: calc(2 * var(--jp-notebook-padding));
108
- }
109
-
110
86
  /** first code cell on mobile
111
87
  (keep the selector above the media query)
112
88
  */
@@ -132,9 +108,9 @@ body[data-notebook='notebooks']
132
108
 
133
109
  /* Tweak the notebook footer (to add a new cell) */
134
110
  body[data-notebook='notebooks'] .jp-Notebook-footer {
111
+ background: unset;
135
112
  width: 100%;
136
113
  margin-left: unset;
137
- background: unset;
138
114
  }
139
115
 
140
116
  /* Mobile View */
@@ -151,21 +127,18 @@ body[data-format='mobile'] .jp-ToolbarButton .jp-DebuggerBugButton {
151
127
  display: none;
152
128
  }
153
129
 
154
- /* Virtual Notebook fixes */
155
-
156
130
  body[data-notebook='notebooks'] .jp-WindowedPanel-viewport {
157
131
  background: var(--jp-layout-color0);
132
+ box-shadow: var(--jp-elevation-z4);
158
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));
159
138
  }
160
139
 
161
140
  /* Notebook box shadow */
162
141
 
163
- body[data-notebook='notebooks']
164
- .jp-WindowedPanel-outer
165
- > *:first-child:not(:last-child) {
166
- box-shadow: var(--jp-elevation-z4);
167
- }
168
-
169
142
  body[data-notebook='notebooks']
170
143
  .jp-Notebook
171
144
  > *:first-child:last-child::before {