Skip to content

Commit 3eb0929

Browse files
committed
Merge pull request #117 from plotly/andrew-fix-ipython-import
Fix "'module' object has no attribute 'display'" for old ipython.
2 parents 3056f20 + 6f68ee6 commit 3eb0929

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: plotly/tools.py

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def warning_on_one_line(message, category, filename, lineno, file=None, line=Non
3333

3434
try:
3535
import IPython
36+
import IPython.core.display
3637
_ipython_imported = True
3738
except ImportError:
3839
_ipython_imported = False

0 commit comments

Comments
 (0)