sorin
sorin

Reputation: 170320

How to make ipython default when you run python if ipython is installed?

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

Answers (3)

lovelyzoo
lovelyzoo

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

Philippe T.
Philippe T.

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

Ashwini Chaudhary
Ashwini Chaudhary

Reputation: 250871

Create an alias in the .bashrc file:

alias python='ipython'

Upvotes: 3

Related Questions