Reputation: 170320
I am looking for a make bash profile trick to make ipython
default when you run python from the command line, obvioulsly without damaging normal python script executon.
Is this possible, how?
Upvotes: 3
Views: 858
Reputation: 55
Here's the recommended approach from the IPython documentation. I don't have any opinion on running scripts using this though.
Upvotes: 0
Reputation: 1192
possible , may be , dangerous also... i think that's not a good idea, but, if you are on linux , you can use alias:
alias python="ipython"
put it , in your ~/.bash_rc for exemple
Upvotes: 0
Reputation: 250871
Create an alias in the .bashrc
file:
alias python='ipython'
Upvotes: 3