-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JupyterLab 3 update #405
JupyterLab 3 update #405
Changes from 2 commits
64ed3de
acd0163
a170681
c52ed55
1a0341d
43801d7
a5a5bc6
80a9973
21c2cbc
df6bac2
a1f87ac
eba0e53
73c4ee3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -116,3 +116,6 @@ coverage/ | |
_*.d.ts | ||
_build | ||
.virtual_documents/ | ||
|
||
# Built labextensions | ||
py_src/jupyter_lsp/labextensions/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
.mypy_cache | ||
.pytest_cache | ||
.yarn-packages | ||
**/_*.d.ts | ||
**/.ipynb_checkpoints | ||
**/*.egg-info | ||
**/build | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
include LICENSE README.md | ||
recursive-include py_src *.json *.R | ||
recursive-include py_src/jupyter_lsp/labextensions |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,12 @@ | ||
#!/usr/bin/env bash | ||
set -eux | ||
# do a dev install of the server side | ||
python -m pip install -e . --ignore-installed --no-deps -vv | ||
jupyter serverextension enable --sys-prefix --py jupyter_lsp | ||
|
||
# should have no extensions | ||
jupyter labextension list | ||
|
||
# do a dev build of the client side | ||
# Build labextensions | ||
jlpm bootstrap | ||
|
||
# link all pieces to lab (no build) | ||
jlpm lab:link && jupyter labextension list | ||
|
||
# list extensions before build | ||
jupyter labextension list | ||
|
||
# actually build | ||
jupyter lab build --debug --dev-build=False --minimize=True | ||
# Do a dev install of the server side | ||
pip install . -vv | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please bring back There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure, I'll bring it back There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Although |
||
jupyter serverextension enable --sys-prefix --py jupyter_lsp | ||
|
||
# list extensions again | ||
# List extensions | ||
jupyter labextension list |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,46 +28,61 @@ | |
"url": "https://github.com/krassowski/jupyterlab-lsp.git" | ||
}, | ||
"scripts": { | ||
"build": "jlpm build:schema && tsc -b", | ||
"build": "jlpm run build:lib && jlpm run build:labextension", | ||
martinRenou marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"build:labextension": "jupyter labextension build .", | ||
"build:labextension:dev": "jupyter labextension build --development True .", | ||
"build:lib": "tsc", | ||
"build:prod": "jlpm run build:lib && jlpm run build:labextension", | ||
"build:schema": "jlpm build:schema-backend && jlpm build:schema-completion && jlpm build:schema-hover && jlpm build:schema-diagnostics && jlpm build:schema-syntax_highlighting", | ||
"build:schema-backend": "json2ts ../../py_src/jupyter_lsp/schema/schema.json --unreachableDefinitions | prettier --stdin-filepath _schema.d.ts > src/_schema.d.ts", | ||
"build:schema-completion": "json2ts schema/completion.json | prettier --stdin-filepath _completion.d.ts > src/_completion.d.ts", | ||
"build:schema-hover": "json2ts schema/hover.json | prettier --stdin-filepath _hover.d.ts > src/_hover.d.ts", | ||
"build:schema-diagnostics": "json2ts schema/diagnostics.json | prettier --stdin-filepath _diagnostics.d.ts > src/_diagnostics.d.ts", | ||
"build:schema-hover": "json2ts schema/hover.json | prettier --stdin-filepath _hover.d.ts > src/_hover.d.ts", | ||
"build:schema-syntax_highlighting": "json2ts schema/syntax_highlighting.json | prettier --stdin-filepath _syntax_highlighting.d.ts > src/_syntax_highlighting.d.ts", | ||
"bundle": "npm pack .", | ||
"clean": "rimraf lib", | ||
"clean": "jlpm run clean:lib", | ||
"clean:all": "jlpm run clean:lib && jlpm run clean:labextension", | ||
"clean:labextension": "rimraf labextension", | ||
"clean:lib": "rimraf lib tsconfig.tsbuildinfo", | ||
"eslint": "eslint . --ext .ts,.tsx --fix", | ||
"eslint:check": "eslint . --ext .ts,.tsx", | ||
"install:extension": "jupyter labextension develop --overwrite .", | ||
"lab:link": "jupyter labextension link . --no-build", | ||
"test": "jlpm jest --coverage --coverageReporters=cobertura --coverageReporters=html --coverageReporters=text-summary" | ||
"prepare": "jlpm run clean && jlpm run build:prod", | ||
"test": "jlpm jest --coverage --coverageReporters=cobertura --coverageReporters=html --coverageReporters=text-summary", | ||
"watch": "run-p watch:src watch:labextension", | ||
"watch:labextension": "jupyter labextension watch .", | ||
"watch:src": "tsc -w" | ||
}, | ||
"dependencies": { | ||
"@krassowski/jupyterlab_go_to_definition": "~1.0.0", | ||
"lodash.mergewith": "^4.6.1", | ||
"lsp-ws-connection": "~0.5.1", | ||
"@krassowski/completion-theme": "~2.0.0", | ||
"@krassowski/jupyterlab_go_to_definition": "~1.0.0", | ||
"@krassowski/theme-material": "~2.0.0", | ||
"@krassowski/theme-vscode": "~2.0.0", | ||
"@krassowski/theme-material": "~2.0.0" | ||
"lodash.mergewith": "^4.6.1", | ||
"lsp-ws-connection": "~0.5.1" | ||
}, | ||
"devDependencies": { | ||
"@babel/preset-env": "^7.4.3", | ||
"@jupyterlab/application": "~2.2.0", | ||
"@jupyterlab/apputils": "~2.2.0", | ||
"@jupyterlab/cells": "~2.2.0", | ||
"@jupyterlab/codeeditor": "~2.2.0", | ||
"@jupyterlab/codemirror": "~2.2.0", | ||
"@jupyterlab/completer": "~2.2.0", | ||
"@jupyterlab/coreutils": "~4.2.0", | ||
"@jupyterlab/docmanager": "~2.2.0", | ||
"@jupyterlab/docregistry": "~2.2.0", | ||
"@jupyterlab/fileeditor": "~2.2.0", | ||
"@jupyterlab/notebook": "~2.2.0", | ||
"@jupyterlab/rendermime": "~2.2.0", | ||
"@jupyterlab/services": "~5.2.0", | ||
"@jupyterlab/statusbar": "~2.2.0", | ||
"@jupyterlab/testutils": "~2.2.0", | ||
"@jupyterlab/tooltip": "~2.2.0", | ||
"@lumino/algorithm": "*", | ||
"@lumino/widgets": "*", | ||
"@jupyterlab/application": "^3.0.0-rc.7", | ||
"@jupyterlab/apputils": "^3.0.0-rc.7", | ||
"@jupyterlab/builder": "^3.0.0-rc.2", | ||
"@jupyterlab/cells": "^3.0.0-rc.7", | ||
"@jupyterlab/codeeditor": "^3.0.0-rc.7", | ||
"@jupyterlab/codemirror": "^3.0.0-rc.7", | ||
"@jupyterlab/completer": "^3.0.0-rc.7", | ||
"@jupyterlab/coreutils": "^5.0.0-rc.7", | ||
"@jupyterlab/docmanager": "^3.0.0-rc.7", | ||
"@jupyterlab/docregistry": "^3.0.0-rc.7", | ||
"@jupyterlab/fileeditor": "^3.0.0-rc.7", | ||
"@jupyterlab/notebook": "^3.0.0-rc.7", | ||
"@jupyterlab/rendermime": "^3.0.0-rc.7", | ||
"@jupyterlab/services": "^6.0.0-rc.7", | ||
"@jupyterlab/statusbar": "^3.0.0-rc.7", | ||
"@jupyterlab/testutils": "^3.0.0-rc.7", | ||
"@jupyterlab/tooltip": "^3.0.0-rc.7", | ||
"@lumino/algorithm": "^1.3.3", | ||
"@lumino/widgets": "^1.14.0", | ||
"@types/chai": "^4.1.7", | ||
"@types/codemirror": "^0.0.74", | ||
"@types/events": "^3.0.0", | ||
|
@@ -79,28 +94,30 @@ | |
"jest": "^26.0.0", | ||
"jest-junit": "^8.0.0", | ||
"json-schema-to-typescript": "^8.0.0", | ||
"react": "*", | ||
"rimraf": "~2.6.2", | ||
"mkdirp": "^1.0.3", | ||
"prettier": "^1.19.0", | ||
krassowski marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"react": "^17.0.1", | ||
"rimraf": "^3.0.2", | ||
"ts-jest": "^26.4.3", | ||
"typescript": "~4.0.2" | ||
"typescript": "~4.0.3" | ||
}, | ||
"peerDependencies": { | ||
"@jupyterlab/application": "~2.2.0", | ||
"@jupyterlab/apputils": "~2.2.0", | ||
"@jupyterlab/cells": "~2.2.0", | ||
"@jupyterlab/codeeditor": "~2.2.0", | ||
"@jupyterlab/codemirror": "~2.2.0", | ||
"@jupyterlab/completer": "~2.2.0", | ||
"@jupyterlab/coreutils": "~4.2.0", | ||
"@jupyterlab/docmanager": "~2.2.0", | ||
"@jupyterlab/docregistry": "~2.2.0", | ||
"@jupyterlab/fileeditor": "~2.2.0", | ||
"@jupyterlab/notebook": "~2.2.0", | ||
"@jupyterlab/rendermime": "~2.2.0", | ||
"@jupyterlab/services": "~5.2.0", | ||
"@jupyterlab/statusbar": "~2.2.0", | ||
"@jupyterlab/tooltip": "~2.2.0", | ||
"@jupyterlab/ui-components": "~2.2.0", | ||
"@jupyterlab/application": "^3.0.0-rc.7", | ||
"@jupyterlab/apputils": "^3.0.0-rc.7", | ||
"@jupyterlab/cells": "^3.0.0-rc.7", | ||
"@jupyterlab/codeeditor": "^3.0.0-rc.7", | ||
"@jupyterlab/codemirror": "^3.0.0-rc.7", | ||
"@jupyterlab/completer": "^3.0.0-rc.7", | ||
"@jupyterlab/coreutils": "^5.0.0-rc.7", | ||
"@jupyterlab/docmanager": "^3.0.0-rc.7", | ||
"@jupyterlab/docregistry": "^3.0.0-rc.7", | ||
"@jupyterlab/fileeditor": "^3.0.0-rc.7", | ||
"@jupyterlab/notebook": "^3.0.0-rc.7", | ||
"@jupyterlab/rendermime": "^3.0.0-rc.7", | ||
"@jupyterlab/services": "^6.0.0-rc.7", | ||
"@jupyterlab/statusbar": "^3.0.0-rc.7", | ||
"@jupyterlab/tooltip": "^3.0.0-rc.7", | ||
"@jupyterlab/ui-components": "^3.0.0-rc.7", | ||
"@lumino/algorithm": "*", | ||
"@lumino/widgets": "*", | ||
"codemirror": "*", | ||
|
@@ -118,6 +135,7 @@ | |
] | ||
} | ||
}, | ||
"schemaDir": "schema" | ||
"schemaDir": "schema", | ||
"outputDir": "../../py_src/jupyter_lsp/labextensions/@krassowski/jupyterlab-lsp" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we need to add checking all of these (and probably other things) to |
||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if these end up in the dist (which they might) we will want them formatted...