diff --git a/dotfiles/ipython.py b/dotfiles/ipython.py index f758bda..db5c9f4 100644 --- a/dotfiles/ipython.py +++ b/dotfiles/ipython.py @@ -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