I love the Windows Terminal and if you haven't tried it out yet I highly recommend it. Its super customizable which is absolutely lovely. Here are ...
For further actions, you may consider blocking this person and/or reporting abuse
In the newest version of Windows Terminal, the changes are done in the settings.json file. Just change USERNAME to yours for the "commandline" setting.
{
// Make changes here to the cmd.exe profile.
"guid": "{0caa0dad-35be-5f56-a8ff-afceee452369}",
"name": "Anaconda",
"icon": "%USERPROFILE%\Anaconda3\Menu\anaconda-navigator.ico",
"commandline": "cmd.exe /K C:\Users\USERNAME\Anaconda3\Scripts\activate.bat",
"hidden": false
},
I updated to settings.json! Thanks!
My username is bsand, so my commandline setting is
"cmd.exe /K C:\Users\bsand\anaconda3\Scripts\activate.bat"
However, the \b is highlighted, I think it is acting as an escape character. Do you have any suggestions?
Try instead
"commandline": "cmd.exe /K C:\\Users\bsand\\anaconda3\\Scripts\\activate.bat"
If you want to have the Anaconda Icon can use this path.
AWESOME! I am going to add this to my setup. Do you mind if I add it into the blog post as well? Thank you :D
No problem! :) Go ahead! Actually thanks for the blog post! :)
(base) C:\Users\navee> this is my actual anaconda prompt
(base) C:\WINDOWS\System32> this is anaconda prompt in windows terminal
in the windows terminal, I'm running anaconda prompt as administrator mode
help me change into the user mode with windows terminal
Can you post the JSON here? For the
startingDirectory
change the JSON to the location you want the directory to open forstartingDirectory
.{
"guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6106}",
"hidden": false,
"icon":"C:\Users\navee\anaconda3\Menu\anaconda-navigator.ico",
"name": "AnacondaPrompt",
"commandline": "cmd.exe /K
C:\Users\navee\anaconda3\Scripts\activate.bat"
},
Not sure if I completely understand. Are you trying to run as admin in win term?
No, I'm not trying to run as admin.... while running in a Windows Terminal by default it's running in admin mode
I tried to change the path also, but every time in windows terminal, the anaconda prompt opening as administrator mode.
Anyways it won't make any difference if I run as administrator mode, so no probs
Thank You Cassie, thanks for ur time n support :)
Add "startingDirectory": "C:\Users\navee" to settings.json file.
Does that solve the problem?
I am facing the same problem is it resolved?
If anyone want to add a Miniconda Powershell prompt add this to the settings.json file:
If you have trouble being creative on step 3 you can just use PowerShell
docs.microsoft.com/en-us/powershel...
@vpraharsha03 I'm experiencing the same issue. @cassieview any idea as to what could be causing this? Thanks for the post! It was very helpful
@jfreeman2 it turned out that i used unnecessary capitalization in the property name. I used
commandLine
instead ofcommandline
cmd.exe
opens up because it is the default value whencommandline
property isn't specified or improperly specified.My miniconda installation was a bit different, and this what ended up working for me.
It is installed at this path "C:\ProgramData\Miniconda3"
the key is changing the guide variable,
my cmd guide is
0caa0dad-35be-5f56-a8ff-afceeeaa6101
I changed the guide by adding one with the last digit of cmd's guide and the rest of the things will be similar.
My anaconda guide is
0caa0dad-35be-5f56-a8ff-afceeeaa6102
is there anyway to add a command to run in the conda environment? I'd like to set up a profile for radian github.com/randy3k/radian which is installed in a conda environment.
Update the command line to the following:
"commandline": "cmd.exe /K %USERPROFILE%\\AppData\\Local\\Continuum\\anaconda3\\Scripts\\activate.bat & radian"
Thanks! I ended up with this actually - specifying the miniconda3 folder specifies the root environment which is not totally necessary in this case but useful if radian isn't in root.
Thanks for the sharing. This is great!
Note for new comer, use double backslash in value of command line.
As my last task in the regular Anaconda prompt, I ran
import uuid
uuid.uuid4()
Thanks so much for a helpful post!
This was really helpful, Thank you!