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

Support for jupyter.runStartupCommands #371

Open
indrex opened this issue Dec 21, 2023 · 1 comment
Open

Support for jupyter.runStartupCommands #371

indrex opened this issue Dec 21, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@indrex
Copy link

indrex commented Dec 21, 2023

Environment:

  • VSCode (latest)
  • Jupyter and ruff extensions

Issue:

  • Jupyter allows some commands to be run at startup
  • This can be tested using jupyter.runStartupCommands in VSCode settings
  • If I import a module using this, it is not recognized by ruff
  • It lints the import wondering where did it come from

Expected resolution:

  • Look at the auto imports, or the available namespace variables
  • Allow a setting to let ruff know of such imports?

Example:
import pandas as pd is run at startup
image

@charliermarsh charliermarsh added the enhancement New feature or request label Jan 16, 2024
@dhruvmanila
Copy link
Member

Related: astral-sh/ruff#9644

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants