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

Jupyter in vscode can't execute syntax highlighting #7917

Closed
SupritYoung opened this issue Oct 13, 2021 · 11 comments
Closed

Jupyter in vscode can't execute syntax highlighting #7917

SupritYoung opened this issue Oct 13, 2021 · 11 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster notebook-intellisense Intellisense & other language features in notebook cells for any language

Comments

@SupritYoung
Copy link

Environment data

  • VS Code version: 1.61.0
  • Jupyter Extension version (available under the Extensions sidebar): v2021.9.1001312534
  • Python Extension version (available under the Extensions sidebar): v2021.10.1317843341
  • OS (Windows | Mac | Linux distro) and version: Mac
  • Python and/or Anaconda version: 3.8.8
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
  • Jupyter server running: Local

Expected behaviour

syntax highlighting

Actual behaviour

can't execute syntax highlighting

image

Steps to reproduce:

I try to change the python kernel in vscode
image

@SupritYoung SupritYoung added the bug Issue identified by VS Code Team member as probable bug label Oct 13, 2021
@rchiodo
Copy link
Contributor

rchiodo commented Oct 13, 2021

What other extensions do you have installed?

Can you take a full screenshot of the cell? The language in the lower right should say python.

image

If it doesn't that would be the reason why there's no syntax highlighting.

@rchiodo rchiodo added info-needed Issue requires more information from poster and removed needs-triage labels Oct 13, 2021
@CatNofishing
Copy link

CatNofishing commented Oct 14, 2021

@rchiodo Maybe his problem is this #6799

@ssm951
Copy link

ssm951 commented Oct 14, 2021

I have the same issue too, and just recently. For my cells in the lower right, it shows CVE instead of Python. When I click on it though, the command palette says that it was linting Python. What could have caused the issue?

image

@MathiasBaumgartinger
Copy link

I am having the same issue as described here

@rchiodo
Copy link
Contributor

rchiodo commented Oct 14, 2021

The 'CVE' issue may be this bug here #7914 (which is caused by the Dependency Analytics extension).

@Barlerer
Copy link

I also have the same issue. In the notebook, it is also identified as CVE instead of Python. And I can't even change it, as it changes right back. Any temp solution?

@rchiodo
Copy link
Contributor

rchiodo commented Oct 14, 2021

Remove/Disable the 'Dependency Analytics' extension (or potentially any other extensions minus the python and jupyter extension)

@greazer greazer added the notebook-intellisense Intellisense & other language features in notebook cells for any language label Oct 16, 2021
@SupritYoung
Copy link
Author

It's useful, Thank u so much !

@rchiodo
Copy link
Contributor

rchiodo commented Oct 19, 2021

Closing as there isn't something our extension can fix. Dependency analytics will have to address this.

@hbing-l
Copy link

hbing-l commented Jan 27, 2022

Thank u so much!

@JohanesKristiadi
Copy link

thanks

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster notebook-intellisense Intellisense & other language features in notebook cells for any language
Projects
None yet
Development

No branches or pull requests

9 participants