Mark unused variables in Jupyter notebooks #3920
TernaryM01
started this conversation in
Enhancement
Replies: 3 comments 2 replies
-
Moving this issue to discussion as an enhancement request for comments and upvotes. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@heejaechang, looks like your recent fix for unused imports was specific to imports. Could it be easily expanded to handle the other unused symbol scenarios? #3175 |
Beta Was this translation helpful? Give feedback.
2 replies
-
This would be useful, for example for pruning gather outputs. However, I notice pylance doesn't mark global-scope variables unused either. Is this by design? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In Python (*.py) files, unused variables (in my case, function parameters that are never used in the function) are marked by being greyed out.
However, that is not the case for Python code cells in Jupyter notebooks (*.ipynb). I have installed Jupyter extensions, installed pylint in the environment, and searched the web. Such a feature doesn't seem to exist yet. Please add it.
Beta Was this translation helpful? Give feedback.
All reactions