Use ipython when available.

This commit is contained in:
David Tomaschik
2019-03-04 07:40:08 -08:00
parent 10cd949696
commit c86050bc3b
2 changed files with 7 additions and 0 deletions

4
dotfiles/ipython.py Normal file
View File

@@ -0,0 +1,4 @@
import os, IPython
os.environ['PYTHONSTARTUP'] = '' # Prevent running this again
IPython.start_ipython()
raise SystemExit

View File

@@ -0,0 +1,3 @@
if which ipython >/dev/null 2>/dev/null ; then
export PYTHONSTARTUP="${HOME}/.ipython.py"
fi