Update to JupyterLab 4.0.0b1 and 4.0.0b2 (#6838)

* Update to JupyterLab 4.0.0b1

* fix resolutions

* more updates

* Remove previous shortcuts plugin

* Bump `jupyter_server` dependency

* Align playwright dependency

* Update to JupyterLab 4.0.0b2

* fix some deps

* Update yarn.lock

* add util fallback

* style the footer

* fix footer background

* move mouse before taking the screnshot

* update ui tests yarn.lock

* disable the notebook footer for now

* update snapshots
This commit is contained in:
Jeremy Tuloup 2023-04-27 10:12:43 +02:00 committed by GitHub
parent 27c93719e7
commit 787339c09e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
28 changed files with 3193 additions and 3102 deletions

View File

@ -26,7 +26,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install -U "jupyterlab>=4.0.0b0,<5" hatch
python -m pip install -U "jupyterlab>=4.0.0b2,<5" hatch
jlpm
jlpm run build
@ -76,6 +76,6 @@ jobs:
- name: Install dependencies
run: |
python -m pip install -U "jupyterlab>=4.0.0b0,<5" pip
python -m pip install -U "jupyterlab>=4.0.0b2,<5" pip
jlpm
jlpm run build

View File

@ -11,7 +11,7 @@
},
"resolutions": {
"@codemirror/state": "~6.2.0",
"@codemirror/view": "~6.9.3",
"@codemirror/view": "~6.10.0",
"@jupyter-notebook/application": "~7.0.0-beta.0",
"@jupyter-notebook/application-extension": "~7.0.0-beta.0",
"@jupyter-notebook/console-extension": "~7.0.0-beta.0",
@ -23,93 +23,93 @@
"@jupyter-notebook/tree": "~7.0.0-beta.0",
"@jupyter-notebook/tree-extension": "~7.0.0-beta.0",
"@jupyter-notebook/ui-components": "~7.0.0-beta.0",
"@jupyter/ydoc": "~0.3.4",
"@jupyterlab/application": "~4.0.0-beta.0",
"@jupyterlab/application-extension": "~4.0.0-beta.0",
"@jupyterlab/apputils": "~4.0.0-beta.0",
"@jupyterlab/apputils-extension": "~4.0.0-beta.0",
"@jupyterlab/cell-toolbar": "~4.0.0-beta.0",
"@jupyterlab/cell-toolbar-extension": "~4.0.0-beta.0",
"@jupyter/ydoc": "~1.0.2",
"@jupyterlab/application": "~4.0.0-beta.2",
"@jupyterlab/application-extension": "~4.0.0-beta.2",
"@jupyterlab/apputils": "~4.0.0-beta.2",
"@jupyterlab/apputils-extension": "~4.0.0-beta.2",
"@jupyterlab/cell-toolbar": "~4.0.0-beta.2",
"@jupyterlab/cell-toolbar-extension": "~4.0.0-beta.2",
"@jupyterlab/celltags": "~4.0.0-alpha.20",
"@jupyterlab/celltags-extension": "~4.0.0-beta.0",
"@jupyterlab/codeeditor": "~4.0.0-beta.0",
"@jupyterlab/codemirror": "~4.0.0-beta.0",
"@jupyterlab/codemirror-extension": "~4.0.0-beta.0",
"@jupyterlab/completer": "~4.0.0-beta.0",
"@jupyterlab/completer-extension": "~4.0.0-beta.0",
"@jupyterlab/console": "~4.0.0-beta.0",
"@jupyterlab/console-extension": "~4.0.0-beta.0",
"@jupyterlab/coreutils": "~6.0.0-beta.0",
"@jupyterlab/csvviewer-extension": "~4.0.0-beta.0",
"@jupyterlab/debugger": "~4.0.0-beta.0",
"@jupyterlab/debugger-extension": "~4.0.0-beta.0",
"@jupyterlab/docmanager": "~4.0.0-beta.0",
"@jupyterlab/docmanager-extension": "~4.0.0-beta.0",
"@jupyterlab/documentsearch": "~4.0.0-beta.0",
"@jupyterlab/documentsearch-extension": "~4.0.0-beta.0",
"@jupyterlab/extensionmanager": "~4.0.0-beta.0",
"@jupyterlab/extensionmanager-extension": "~4.0.0-beta.0",
"@jupyterlab/filebrowser": "~4.0.0-beta.0",
"@jupyterlab/filebrowser-extension": "~4.0.0-beta.0",
"@jupyterlab/fileeditor": "~4.0.0-beta.0",
"@jupyterlab/fileeditor-extension": "~4.0.0-beta.0",
"@jupyterlab/htmlviewer": "~4.0.0-beta.0",
"@jupyterlab/htmlviewer-extension": "~4.0.0-beta.0",
"@jupyterlab/hub-extension": "~4.0.0-beta.0",
"@jupyterlab/javascript-extension": "~4.0.0-beta.0",
"@jupyterlab/json-extension": "~4.0.0-beta.0",
"@jupyterlab/lsp": "~4.0.0-beta.0",
"@jupyterlab/lsp-extension": "~4.0.0-beta.0",
"@jupyterlab/mainmenu": "~4.0.0-beta.0",
"@jupyterlab/mainmenu-extension": "~4.0.0-beta.0",
"@jupyterlab/markedparser-extension": "~4.0.0-beta.0",
"@jupyterlab/mathjax-extension": "~4.0.0-beta.0",
"@jupyterlab/metadataform-extension": "^4.0.0-beta.0",
"@jupyterlab/notebook": "~4.0.0-beta.0",
"@jupyterlab/notebook-extension": "~4.0.0-beta.0",
"@jupyterlab/observables": "~5.0.0-beta.0",
"@jupyterlab/outputarea": "~4.0.0-beta.0",
"@jupyterlab/pdf-extension": "~4.0.0-beta.0",
"@jupyterlab/rendermime": "~4.0.0-beta.0",
"@jupyterlab/rendermime-extension": "~4.0.0-beta.0",
"@jupyterlab/rendermime-interfaces": "~3.8.0-beta.0",
"@jupyterlab/running-extension": "~4.0.0-beta.0",
"@jupyterlab/services": "~7.0.0-beta.0",
"@jupyterlab/settingeditor": "~4.0.0-beta.0",
"@jupyterlab/settingeditor-extension": "~4.0.0-beta.0",
"@jupyterlab/settingregistry": "~4.0.0-beta.0",
"@jupyterlab/shortcuts-extension": "~4.0.0-beta.0",
"@jupyterlab/statedb": "~4.0.0-beta.0",
"@jupyterlab/statusbar": "~4.0.0-beta.0",
"@jupyterlab/terminal": "~4.0.0-beta.0",
"@jupyterlab/terminal-extension": "~4.0.0-beta.0",
"@jupyterlab/theme-dark-extension": "~4.0.0-beta.0",
"@jupyterlab/theme-light-extension": "~4.0.0-beta.0",
"@jupyterlab/toc-extension": "~6.0.0-beta.0",
"@jupyterlab/tooltip": "~4.0.0-beta.0",
"@jupyterlab/tooltip-extension": "~4.0.0-beta.0",
"@jupyterlab/translation": "~4.0.0-beta.0",
"@jupyterlab/translation-extension": "~4.0.0-beta.0",
"@jupyterlab/ui-components": "~4.0.0-beta.0",
"@jupyterlab/ui-components-extension": "~4.0.0-beta.0",
"@jupyterlab/vega5-extension": "~4.0.0-beta.0",
"@jupyterlab/celltags-extension": "~4.0.0-beta.2",
"@jupyterlab/codeeditor": "~4.0.0-beta.2",
"@jupyterlab/codemirror": "~4.0.0-beta.2",
"@jupyterlab/codemirror-extension": "~4.0.0-beta.2",
"@jupyterlab/completer": "~4.0.0-beta.2",
"@jupyterlab/completer-extension": "~4.0.0-beta.2",
"@jupyterlab/console": "~4.0.0-beta.2",
"@jupyterlab/console-extension": "~4.0.0-beta.2",
"@jupyterlab/coreutils": "~6.0.0-beta.2",
"@jupyterlab/csvviewer-extension": "~4.0.0-beta.2",
"@jupyterlab/debugger": "~4.0.0-beta.2",
"@jupyterlab/debugger-extension": "~4.0.0-beta.2",
"@jupyterlab/docmanager": "~4.0.0-beta.2",
"@jupyterlab/docmanager-extension": "~4.0.0-beta.2",
"@jupyterlab/documentsearch": "~4.0.0-beta.2",
"@jupyterlab/documentsearch-extension": "~4.0.0-beta.2",
"@jupyterlab/extensionmanager": "~4.0.0-beta.2",
"@jupyterlab/extensionmanager-extension": "~4.0.0-beta.2",
"@jupyterlab/filebrowser": "~4.0.0-beta.2",
"@jupyterlab/filebrowser-extension": "~4.0.0-beta.2",
"@jupyterlab/fileeditor": "~4.0.0-beta.2",
"@jupyterlab/fileeditor-extension": "~4.0.0-beta.2",
"@jupyterlab/htmlviewer": "~4.0.0-beta.2",
"@jupyterlab/htmlviewer-extension": "~4.0.0-beta.2",
"@jupyterlab/hub-extension": "~4.0.0-beta.2",
"@jupyterlab/javascript-extension": "~4.0.0-beta.2",
"@jupyterlab/json-extension": "~4.0.0-beta.2",
"@jupyterlab/lsp": "~4.0.0-beta.2",
"@jupyterlab/lsp-extension": "~4.0.0-beta.2",
"@jupyterlab/mainmenu": "~4.0.0-beta.2",
"@jupyterlab/mainmenu-extension": "~4.0.0-beta.2",
"@jupyterlab/markedparser-extension": "~4.0.0-beta.2",
"@jupyterlab/mathjax-extension": "~4.0.0-beta.2",
"@jupyterlab/metadataform-extension": "~4.0.0-beta.2",
"@jupyterlab/notebook": "~4.0.0-beta.2",
"@jupyterlab/notebook-extension": "~4.0.0-beta.2",
"@jupyterlab/observables": "~5.0.0-beta.2",
"@jupyterlab/outputarea": "~4.0.0-beta.2",
"@jupyterlab/pdf-extension": "~4.0.0-beta.2",
"@jupyterlab/rendermime": "~4.0.0-beta.2",
"@jupyterlab/rendermime-extension": "~4.0.0-beta.2",
"@jupyterlab/rendermime-interfaces": "~3.8.0-beta.2",
"@jupyterlab/running-extension": "~4.0.0-beta.2",
"@jupyterlab/services": "~7.0.0-beta.2",
"@jupyterlab/settingeditor": "~4.0.0-beta.2",
"@jupyterlab/settingeditor-extension": "~4.0.0-beta.2",
"@jupyterlab/settingregistry": "~4.0.0-beta.2",
"@jupyterlab/shortcuts-extension": "~4.0.0-beta.2",
"@jupyterlab/statedb": "~4.0.0-beta.2",
"@jupyterlab/statusbar": "~4.0.0-beta.2",
"@jupyterlab/terminal": "~4.0.0-beta.2",
"@jupyterlab/terminal-extension": "~4.0.0-beta.2",
"@jupyterlab/theme-dark-extension": "~4.0.0-beta.2",
"@jupyterlab/theme-light-extension": "~4.0.0-beta.2",
"@jupyterlab/toc-extension": "~6.0.0-beta.2",
"@jupyterlab/tooltip": "~4.0.0-beta.2",
"@jupyterlab/tooltip-extension": "~4.0.0-beta.2",
"@jupyterlab/translation": "~4.0.0-beta.2",
"@jupyterlab/translation-extension": "~4.0.0-beta.2",
"@jupyterlab/ui-components": "~4.0.0-beta.2",
"@jupyterlab/ui-components-extension": "~4.0.0-beta.2",
"@jupyterlab/vega5-extension": "~4.0.0-beta.2",
"@lezer/common": "~1.0.2",
"@lezer/highlight": "~1.1.4",
"@lumino/algorithm": "~2.0.0",
"@lumino/application": "~2.0.1",
"@lumino/commands": "~2.0.1",
"@lumino/coreutils": "~2.0.0",
"@lumino/disposable": "~2.0.0",
"@lumino/application": "~2.1.0",
"@lumino/commands": "~2.1.0",
"@lumino/coreutils": "~2.1.0",
"@lumino/disposable": "~2.1.0",
"@lumino/domutils": "~2.0.0",
"@lumino/dragdrop": "~2.0.0",
"@lumino/dragdrop": "~2.1.0",
"@lumino/messaging": "~2.0.0",
"@lumino/properties": "~2.0.0",
"@lumino/signaling": "~2.0.0",
"@lumino/signaling": "~2.1.0",
"@lumino/virtualdom": "~2.0.0",
"@lumino/widgets": "~2.0.1",
"@lumino/widgets": "~2.1.0",
"react": "~18.2.0",
"react-dom": "~18.2.0",
"yjs": "~13.5.51"
"yjs": "~13.6.0"
},
"dependencies": {
"@jupyter-notebook/application": "^7.0.0-beta.0",
@ -123,52 +123,52 @@
"@jupyter-notebook/tree": "^7.0.0-beta.0",
"@jupyter-notebook/tree-extension": "^7.0.0-beta.0",
"@jupyter-notebook/ui-components": "^7.0.0-beta.0",
"@jupyterlab/application-extension": "^4.0.0-beta.0",
"@jupyterlab/apputils-extension": "^4.0.0-beta.0",
"@jupyterlab/cell-toolbar-extension": "^4.0.0-beta.0",
"@jupyterlab/application-extension": "^4.0.0-beta.2",
"@jupyterlab/apputils-extension": "^4.0.0-beta.2",
"@jupyterlab/cell-toolbar-extension": "^4.0.0-beta.2",
"@jupyterlab/celltags": "^4.0.0-alpha.20",
"@jupyterlab/celltags-extension": "^4.0.0-beta.0",
"@jupyterlab/codemirror": "^4.0.0-beta.0",
"@jupyterlab/codemirror-extension": "^4.0.0-beta.0",
"@jupyterlab/completer-extension": "^4.0.0-beta.0",
"@jupyterlab/console-extension": "^4.0.0-beta.0",
"@jupyterlab/coreutils": "^6.0.0-beta.0",
"@jupyterlab/csvviewer-extension": "^4.0.0-beta.0",
"@jupyterlab/debugger-extension": "^4.0.0-beta.0",
"@jupyterlab/docmanager-extension": "^4.0.0-beta.0",
"@jupyterlab/documentsearch-extension": "^4.0.0-beta.0",
"@jupyterlab/extensionmanager-extension": "^4.0.0-beta.0",
"@jupyterlab/filebrowser-extension": "^4.0.0-beta.0",
"@jupyterlab/fileeditor-extension": "^4.0.0-beta.0",
"@jupyterlab/htmlviewer-extension": "^4.0.0-beta.0",
"@jupyterlab/hub-extension": "^4.0.0-beta.0",
"@jupyterlab/javascript-extension": "^4.0.0-beta.0",
"@jupyterlab/json-extension": "^4.0.0-beta.0",
"@jupyterlab/lsp": "^4.0.0-beta.0",
"@jupyterlab/lsp-extension": "^4.0.0-beta.0",
"@jupyterlab/mainmenu-extension": "^4.0.0-beta.0",
"@jupyterlab/markedparser-extension": "^4.0.0-beta.0",
"@jupyterlab/mathjax-extension": "^4.0.0-beta.0",
"@jupyterlab/metadataform-extension": "^4.0.0-beta.0",
"@jupyterlab/notebook-extension": "^4.0.0-beta.0",
"@jupyterlab/pdf-extension": "^4.0.0-beta.0",
"@jupyterlab/rendermime-extension": "^4.0.0-beta.0",
"@jupyterlab/running-extension": "^4.0.0-beta.0",
"@jupyterlab/settingeditor": "^4.0.0-beta.0",
"@jupyterlab/settingeditor-extension": "^4.0.0-beta.0",
"@jupyterlab/shortcuts-extension": "^4.0.0-beta.0",
"@jupyterlab/terminal-extension": "^4.0.0-beta.0",
"@jupyterlab/theme-dark-extension": "^4.0.0-beta.0",
"@jupyterlab/theme-light-extension": "^4.0.0-beta.0",
"@jupyterlab/toc-extension": "^6.0.0-beta.0",
"@jupyterlab/tooltip-extension": "^4.0.0-beta.0",
"@jupyterlab/translation-extension": "^4.0.0-beta.0",
"@jupyterlab/ui-components-extension": "^4.0.0-beta.0",
"@jupyterlab/vega5-extension": "^4.0.0-beta.0"
"@jupyterlab/celltags-extension": "^4.0.0-beta.2",
"@jupyterlab/codemirror": "^4.0.0-beta.2",
"@jupyterlab/codemirror-extension": "^4.0.0-beta.2",
"@jupyterlab/completer-extension": "^4.0.0-beta.2",
"@jupyterlab/console-extension": "^4.0.0-beta.2",
"@jupyterlab/coreutils": "^6.0.0-beta.2",
"@jupyterlab/csvviewer-extension": "^4.0.0-beta.2",
"@jupyterlab/debugger-extension": "^4.0.0-beta.2",
"@jupyterlab/docmanager-extension": "^4.0.0-beta.2",
"@jupyterlab/documentsearch-extension": "^4.0.0-beta.2",
"@jupyterlab/extensionmanager-extension": "^4.0.0-beta.2",
"@jupyterlab/filebrowser-extension": "^4.0.0-beta.2",
"@jupyterlab/fileeditor-extension": "^4.0.0-beta.2",
"@jupyterlab/htmlviewer-extension": "^4.0.0-beta.2",
"@jupyterlab/hub-extension": "^4.0.0-beta.2",
"@jupyterlab/javascript-extension": "^4.0.0-beta.2",
"@jupyterlab/json-extension": "^4.0.0-beta.2",
"@jupyterlab/lsp": "^4.0.0-beta.2",
"@jupyterlab/lsp-extension": "^4.0.0-beta.2",
"@jupyterlab/mainmenu-extension": "^4.0.0-beta.2",
"@jupyterlab/markedparser-extension": "^4.0.0-beta.2",
"@jupyterlab/mathjax-extension": "^4.0.0-beta.2",
"@jupyterlab/metadataform-extension": "^4.0.0-beta.2",
"@jupyterlab/notebook-extension": "^4.0.0-beta.2",
"@jupyterlab/pdf-extension": "^4.0.0-beta.2",
"@jupyterlab/rendermime-extension": "^4.0.0-beta.2",
"@jupyterlab/running-extension": "^4.0.0-beta.2",
"@jupyterlab/settingeditor": "^4.0.0-beta.2",
"@jupyterlab/settingeditor-extension": "^4.0.0-beta.2",
"@jupyterlab/shortcuts-extension": "^4.0.0-beta.2",
"@jupyterlab/terminal-extension": "^4.0.0-beta.2",
"@jupyterlab/theme-dark-extension": "^4.0.0-beta.2",
"@jupyterlab/theme-light-extension": "^4.0.0-beta.2",
"@jupyterlab/toc-extension": "^6.0.0-beta.2",
"@jupyterlab/tooltip-extension": "^4.0.0-beta.2",
"@jupyterlab/translation-extension": "^4.0.0-beta.2",
"@jupyterlab/ui-components-extension": "^4.0.0-beta.2",
"@jupyterlab/vega5-extension": "^4.0.0-beta.2"
},
"devDependencies": {
"@jupyterlab/builder": "^4.0.0-beta.0",
"@jupyterlab/buildutils": "^4.0.0-beta.0",
"@jupyterlab/builder": "^4.0.0-beta.2",
"@jupyterlab/buildutils": "^4.0.0-beta.2",
"@types/rimraf": "^3.0.2",
"css-loader": "~5.0.1",
"extra-watch-webpack-plugin": "^1.0.3",
@ -219,7 +219,8 @@
"@jupyterlab/apputils-extension:state",
"@jupyterlab/apputils-extension:themes",
"@jupyterlab/apputils-extension:themes-palette-menu",
"@jupyterlab/apputils-extension:toolbar-registry"
"@jupyterlab/apputils-extension:toolbar-registry",
"@jupyterlab/apputils-extension:utilityCommands"
],
"@jupyterlab/codemirror-extension": true,
"@jupyterlab/completer-extension": [

View File

@ -215,6 +215,9 @@ module.exports = [
},
filename: 'bundle.js',
},
resolve: {
fallback: { util: false },
},
plugins: [
new ModuleFederationPlugin({
library: {

View File

@ -29,7 +29,7 @@
"watch": "tsc -w --listEmittedFiles"
},
"dependencies": {
"@jupyterlab/buildutils": "^4.0.0-beta.0",
"@jupyterlab/buildutils": "^4.0.0-beta.2",
"commander": "^6.2.0",
"fs-extra": "^9.1.0",
"typescript": "~5.0.2"

View File

@ -42,7 +42,7 @@
"watch:lib": "lerna exec --stream --scope @jupyter-notebook/metapackage jlpm watch"
},
"devDependencies": {
"@jupyterlab/buildutils": "^4.0.0-beta.0",
"@jupyterlab/buildutils": "^4.0.0-beta.2",
"@typescript-eslint/eslint-plugin": "^5.55.0",
"@typescript-eslint/parser": "^5.55.0",
"eslint": "^8.36.0",

View File

@ -40,20 +40,20 @@
"dependencies": {
"@jupyter-notebook/application": "^7.0.0-beta.0",
"@jupyter-notebook/ui-components": "^7.0.0-beta.0",
"@jupyterlab/application": "^4.0.0-beta.0",
"@jupyterlab/apputils": "^4.0.0-beta.0",
"@jupyterlab/application": "^4.0.0-beta.2",
"@jupyterlab/apputils": "^4.0.0-beta.2",
"@jupyterlab/celltags": "^4.0.0-alpha.20",
"@jupyterlab/codeeditor": "^4.0.0-beta.0",
"@jupyterlab/console": "^4.0.0-beta.0",
"@jupyterlab/coreutils": "^6.0.0-beta.0",
"@jupyterlab/docmanager": "^4.0.0-beta.0",
"@jupyterlab/docregistry": "^4.0.0-beta.0",
"@jupyterlab/mainmenu": "^4.0.0-beta.0",
"@jupyterlab/settingregistry": "^4.0.0-beta.0",
"@jupyterlab/translation": "^4.0.0-beta.0",
"@lumino/coreutils": "^2.0.0",
"@lumino/disposable": "^2.0.0",
"@lumino/widgets": "^2.0.1"
"@jupyterlab/codeeditor": "^4.0.0-beta.2",
"@jupyterlab/console": "^4.0.0-beta.2",
"@jupyterlab/coreutils": "^6.0.0-beta.2",
"@jupyterlab/docmanager": "^4.0.0-beta.2",
"@jupyterlab/docregistry": "^4.0.0-beta.2",
"@jupyterlab/mainmenu": "^4.0.0-beta.2",
"@jupyterlab/settingregistry": "^4.0.0-beta.2",
"@jupyterlab/translation": "^4.0.0-beta.2",
"@lumino/coreutils": "^2.1.0",
"@lumino/disposable": "^2.1.0",
"@lumino/widgets": "^2.1.0"
},
"devDependencies": {
"rimraf": "^3.0.2",

View File

@ -42,22 +42,22 @@
"watch": "tsc -b --watch"
},
"dependencies": {
"@jupyterlab/application": "^4.0.0-beta.0",
"@jupyterlab/coreutils": "^6.0.0-beta.0",
"@jupyterlab/docregistry": "^4.0.0-beta.0",
"@jupyterlab/rendermime-interfaces": "^3.8.0-beta.0",
"@jupyterlab/ui-components": "^4.0.0-beta.0",
"@jupyterlab/application": "^4.0.0-beta.2",
"@jupyterlab/coreutils": "^6.0.0-beta.2",
"@jupyterlab/docregistry": "^4.0.0-beta.2",
"@jupyterlab/rendermime-interfaces": "^3.8.0-beta.2",
"@jupyterlab/ui-components": "^4.0.0-beta.2",
"@lumino/algorithm": "^2.0.0",
"@lumino/coreutils": "^2.0.0",
"@lumino/coreutils": "^2.1.0",
"@lumino/messaging": "^2.0.0",
"@lumino/polling": "^2.0.0",
"@lumino/signaling": "^2.0.0",
"@lumino/widgets": "^2.0.1"
"@lumino/polling": "^2.1.0",
"@lumino/signaling": "^2.1.0",
"@lumino/widgets": "^2.1.0"
},
"devDependencies": {
"@babel/core": "^7.11.6",
"@babel/preset-env": "^7.12.1",
"@jupyterlab/testutils": "^4.0.0-beta.0",
"@jupyterlab/testutils": "^4.0.0-beta.2",
"@types/jest": "^29.2.5",
"jest": "^29.3.1",
"rimraf": "^3.0.2",

View File

@ -38,9 +38,9 @@
"watch": "tsc -b --watch"
},
"dependencies": {
"@jupyterlab/application": "^4.0.0-beta.0",
"@jupyterlab/console": "^4.0.0-beta.0",
"@jupyterlab/coreutils": "^6.0.0-beta.0",
"@jupyterlab/application": "^4.0.0-beta.2",
"@jupyterlab/console": "^4.0.0-beta.2",
"@jupyterlab/coreutils": "^6.0.0-beta.2",
"@lumino/algorithm": "^2.0.0"
},
"devDependencies": {

View File

@ -38,13 +38,13 @@
"watch": "tsc -b --watch"
},
"dependencies": {
"@jupyterlab/application": "^4.0.0-beta.0",
"@jupyterlab/coreutils": "^6.0.0-beta.0",
"@jupyterlab/docmanager": "^4.0.0-beta.0",
"@jupyterlab/docregistry": "^4.0.0-beta.0",
"@jupyterlab/services": "^7.0.0-beta.0",
"@jupyterlab/application": "^4.0.0-beta.2",
"@jupyterlab/coreutils": "^6.0.0-beta.2",
"@jupyterlab/docmanager": "^4.0.0-beta.2",
"@jupyterlab/docregistry": "^4.0.0-beta.2",
"@jupyterlab/services": "^7.0.0-beta.2",
"@lumino/algorithm": "^2.0.0",
"@lumino/signaling": "^2.0.0"
"@lumino/signaling": "^2.1.0"
},
"devDependencies": {
"rimraf": "^3.0.2",

View File

@ -39,9 +39,9 @@
},
"dependencies": {
"@jupyter-notebook/application": "^7.0.0-beta.0",
"@jupyterlab/application": "^4.0.0-beta.0",
"@jupyterlab/documentsearch": "^4.0.0-beta.0",
"@lumino/widgets": "^2.0.1"
"@jupyterlab/application": "^4.0.0-beta.2",
"@jupyterlab/documentsearch": "^4.0.0-beta.2",
"@lumino/widgets": "^2.1.0"
},
"devDependencies": {
"rimraf": "^3.0.2",

View File

@ -39,10 +39,10 @@
},
"dependencies": {
"@jupyter-notebook/ui-components": "^7.0.0-beta.0",
"@jupyterlab/application": "^4.0.0-beta.0",
"@jupyterlab/apputils": "^4.0.0-beta.0",
"@jupyterlab/mainmenu": "^4.0.0-beta.0",
"@jupyterlab/translation": "^4.0.0-beta.0",
"@jupyterlab/application": "^4.0.0-beta.2",
"@jupyterlab/apputils": "^4.0.0-beta.2",
"@jupyterlab/mainmenu": "^4.0.0-beta.2",
"@jupyterlab/translation": "^4.0.0-beta.2",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},

View File

@ -13,10 +13,6 @@
{
"type": "separator",
"rank": 1
},
{
"command": "help:shortcuts",
"rank": 20
}
]
}

View File

@ -6,7 +6,7 @@ import {
JupyterFrontEndPlugin,
} from '@jupyterlab/application';
import { showDialog, Dialog, ICommandPalette } from '@jupyterlab/apputils';
import { Dialog, ICommandPalette } from '@jupyterlab/apputils';
import { IMainMenu } from '@jupyterlab/mainmenu';
@ -36,8 +36,6 @@ const RESOURCES = [
namespace CommandIDs {
export const open = 'help:open';
export const shortcuts = 'help:shortcuts';
export const about = 'help:about';
}
@ -156,77 +154,6 @@ const about: JupyterFrontEndPlugin<void> = {
},
};
/**
* A plugin to add a command to display Keyboard Shortcuts.
*/
const shortcuts: JupyterFrontEndPlugin<void> = {
id: '@jupyter-notebook/help-extension:shortcuts',
autoStart: true,
requires: [ITranslator],
optional: [ICommandPalette],
activate: (
app: JupyterFrontEnd,
translator: ITranslator,
palette: ICommandPalette | null
): void => {
const { commands } = app;
const trans = translator.load('notebook');
const category = trans.__('Help');
commands.addCommand(CommandIDs.shortcuts, {
label: trans.__('Keyboard Shortcuts'),
execute: () => {
const title = (
<span className="jp-AboutNotebook-about-header">
<div className="jp-AboutNotebook-about-header-info">
{trans.__('Keyboard Shortcuts')}
</div>
</span>
);
const body = (
<table className="jp-AboutNotebook-shortcuts">
<thead>
<tr>
<th>{trans.__('Name')}</th>
<th>{trans.__('Shortcut')}</th>
</tr>
</thead>
<tbody>
{commands.keyBindings
.filter((binding) => commands.isEnabled(binding.command))
.map((binding, i) => (
<tr key={i}>
<td>{commands.label(binding.command)}</td>
<td>
<pre>{binding.keys.join(', ')}</pre>
</td>
</tr>
))}
</tbody>
</table>
);
return showDialog({
title,
body,
buttons: [
Dialog.createButton({
label: trans.__('Dismiss'),
className:
'jp-AboutNotebook-about-button jp-mod-reject jp-mod-styled',
}),
],
});
},
});
if (palette) {
palette.addItem({ command: CommandIDs.shortcuts, category });
}
},
};
const plugins: JupyterFrontEndPlugin<any>[] = [open, shortcuts, about];
const plugins: JupyterFrontEndPlugin<any>[] = [open, about];
export default plugins;

View File

@ -52,16 +52,3 @@
.jp-AboutNotebook-about-copyright {
padding-top: 25px;
}
.jp-AboutNotebook-shortcuts {
padding: 10px;
}
.jp-AboutNotebook-shortcuts pre {
padding: 5px;
margin: 0 0 10px;
background: var(--jp-layout-color2);
border: 1px solid var(--jp-border-color0);
border-radius: 2px;
word-break: break-all;
}

View File

@ -44,18 +44,18 @@
},
"dependencies": {
"@jupyter-notebook/application": "^7.0.0-beta.0",
"@jupyterlab/application": "^4.0.0-beta.0",
"@jupyterlab/apputils": "^4.0.0-beta.0",
"@jupyterlab/coreutils": "^6.0.0-beta.0",
"@jupyterlab/docregistry": "^4.0.0-beta.0",
"@jupyterlab/notebook": "^4.0.0-beta.0",
"@jupyterlab/translation": "^4.0.0-beta.0",
"@jupyterlab/ui-components": "^4.0.0-beta.0",
"@lumino/commands": "^2.0.1",
"@lumino/disposable": "^2.0.0"
"@jupyterlab/application": "^4.0.0-beta.2",
"@jupyterlab/apputils": "^4.0.0-beta.2",
"@jupyterlab/coreutils": "^6.0.0-beta.2",
"@jupyterlab/docregistry": "^4.0.0-beta.2",
"@jupyterlab/notebook": "^4.0.0-beta.2",
"@jupyterlab/translation": "^4.0.0-beta.2",
"@jupyterlab/ui-components": "^4.0.0-beta.2",
"@lumino/commands": "^2.1.0",
"@lumino/disposable": "^2.1.0"
},
"devDependencies": {
"@jupyterlab/builder": "^4.0.0-beta.0",
"@jupyterlab/builder": "^4.0.0-beta.2",
"rimraf": "^3.0.2",
"typescript": "~5.0.2"
},

View File

@ -39,15 +39,15 @@
},
"dependencies": {
"@jupyter-notebook/application": "^7.0.0-beta.0",
"@jupyterlab/application": "^4.0.0-beta.0",
"@jupyterlab/apputils": "^4.0.0-beta.0",
"@jupyterlab/cells": "^4.0.0-beta.0",
"@jupyterlab/docmanager": "^4.0.0-beta.0",
"@jupyterlab/notebook": "^4.0.0-beta.0",
"@jupyterlab/settingregistry": "^4.0.0-beta.0",
"@jupyterlab/translation": "^4.0.0-beta.0",
"@lumino/polling": "^2.0.0",
"@lumino/widgets": "^2.0.1"
"@jupyterlab/application": "^4.0.0-beta.2",
"@jupyterlab/apputils": "^4.0.0-beta.2",
"@jupyterlab/cells": "^4.0.0-beta.2",
"@jupyterlab/docmanager": "^4.0.0-beta.2",
"@jupyterlab/notebook": "^4.0.0-beta.2",
"@jupyterlab/settingregistry": "^4.0.0-beta.2",
"@jupyterlab/translation": "^4.0.0-beta.2",
"@lumino/polling": "^2.1.0",
"@lumino/widgets": "^2.1.0"
},
"devDependencies": {
"rimraf": "^3.0.2",

View File

@ -122,6 +122,15 @@ body[data-notebook='notebooks']
}
}
/* Tweak the notebook footer (to add a new cell) */
body[data-notebook='notebooks'] .jp-Notebook-footer {
/* TODO: re-enable */
display: none;
width: 100%;
margin-left: unset;
background: unset;
}
/* Mobile View */
body[data-format='mobile'] .jp-NotebookCheckpoint {

View File

@ -38,9 +38,9 @@
"watch": "tsc -b --watch"
},
"dependencies": {
"@jupyterlab/application": "^4.0.0-beta.0",
"@jupyterlab/coreutils": "^6.0.0-beta.0",
"@jupyterlab/terminal": "^4.0.0-beta.0",
"@jupyterlab/application": "^4.0.0-beta.2",
"@jupyterlab/coreutils": "^6.0.0-beta.2",
"@jupyterlab/terminal": "^4.0.0-beta.2",
"@lumino/algorithm": "^2.0.0"
},
"devDependencies": {

View File

@ -40,21 +40,21 @@
"dependencies": {
"@jupyter-notebook/application": "^7.0.0-beta.0",
"@jupyter-notebook/tree": "^7.0.0-beta.0",
"@jupyterlab/application": "^4.0.0-beta.0",
"@jupyterlab/apputils": "^4.0.0-beta.0",
"@jupyterlab/coreutils": "^6.0.0-beta.0",
"@jupyterlab/docmanager": "^4.0.0-beta.0",
"@jupyterlab/filebrowser": "^4.0.0-beta.0",
"@jupyterlab/mainmenu": "^4.0.0-beta.0",
"@jupyterlab/services": "^7.0.0-beta.0",
"@jupyterlab/settingeditor": "^4.0.0-beta.0",
"@jupyterlab/settingregistry": "^4.0.0-beta.0",
"@jupyterlab/statedb": "^4.0.0-beta.0",
"@jupyterlab/translation": "^4.0.0-beta.0",
"@jupyterlab/ui-components": "^4.0.0-beta.0",
"@jupyterlab/application": "^4.0.0-beta.2",
"@jupyterlab/apputils": "^4.0.0-beta.2",
"@jupyterlab/coreutils": "^6.0.0-beta.2",
"@jupyterlab/docmanager": "^4.0.0-beta.2",
"@jupyterlab/filebrowser": "^4.0.0-beta.2",
"@jupyterlab/mainmenu": "^4.0.0-beta.2",
"@jupyterlab/services": "^7.0.0-beta.2",
"@jupyterlab/settingeditor": "^4.0.0-beta.2",
"@jupyterlab/settingregistry": "^4.0.0-beta.2",
"@jupyterlab/statedb": "^4.0.0-beta.2",
"@jupyterlab/translation": "^4.0.0-beta.2",
"@jupyterlab/ui-components": "^4.0.0-beta.2",
"@lumino/algorithm": "^2.0.0",
"@lumino/commands": "^2.0.1",
"@lumino/widgets": "^2.0.1"
"@lumino/commands": "^2.1.0",
"@lumino/widgets": "^2.1.0"
},
"devDependencies": {
"rimraf": "^3.0.2",

View File

@ -39,21 +39,21 @@
},
"dependencies": {
"@jupyter-notebook/application": "^7.0.0-beta.0",
"@jupyterlab/application": "^4.0.0-beta.0",
"@jupyterlab/apputils": "^4.0.0-beta.0",
"@jupyterlab/coreutils": "^6.0.0-beta.0",
"@jupyterlab/docmanager": "^4.0.0-beta.0",
"@jupyterlab/filebrowser": "^4.0.0-beta.0",
"@jupyterlab/mainmenu": "^4.0.0-beta.0",
"@jupyterlab/services": "^7.0.0-beta.0",
"@jupyterlab/settingregistry": "^4.0.0-beta.0",
"@jupyterlab/statedb": "^4.0.0-beta.0",
"@jupyterlab/translation": "^4.0.0-beta.0",
"@jupyterlab/ui-components": "^4.0.0-beta.0",
"@jupyterlab/application": "^4.0.0-beta.2",
"@jupyterlab/apputils": "^4.0.0-beta.2",
"@jupyterlab/coreutils": "^6.0.0-beta.2",
"@jupyterlab/docmanager": "^4.0.0-beta.2",
"@jupyterlab/filebrowser": "^4.0.0-beta.2",
"@jupyterlab/mainmenu": "^4.0.0-beta.2",
"@jupyterlab/services": "^7.0.0-beta.2",
"@jupyterlab/settingregistry": "^4.0.0-beta.2",
"@jupyterlab/statedb": "^4.0.0-beta.2",
"@jupyterlab/translation": "^4.0.0-beta.2",
"@jupyterlab/ui-components": "^4.0.0-beta.2",
"@lumino/algorithm": "^2.0.0",
"@lumino/commands": "^2.0.1",
"@lumino/coreutils": "^2.0.0",
"@lumino/widgets": "^2.0.1"
"@lumino/commands": "^2.1.0",
"@lumino/coreutils": "^2.1.0",
"@lumino/widgets": "^2.1.0"
},
"devDependencies": {
"rimraf": "^3.0.2",

View File

@ -42,14 +42,14 @@
"watch": "tsc -b --watch"
},
"dependencies": {
"@jupyterlab/ui-components": "^4.0.0-beta.0",
"@jupyterlab/ui-components": "^4.0.0-beta.2",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@babel/core": "^7.10.2",
"@babel/preset-env": "^7.10.2",
"@jupyterlab/testutils": "^4.0.0-beta.0",
"@jupyterlab/testutils": "^4.0.0-beta.2",
"@types/jest": "^29.2.5",
"babel-loader": "^8.0.6",
"jest": "^29.3.1",

View File

@ -1,5 +1,5 @@
[build-system]
requires = ["hatchling>=1.11", "jupyterlab>=4.0.0b0,<5"]
requires = ["hatchling>=1.11", "jupyterlab>=4.0.0b2,<5"]
build-backend = "hatchling.build"
[project]
@ -30,9 +30,9 @@ classifiers = [
"Typing :: Typed",
]
dependencies = [
"jupyter_server>=2.0.1,<3",
"jupyter_server>=2.4.0,<3",
"importlib-resources>=5.0;python_version<\"3.9\"",
"jupyterlab>=4.0.0b0,<5",
"jupyterlab>=4.0.0b2,<5",
"jupyterlab_server>=2.22.1,<3",
"notebook_shim>=0.2,<0.3",
"tornado>=6.2.0",
@ -57,7 +57,7 @@ test = [
"pytest-timeout",
"pytest-console-scripts",
"ipykernel",
"jupyter_server[test]>=2.0.1,<3",
"jupyter_server[test]>=2.4.0,<3",
"jupyterlab_server[test]>=2.22.1,<3",
]
docs = [

View File

@ -15,8 +15,8 @@
"test:update": "playwright test --update-snapshots"
},
"dependencies": {
"@jupyterlab/galata": "~5.0.0-alpha.22",
"@playwright/test": "^1.31.0",
"@jupyterlab/galata": "~5.0.0-beta.2",
"@playwright/test": "^1.32.0",
"rimraf": "^3.0.2"
}
}

View File

@ -40,6 +40,9 @@ test.describe('General', () => {
await window.jupyterapp.commands.execute('notebook:enter-command-mode');
});
// make sure the mouse does not hover on the footer
await page.mouse.move(0, 0);
expect(await page.screenshot()).toMatchSnapshot('notebook.png');
});
});

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 12 KiB

File diff suppressed because it is too large Load Diff

4425
yarn.lock

File diff suppressed because it is too large Load Diff