You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When getting warnings from nbqa-pylint, e.g. notebook.ipynb:cell_XX:Y:Z: C0206: Consider iterating with .items() (consider-using-dict-items), the cell number does not refer to the same number as in vscode. cell_XX does not count markdown cells, rendering the message confusing (and way less useful in large notebooks with lots of markdown)
Joining an example notebook as exported script, since github won't allow me to joint it directly.
I run pre-commit run nbqa-pylint on the staged notebook to generate warnings.
Side question I couldn't find an answer to: Is there a way to force nbqa-pylint to show the context of the error and/or cell content, instead of just showing the warning with cell number? I can file it somewhere else (where?) if this is inappropriate.
The text was updated successfully, but these errors were encountered:
If vscode is showing numbers differently, then maybe we need ask them to reconsider their numbering?
We could introduce an option in nbQA to let the user choose, although:
I predict that ruff will subsume nbQA completely before too long (r.i.p. my lockdown project)
I don't have much time for this project at the moment so can't really prioritise adding anything new. Happy to review a pull request if you have interest / time though
Isn't that the execution number though, which will change a lot when using a notebook? afaik Jupyter Lab does not actually possess cell numbers. I'm referring to the number on the bottom right, cell X of Y.
true, I think I was assuming that people would be checking notebooks into version control after having done "restart and run all" (say, if they're using notebooks for documentation)
Issue
When getting warnings from nbqa-pylint, e.g.
notebook.ipynb:cell_XX:Y:Z: C0206: Consider iterating with .items() (consider-using-dict-items)
, the cell number does not refer to the same number as in vscode. cell_XX does not count markdown cells, rendering the message confusing (and way less useful in large notebooks with lots of markdown)Joining an example notebook as exported script, since github won't allow me to joint it directly.
I run
pre-commit run nbqa-pylint
on the staged notebook to generate warnings.System information
Notebook exported as Python script
Side question I couldn't find an answer to: Is there a way to force nbqa-pylint to show the context of the error and/or cell content, instead of just showing the warning with cell number? I can file it somewhere else (where?) if this is inappropriate.
The text was updated successfully, but these errors were encountered: