Issue
Used to be able to use anaconda python in VS code (ubuntu 20.04). Now the VS code option for Conda environments disappeared and I'm not sure why. Reloading the VS code/rebooting the computer sometimes gives me back the conda environment. But it will disappear again when I open another .ipynb file.
This happened after me opening a jupyter notebook file on a mounted SFTP server, direclty from the files app. That notebook worked fine actually. After closing that notebook, I cannot see my conda environment in other notebooks.
I tried loading the python enviroments by pressing "Ctrl + Shift + P". There I can see all python environments and can select anyone I like. I can also run ".py" scripts without a problem. But in Jupyter notebook I cannot select the Conda environments.
Solution
Thanks a lot for the comments! Since I want to use the anaconda environment, not my current environment, a clean uninstall/reinstall worked for me in the end. I'm using Ubuntu 20.04 and followed the instructions on this Visual Studio Code webpage. Not sure what caused the problem in the beginning, might be some extension packages related to SSH.
Answered By - Chuankun
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.