When using anaconda (install for python), when I switch to the virtual env with this:
source activate my_env
It changes my prompt and adds (my_env) at the start of my PS1.
I've tried adding export VIRTUAL_ENV_DISABLE_PROMPT=1
to my bashrc, but it did not help.
Any idea?
It seems unresponsive at that point so I'm in the habit of just closing the window with the mouse. That will work fine, or use ctrl-C in the Terminal to terminate the Jupyter process (it will prompt you if you really want to quit).
If you receive this warning, you need to activate your environment. To do so on Windows, run: c:\Anaconda3\Scripts\activate base in Anaconda Prompt.
Anaconda command prompt is just like command prompt, but it makes sure that you are able to use anaconda and conda commands from the prompt, without having to change directories or your path. When you start Anaconda command prompt, you'll notice that it adds/("prepends") a bunch of locations to your PATH.
Run this on the terminal:
$ conda config --set changeps1 False
http://conda.pydata.org/docs/config.html#change-command-prompt-changeps1
Add:
changeps1: False
to your .condarc file.
http://conda.pydata.org/docs/config.html#change-command-prompt-changeps1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With