I have just started using vscode for Python (ML) development. One thing I am unable to figure out is how to set vscode's intellisense refresh if the conda environment is updates.
eg Created a new workspace with a python interpreter from a conda environment. The environment.yml
as conda and pip packages. In the middle of my work, if I update the yml file and update the conda environment with conda env update -f environment.yml
I want vscode to update it's intellisense and the workspace as well so that I don't get symbol/import not found errors from the newly installed package. I know that with PyCharm you could set it such that the symbols would be reloaded.
I'm not sure if this is the most efficient way, but there is a command to reload the window, which has the effect of reloading the Python extension and rescanning the libraries. Open the command palette with CTRL + SHIFT + P , then start typing "reload". The option you want is called "Developer: Reload Window"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.