@jupyter-notebook/notebook-extension 7.2.0-beta.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 +7 -14
- package/package.json +2 -2
- package/style/base.css +9 -1
package/lib/index.js
CHANGED
|
@@ -436,24 +436,17 @@ const editNotebookMetadata = {
|
|
|
436
436
|
},
|
|
437
437
|
};
|
|
438
438
|
/**
|
|
439
|
-
* A plugin to set the default windowing mode for the notebook
|
|
440
|
-
* TODO: remove
|
|
439
|
+
* A plugin to set the default windowing mode to defer for the notebook
|
|
440
|
+
* TODO: remove?
|
|
441
441
|
*/
|
|
442
442
|
const windowing = {
|
|
443
443
|
id: '@jupyter-notebook/notebook-extension:windowing',
|
|
444
444
|
autoStart: true,
|
|
445
|
-
requires: [
|
|
446
|
-
activate: (app,
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
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);
|
|
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';
|
|
457
450
|
});
|
|
458
451
|
},
|
|
459
452
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyter-notebook/notebook-extension",
|
|
3
|
-
"version": "7.2.0-beta.
|
|
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,7 +38,7 @@
|
|
|
38
38
|
"watch": "tsc -b --watch"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@jupyter-notebook/application": "^7.2.0-beta.
|
|
41
|
+
"@jupyter-notebook/application": "^7.2.0-beta.1",
|
|
42
42
|
"@jupyterlab/application": "~4.2.0-beta.1",
|
|
43
43
|
"@jupyterlab/apputils": "~4.3.0-beta.1",
|
|
44
44
|
"@jupyterlab/cells": "~4.2.0-beta.1",
|
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']
|
|
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 > * {
|