Skip to content

Commit 6f68ee6

Browse files
committed
Fix "'module' object has no attribute 'display'" for old ipython.
1 parent 3802f96 commit 6f68ee6

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)