Consider starting VS Code from within an Anaconda terminal session #9399
greazer
started this conversation in
Tips, Tricks and Workarounds
Replies: 1 comment
-
@greazer this is something I suggested in the past, we can detect the activated conda environment via environment variables and promote that kernel as the preferred kernel. Moved that discussion to this issue #9115 |
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
-
While both the Jupyter and Python extensions strive to fully support the Anaconda "out of the box", there are bugs that can be experienced in each of the extensions as well as in some of the Anaconda machinery itself.
One way of reducing the surface area for problems you may encounter is to run VS Code from within the context of an Anaconda environment to begin with. This is typically how other notebook tools like Jupyter are normally run, so it's not really that unusual of a thing to do.
You can do this from either Anaconda navigator:
or from an Anaconda prompt:
IMPORTANT NOTE: Currently the Anaconda environment that was active when you ran VS Code is not automatically selected as your Python interpreter or notebook kernel. So make sure to choose the specific environment you want to use by running either the
Python: Select Interpreter
orNotebook: Select Notebook Kernel
command.Beta Was this translation helpful? Give feedback.
All reactions