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

Cell magics not properly handled in VS.Code Jupyter #3327

Closed
timoklimmer opened this issue Sep 13, 2022 · 1 comment
Closed

Cell magics not properly handled in VS.Code Jupyter #3327

timoklimmer opened this issue Sep 13, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request fixed in next version (main) A fix has been implemented and will appear in an upcoming version

Comments

@timoklimmer
Copy link
Member

Environment data

  • Language Server version: v2022.9.10
  • OS and version: Windows 11, Ubuntu 20.04
  • Python version: Python 3.10.5, conda 4.14.0

Repro Steps

  1. Create a Jupyter notebook in VS.Code
  2. Start a cell with a cells magic, for example %%cmd.
  3. Add some arbitrary code to the next lines.

Expected behavior

Whenever a cell's content starts with a cells magic (%%...), the code in the cell is not validated as Python code, and no wrong and disturbing squiggles are shown.

Ignoring all cell content when the cell starts with a %% seems like a good first step.

Actual behavior

Wrong and disturbing squiggles, making a convenient use of cell magics in VS.Code Jupyter impossible.

image

@debonte fyi
See also #2582

@judej judej added the enhancement New feature or request label Sep 14, 2022
@heejaechang heejaechang added the fixed in next version (main) A fix has been implemented and will appear in an upcoming version label Sep 14, 2022
@debonte
Copy link
Contributor

debonte commented Sep 22, 2022

This issue has been fixed in prerelease version 2022.9.31, which we've just released. You can find the changelog here: CHANGELOG.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fixed in next version (main) A fix has been implemented and will appear in an upcoming version
Projects
None yet
Development

No branches or pull requests

4 participants