Skip to content

Commit

Permalink
Don't try to import IPython when the python console is used.
Browse files Browse the repository at this point in the history
With an explicit call to `./bin/isympy -c python` there is
no need to attempt importing IPython.
  • Loading branch information
jrioux committed Dec 2, 2013
1 parent 88a7ea2 commit aa1803b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sympy/interactive/printing.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def init_printing(pretty_print=True, order=None, use_unicode=None,
except NameError:
pass

if ip and pretty_print:
if ip and ip.__module__.startswith('IPython') and pretty_print:
try:
import IPython
# IPython 1.0 deprecates the frontend module, so we import directly
Expand Down

0 comments on commit aa1803b

Please sign in to comment.