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

F821 false positive for IPython display() #8702

Closed
guyrosin opened this issue Nov 15, 2023 · 2 comments · Fixed by #8707
Closed

F821 false positive for IPython display() #8702

guyrosin opened this issue Nov 15, 2023 · 2 comments · Fixed by #8707
Assignees
Labels
bug Something isn't working

Comments

@guyrosin
Copy link

F821 (undefined-name) gives an "Undefined name display" when IPython's display() method is used in jupyter notebooks, although this method is automatically made available without import (reference).

See related issue in microsoft/vscode-jupyter#8539

image

Ruff version: 0.1.5

@charliermarsh charliermarsh added the bug Something isn't working label Nov 15, 2023
@charliermarsh
Copy link
Member

Is there any consolidated documentation on the builtins that are exposed in Jupyter?

@guyrosin
Copy link
Author

Not that I know of... I think they are just display() and magic commands

@charliermarsh charliermarsh self-assigned this Nov 15, 2023
charliermarsh added a commit that referenced this issue Nov 16, 2023
## Summary

`display` is a special-cased builtin in IPython. This PR adds it to the
builtin namespace when analyzing IPython notebooks.

Closes #8702.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants