Startup imports unkown #2918
bdch1234
started this conversation in
Enhancement
Replies: 2 comments
-
Thanks for the issue. This would likely have to be handled by pylance (if at all). Transferring there. |
Beta Was this translation helpful? Give feedback.
0 replies
-
we should put this file as the first chained file in the notebook so symbols defined in the file is implicitly imported and available to cells. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Not sure if this should be filed here or in the Pylance-repo, but here goes.
Using the default startup functionality makes Pylance complain about unkowns. As an example, if I make a file startup.ipy, with the only contents "import numpy as np" in it, and put it in the "~/.ipython/profile_defaults/startup" directory, then I can in every new notebook directly use the np-import. Pylance however, will still give the errors "np is not defined".
Beta Was this translation helpful? Give feedback.
All reactions