Skip to content

Commit a226e07

Browse files
authored
Merge pull request plotly#854 from SamLau95/master
Update graphwidget to be compatible with new versions of iPython
2 parents 5e369b0 + 7dd4ddd commit a226e07

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

plotly/package_data/graphWidget.js

+4-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plotly/widgets/graph_widget.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
from requests.compat import json as _json
1010

1111
# TODO: protected imports?
12-
from IPython.html import widgets
13-
from IPython.utils.traitlets import Unicode
12+
import ipywidgets as widgets
13+
from traitlets import Unicode
1414
from IPython.display import Javascript, display
1515

1616
import plotly.plotly.plotly as py
@@ -33,6 +33,7 @@ class GraphWidget(widgets.DOMWidget):
3333
Notebooks.
3434
"""
3535
_view_name = Unicode('GraphView', sync=True)
36+
_view_module = Unicode('graphWidget', sync=True)
3637
_message = Unicode(sync=True)
3738
_graph_url = Unicode(sync=True)
3839
_new_url = Unicode(sync=True)

0 commit comments

Comments
 (0)