See overrides.json
for user-settings under @jupyter-lsp/jupyterlab-lsp:plugin
. This can be installed / linked into <sys-prefix>/share/jupyter/lab/settings
Last active
August 30, 2025 12:52
-
-
Save agoose77/9cb87496bd7923afdc28980b8b58a775 to your computer and use it in GitHub Desktop.
Launch JupyterLab with basic LSP support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[flake8] | |
# Match black | |
max-line-length = 88 | |
# Allow asymmetric commas, etc. | |
extend-ignore = | |
E203, | |
# Spurious warnings in JupyterLab for code cells that follow Markdown cells | |
E303 | |
exclude = .git,__pycache__,build,dist,.venv | |
max-complexity = 10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@jupyter-lsp/jupyterlab-lsp:plugin": { | |
"language_servers": { | |
"pylsp": { | |
"priority": 100, | |
"serverSettings": { | |
"pylsp.plugins.flake8.config": ".flake8", | |
"pylsp.plugins.flake8.enabled": true, | |
"pylsp.plugins.pycodestyle.enabled": false, | |
"pylsp.plugins.pydocstyle.enabled": false, | |
"pylsp.plugins.pyflakes.enabled": false, | |
"pylsp.plugins.pylint.enabled": false, | |
"pylsp.plugins.yapf.enabled": false | |
} | |
} | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -eux | |
mkdir -p ${NB_PYTHON_PREFIX}/share/jupyter/lab/settings | |
cp ./overrides.json ${NB_PYTHON_PREFIX}/share/jupyter/lab/settings |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jupyterlab | |
python-lsp-server[all] | |
jupyterlab-lsp | |
# Code formatting | |
jupyterlab-code-formatter | |
black | |
isort |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment