Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Anaconda: disable prompt change

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?

like image 891
DevShark Avatar asked Apr 08 '16 12:04

DevShark


People also ask

How do I turn off Anaconda prompt?

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).

How do I enable Anaconda prompt?

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.

What is the difference between Anaconda prompt and command 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.


2 Answers

Run this on the terminal:

$ conda config --set changeps1 False 

http://conda.pydata.org/docs/config.html#change-command-prompt-changeps1

like image 137
rajats105 Avatar answered Oct 11 '22 15:10

rajats105


Add:

changeps1: False 

to your .condarc file.

http://conda.pydata.org/docs/config.html#change-command-prompt-changeps1

like image 33
Adam Avatar answered Oct 11 '22 13:10

Adam