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

Rich Syntax Highlighting non-functional in Jupyter Notebooks (worked before?) #1992

Closed
C-Lunn opened this issue Sep 14, 2021 · 4 comments
Closed
Labels
duplicate This issue or pull request already exists

Comments

@C-Lunn
Copy link

C-Lunn commented Sep 14, 2021

Does this issue occur when all extensions are disabled?: Since it's over SSH, hard to tell.

  • VS Code Version: 1.60.0
  • OS Version: Client: Windows 10 21H1; remote: Fedora 34

I've exhausted every step I can think of to get this working, and I am still convinced it's something I've done but I've been trying to fix this for about 2 weeks now and can't find anything, so maybe it's a bug.

Using the 'new' native ipynb interface, IntelliSense works but syntax highlighting does not. The syntax highlighting works fine in raw .py files. This worked PERFECTLY fine on my old client, the remote SSH server is still the same.

Here's what I mean:
Raw .py file: raw
Notebook file: notebook

As I say, intellisense works fine, so it's not that it's not getting picked up.

Steps I've tried:

  • Changing theme;
  • Uninstalling the Jupyter extension;
  • Installing the Jupyter extension;
  • Installing the Jupyter insiders version;
  • Selecting the 'ignore VSCode theme' option in Jupyter settings (appears to have no effect even after a full PC restart?);
  • Reinstalling python extension;
  • Installing Jupyter locally as well as remote (it simply does not activate which I believe is the expected behaviour);
  • Googled, so much google. Most results pertain to the old ipy interface;
  • Shouting.

Either I'm missing something obvious or there's something else going on?

Many thanks.

@rebornix
Copy link
Member

@C-Lunn do you see any syntax highlighting when the Python extension is disabled/uninstalled?

@C-Lunn
Copy link
Author

C-Lunn commented Sep 16, 2021

@C-Lunn do you see any syntax highlighting when the Python extension is disabled/uninstalled?

@rebornix :
With the Python extension disabled
raw .py:
image

ipynb:
image

I lose highlighting in raw py and ipynb files do not change. Thanks.

@rebornix rebornix transferred this issue from microsoft/vscode Sep 20, 2021
@lorenzo-w
Copy link

Disabling the Dependency Analytics extension fixed it for me (missing syntax highlighting as well as IntelliSense). I took the solution from this StackOverflow answer.

@karthiknadig karthiknadig transferred this issue from microsoft/vscode-python Oct 27, 2021
@jakebailey
Copy link
Member

Duplicate of #1932; full notebook support is currently a work in progress.

@jakebailey jakebailey added the duplicate This issue or pull request already exists label Oct 27, 2021
@github-actions github-actions bot removed the triage label Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

5 participants