Comments (5)
Closing as python-lsp/python-lsp-ruff#59 was merged and I can confirm that latest versions of ruff and python-lsp-ruff work well with jupyterlab-lsp:
$ pip list | grep ruff
python-lsp-ruff 2.0.0
ruff 0.1.6
from jupyterlab-lsp.
Thank for opening the issue! There are two problems:
- You have a typo, in the lines disabling
pycodestyle
andpyflakes
, your code sayspyls
but it should bepylsp
- Recent versions of ruff do not work with jupyterlab-lsp because they sniff based on file extension rather than content; I would treat it as a bug in python-lsp-ruff rather than
ruff
itself, because in the LSP protocollanguage
has a meaning but extension does not, so python-lsp-ruff should instructruff
to expect a python file even if it comes with.ipynb
suffix astral-sh/ruff#6847 (comment)
from jupyterlab-lsp.
My reading of the issue is that downgrading ruff to a version older than 0.0.285 should make it work for now (while you have 0.0.292).
from jupyterlab-lsp.
Thanks for the comprehensive answer:
- I did correct that typo and did restart Jupyter lab and did restart the kernel. However, there are still hints from pycodestyle. See image:
from jupyterlab-lsp.
- I updated my Pipfile:
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
numpy = "~=1.24.4"
ifcopenshell = "*"
lark = "*"
[dev-packages]
jupyterlab = "*"
jupyterlab-quarto = "*"
jupyterlab-lsp = "*"
nbqa = "*"
pylsp-mypy = "*"
nbdev = "*"
black = "*"
python-lsp-ruff = "==1.5.3"
ruff = "==0.0.284"
[requires]
python_version = "3.11"
Now there are hints in jupyter from ruff. However i am confused with this blog post here https://astral.sh/blog/ruff-v0.1.0#a-growing-feature-set with Jupyter notebook support. What about there lsp? See https://github.com/astral-sh/ruff-lsp
- Other question: How can i get mypy in jupyer running? I installed pylsp-mypy
from jupyterlab-lsp.
Related Issues (20)
- Support outside Jupyter environment HOT 1
- Number of characters displayed on the autocompletion box HOT 2
- Could not determine npm prefix: [WinError 2] The system cannot find the file specified HOT 4
- jump-to-definition gives File Load Error when using pyright as the language server even if the file is inside the root contents directory HOT 5
- no completion for console
- Renaming symbol empties all Markdown cells HOT 3
- tab-key code completion with julia HOT 1
- Continuous hinting doesn't work HOT 10
- [Feature request] Implement LSP 3.17 notebook document support HOT 1
- IPython kernel autocompletions (some) stop working after installing LSP HOT 4
- The `jlpm bootstrap` looks not to be working. HOT 1
- `smoke windows pypypy-3.8` fails HOT 1
- Notebook jumps back to previous cell on execution HOT 3
- Language server keeps waiting HOT 1
- LSP for slow-starting (remote) kernels HOT 4
- 5.0.1: pytest fails on scanning units with call trace
- Add `_jupyter_server_extension_points` in `__init__.py`
- Support for Autocomplete in JupyterLab Real-Time Collaboration (RTC) Environment HOT 1
- Tests which need work after 5.0 release
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jupyterlab-lsp.