Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using multiple Python kernels in Visual Studio Code

I am trying to start using Visual Studio Code with Python/Jupyter extensions by Don Jayamanne. I have both Python 3.5 and 3.6 kernels on my system, but I am unable to make them both visible to those extensions. Only the system default kernel is available in VS Code.

How to make sure VS Code and Python extensions see all available Python kernels and allow me to choose from them?

like image 310
Andy Avatar asked May 15 '26 15:05

Andy


1 Answers

I am using Microsoft's Python extension. For this, you can do:

Ctrl+Shift+P (Command palette) -> Python: Select Interpreter

OR, click on the environment on the bottom left corner (e.g. below), and change it.

enter image description here

If it is still not discoverable, then we need to include the relevant paths. You can do so via the Command Palette -> Preferences: Open User Settings -> Search for path -> Select the Python extension to change its settings -> Point the paths to your system setup accordingly (e.g. Conda Path, Pipenv Path, Python Path, Venv Path)

like image 84
Ryan Y Avatar answered May 18 '26 04:05

Ryan Y



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!