You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ruff linter VS Code extension assigns syntax errors to any line using the terminal magic of "!" in any Jupyter notebook cell. For example, if I have a cell like this:
!brew install ruff
The extension will highlight this line and tell me I have a syntax error. For more reference see the image below
Version
2025.14.0
The text was updated successfully, but these errors were encountered:
Is this in an unsaved file/buffer possibly? I'm looking at the filename ruff_demo.ipynb#..... and thinking the bit after # may be confusing our file type detection.
I'm not able to reproduce this with a regular filename like try.ipynb.
It is not an unsaved file or buffer. I cloned a repo and opened this notebook in VS Code. To make sure it wasn't related to any issues with the file, I closed the tab with the notebook, quit VS Code, and reopened it. The error is still there.
Additionally, I created another notebook test.ipynb and the same incorrect error was highlighted when I opened it in VS Code.
Summary
The ruff linter VS Code extension assigns syntax errors to any line using the terminal magic of "!" in any Jupyter notebook cell. For example, if I have a cell like this:
!brew install ruff
The extension will highlight this line and tell me I have a syntax error. For more reference see the image below
Version
2025.14.0
The text was updated successfully, but these errors were encountered: