Native Interactive Window - Pylance errors with variables imported in jupyter startup script #7098
Labels
bug
Issue identified by VS Code Team member as probable bug
notebook-intellisense
Intellisense & other language features in notebook cells for any language
Milestone
Environment data
One main part of my workflow is to have certain variables/modules imported at jupter startup, defined in a
startup.py
file at:~/.ipython/profile_default/startup/startup.py
Expalained fully here
Expected behaviour
Actual behaviour
For example I'd have
The module is imported, and
pd
is valid in theglobals()
, but pylance doesn't seem to recognize it. I'll also import lots of custom objects from the current project I'm working on, so you can imagine it's kinda hard to work when almost every variable is "undefined" (and also doesn't have intellisense).In screenshots:

Not sure what's actually going on here, but just expanding the code from the previous image (before executing anything) made pylance/problems go crazy:

pd
is recognized after explicitely importing in the current session:The text was updated successfully, but these errors were encountered: