Conditionally start ipython.

This commit is contained in:
David Tomaschik
2019-03-27 22:46:06 -07:00
parent c7619f93dc
commit 394eb7996c

View File

@@ -1,4 +1,7 @@
import os, IPython
os.environ['PYTHONSTARTUP'] = '' # Prevent running this again
IPython.start_ipython()
raise SystemExit
try:
import os, IPython
os.environ['PYTHONSTARTUP'] = '' # Prevent running this again
IPython.start_ipython()
raise SystemExit
except ImportError:
pass