-
Notifications
You must be signed in to change notification settings - Fork 294
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
Under the same color theme, the code highlighting of the ipynb file and the py file are inconsistent, and the code highlighting of the py file is more complete #6799
Comments
Are you getting any intellisense in your Jupyter notebook at all? Note for triage, this is likely an issue with the notebook concat document code in the Python extension. |
@joyceerhl Do you mean I need to submit this issue to vscode-python?😁 |
I am also experiencing both issues mentioned in this item. As for the inconsistent code highlighting colors, the ipynb/notebook colors seem muted (very hard to tell from the CodeSnap screenshots --- but definitely noticeable to my eyes when working with these files) compared to the py file colors, not to mention the different highlighting behavior: As for the missing intellisense in the Notebook, I've noticed that this problem largely goes away when opening the Notebook in a workspace --- i.e. an instance of VSCode that has been opened from "Open Folder." |
I'm having the same highlighting issue. I'm using Pylance and the Dark+ theme. Unlike the py file, there is no semantic token information in the notebook - the only thing that shows is the textmates scope. If I turn off semantic highlighting and use a theme with textmates scopes, the highlighting appears to be consistent between a py file and notebook (although I did not scrutinize all of the possibilities for consistency). Intellisense works fine. Environment data: If helpful, I can capture and upload the Jupyter output, Pylance output, and developer console. |
This isn't actually fixed yet. Requires VS code core changes. See this pr: |
Well and that PR will only fix it for opening files. Edits to files requires more fixes. |
Environment data
版本: 1.59.0-insider (user setup)
提交: 04485223ebc6a075f39966bf9b3e261359ac7818
日期: 2021-07-23T19:21:12.120Z
Electron: 13.1.7
Chrome: 91.0.4472.124
Node.js: 14.16.0
V8: 9.1.269.36-electron.0
OS: Windows_NT x64 10.0.18363
Expected behaviour
The code highlighting of the ipynb file and the py file are consistent
Actual behaviour
The text was updated successfully, but these errors were encountered: