Skip to content
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

SyntaxError: invalid syntax #2110

Open
2 tasks done
willfliaw opened this issue Nov 13, 2024 · 0 comments
Open
2 tasks done

SyntaxError: invalid syntax #2110

willfliaw opened this issue Nov 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@willfliaw
Copy link

Describe the bug
When using VSCodium to write Jupyter notebooks, entering the line %matplotlib inline causes a red squiggly line to appear under %, indicating a SyntaxError: invalid syntax. This is incorrect behavior since %matplotlib inline is a valid IPython magic command for Jupyter notebooks.

Please confirm that this problem is VSCodium-specific

  • This bug doesn't happen if I use Microsoft's Visual Studio Code. It only happens in VSCodium.

Please confirm that the issue/resolution isn't already documented

To Reproduce
Steps to reproduce the behavior:

  1. Open VSCodium.
  2. Install the Jupyter extension.
  3. Create a new Jupyter notebook file (.ipynb).
  4. Add the following line to a cell: %matplotlib inline.
  5. Notice the red squiggly line under % and the associated SyntaxError: invalid syntax.

Expected behavior
VSCodium should recognize %matplotlib inline as a valid IPython magic command when editing Jupyter notebooks and should not flag it as a syntax error.

Desktop:

  • OS: Windows 11 (Build 23H2)
  • Architecture: x64
  • Version: 1.95.2
@willfliaw willfliaw added the bug Something isn't working label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant