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

variables in native notebook cell not colored #129012

Closed
hoishing opened this issue Jul 18, 2021 · 4 comments
Closed

variables in native notebook cell not colored #129012

hoishing opened this issue Jul 18, 2021 · 4 comments
Assignees
Labels
*caused-by-extension Issue identified to be caused by an extension

Comments

@hoishing
Copy link

Some elements in native notebook cell seems not properly colored, such as variables, module names and module methods. While these elements are colored in normal python files. Here provide 2 screen captures, the upper one is from native notebook, the lower one is from a .py file.

20210718_130816

20210718_130838

They are using the same theme. Do I need to setup anything such that the coloring theme behave the same in both notebook and normal python file?

thanks.

  • VSCode version 1.58.2
  • jupyter extension: v2021.8.1013163132
@DavidKutu DavidKutu transferred this issue from microsoft/vscode-jupyter Jul 19, 2021
@DavidKutu DavidKutu removed their assignment Jul 19, 2021
@hoishing
Copy link
Author

other color theme such as One Dark Pro, does not have the above problem. I suspect the problem is not caused by vscode nor the Jupyter extension, but the built-in color theme such as Dark +
Seems those built-in color themes don't fully support native notebook yet.

@roblourens
Copy link
Member

Is semantic highlighting not supported in notebook cells? Do you know where this is contributed by @rebornix?

@ted1030
Copy link

ted1030 commented Aug 6, 2021

image
I am using One Dark Pro, but there is also no semantic highlighting.

@roblourens
Copy link
Member

Filed microsoft/pylance-release#1932

@roblourens roblourens added the *caused-by-extension Issue identified to be caused by an extension label Oct 13, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Nov 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*caused-by-extension Issue identified to be caused by an extension
Projects
None yet
Development

No branches or pull requests

4 participants