In Jupyter notebook I'm getting the hint "Undefined name time - Ruff(F821)" when I'm specifically using a variable with the name "time" and reference it in another cell.
I believe this is the same as https://github.com/astral-sh/ruff/issues/8526 -- we have trouble distinguishing variables from magic commands of the same name. Merging into that issue...
In Jupyter notebook I'm getting the hint "Undefined name
time
- Ruff(F821)" when I'm specifically using a variable with the name "time" and reference it in another cell.Minimal example to reproduce:
First cell
(this is not marked)
Second cell
(here "time" is marked)
relevant settings:
VS Code 1.85.1 Ruff v2023.60.0