Skip to content

Instantly share code, notes, and snippets.

@jgwill
Last active June 9, 2023 16:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgwill/3f9ac9051ebf3c2f5893af1895b802d7 to your computer and use it in GitHub Desktop.
Save jgwill/3f9ac9051ebf3c2f5893af1895b802d7 to your computer and use it in GitHub Desktop.
Terminal with Conda activating specific environment

Terminal with Conda activating specific environment

Specifically

"Conda PS 7 py310ESRGAN": {
      "path": "C:\\Program Files\\PowerShell\\7\\pwsh.exe",
      "args": ["-NoExit","-Command"," C:\\usr\\local\\anaconda\\shell\\condabin\\conda-hook.ps1 ; conda activate py310ESRGAN"]
    },
"Conda PS 7 MYENV": {
      "path": "C:\\Program Files\\PowerShell\\7\\pwsh.exe",
      "args": ["-NoExit","-Command"," C:\\usr\\local\\anaconda\\shell\\condabin\\conda-hook.ps1 ; conda activate MYENV"]
    },

Which has the NOExit and -Command to Activate the Python Environment

"terminal.integrated.profiles.windows": {
"PowerShell": {
"source": "PowerShell",
"icon": "terminal-powershell"
},
"Command Prompt": {
"path": [
"${env:windir}\\Sysnative\\cmd.exe",
"${env:windir}\\System32\\cmd.exe"
],
"args": [],
"icon": "terminal-cmd"
},
"Git Bash": {
"source": "Git Bash"
},
"Ubuntu-20.04 (WSL)": {
"path": "C:\\WINDOWS\\System32\\wsl.exe",
"args": ["-d", "Ubuntu-20.04"]
},
"Conda PS 7 py310ESRGAN": {
"path": "C:\\Program Files\\PowerShell\\7\\pwsh.exe",
"args": ["-NoExit","-Command"," C:\\usr\\local\\anaconda\\shell\\condabin\\conda-hook.ps1 ; conda activate py310ESRGAN"]
},
"Conda PS 7 py37_TF_GPU221028": {
"path": "C:\\Program Files\\PowerShell\\7\\pwsh.exe",
"args": ["-NoExit","-Command"," C:\\usr\\local\\anaconda\\shell\\condabin\\conda-hook.ps1 ; conda activate py37_TF_GPU221028"]
},
"Conda PS 7 ": {
"path": "C:\\Program Files\\PowerShell\\7\\pwsh.exe",
"args": ["-NoExit","-Command"," C:\\usr\\local\\anaconda\\shell\\condabin\\conda-hook.ps1 ; conda activate base"]
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment