Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add anaconda powershell to vscode?

I'm trying to add anaconda prompt to start up instead of powershell to avoid having to add python to env variables.

"terminal.integrated.shellArgs.windows": [
    <args>
]

I tried putting them into single line, splitting them "-Foo Goo" as well as "-Foo","Goo". Each version leads to either error or simply ignoring the "-Command" parameter (the lines simply get pasted, but not executed).

like image 476
Zerg Overmind Avatar asked Dec 14 '22 11:12

Zerg Overmind


1 Answers

First of all, I I'd like to give a hint for everyone that uses PowerShell to use the new one.

So, with the Anaconda ready to go (and it been equal or greater than 4.6 - use conda --version) run in sequence (from base environment in cwd terminal):

conda update conda
conda init

This will update your conda root environment and the init will setup all you need to run it on both cwd and powershell.

After this, you can start any powershell (inside vscode or not) and it will be conda ready.

Look at this article for further information.

Hope it helps!

like image 154
Bigous Avatar answered May 15 '23 15:05

Bigous