VSCodium / vscodium

binary releases of VS Code without MS branding/telemetry/licensing
https://vscodium.com
MIT License
25.66k stars 1.12k forks source link

SyntaxError: invalid syntax #2110

Open willfliaw opened 2 weeks ago

willfliaw commented 2 weeks ago

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

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: