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

Pylance greys out accessed variables after cell was not edited for some time #13616

Closed
1 of 2 tasks
lenbrocki opened this issue May 31, 2023 · 2 comments
Closed
1 of 2 tasks
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 upstream-pylance Blocked on upstream Pylance

Comments

@lenbrocki
Copy link

Applies To

  • Notebooks (.ipynb files)
  • Interactive Window and/or Cell Scripts (.py files with #%% markers)

What happened?

When working on a notebook for about 20 minutes in some cells Pylance is showing variables in grey (indicating that they are not accessed in the code) although they are being accessed. When editing one of the cell the problem disappears (for all cells) and the variables are not shown in grey anymore. I would expect that the status about variales being accessed is always indicated correctly.

In this .gif you can see that after pressing space the variables are in grey anymore:
Screen_Recording_2023-05-31_at_12_22_54_AdobeExpress

VS Code Version

Version: 1.78.2 Commit: b3e4e68a0bc097f0ae7907b217c1119af9e03435 Date: 2023-05-10T15:00:40.428Z (2 wks ago) Electron: 22.5.2 Chromium: 108.0.5359.215 Node.js: 16.17.1 V8: 10.8.168.25-electron.0 OS: Darwin arm64 22.3.0 Sandboxed: Yes

Jupyter Extension Version

v2023.4.1011241018

Jupyter logs

No response

Coding Language and Runtime Version

No response

Language Extension Version (if applicable)

No response

Anaconda Version (if applicable)

No response

Running Jupyter locally or remotely?

Remote

@lenbrocki lenbrocki added the bug Issue identified by VS Code Team member as probable bug label May 31, 2023
@DonJayamanne
Copy link
Contributor

@lenbrocki I am very sorry for never getting back to you on this issue.
Are you still running into this issue.

@DonJayamanne DonJayamanne added info-needed Issue requires more information from poster notebook-intellisense Intellisense & other language features in notebook cells for any language upstream-pylance Blocked on upstream Pylance labels Dec 1, 2023
@DonJayamanne
Copy link
Contributor

@lenbrocki I'm going to close this for now, once again sorry for not getting back to you.
Please feel free to create a new issue or ping here and I will look into this.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 18, 2024
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 upstream-pylance Blocked on upstream Pylance
Projects
None yet
Development

No branches or pull requests

2 participants