Jack
Jack

Reputation: 101

Display conda enviroment in vscode terminal

I am trying to set up the conda environment under vs-code. I have set the python interpreter and unfortunately, there is no environment indication in vscode terminal

Do you know how to fix it and correctly configure it?

Thanks.

Upvotes: 0

Views: 148

Answers (2)

Jack
Jack

Reputation: 101

Thank you for helping me and here it is all process fixing:

Appling the command:

conda init Powershell

then following Fix Error PS1 Can Not Be Loaded Because Running Scripts Is Disabled

  1. set-ExecutionPolicy RemoteSigned -Scope CurrentUser
  2. Get-ExecutionPolicy

Afer I do have correct output at vs-code terminal :)

Upvotes: 1

Peter
Peter

Reputation: 12375

It's important that your environment is activated before you can use it. If your terminal doesn't show the environement prefix, simply try starting the terminal again. This is especially an issue if you installed the coderunner extension too.

If this doesn't help, try

conda init powershell

and then restart the terminal.

Upvotes: 0

Related Questions