Skip to content

Commit

Permalink
Merge pull request #854 from SamLau95/master
Browse files Browse the repository at this point in the history
Update graphwidget to be compatible with new versions of iPython
  • Loading branch information
jackparmer committed Dec 12, 2017
2 parents 5e369b0 + 7dd4ddd commit a226e07
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
15 changes: 4 additions & 11 deletions plotly/package_data/graphWidget.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions plotly/widgets/graph_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
from requests.compat import json as _json

# TODO: protected imports?
from IPython.html import widgets
from IPython.utils.traitlets import Unicode
import ipywidgets as widgets
from traitlets import Unicode
from IPython.display import Javascript, display

import plotly.plotly.plotly as py
Expand All @@ -33,6 +33,7 @@ class GraphWidget(widgets.DOMWidget):
Notebooks.
"""
_view_name = Unicode('GraphView', sync=True)
_view_module = Unicode('graphWidget', sync=True)
_message = Unicode(sync=True)
_graph_url = Unicode(sync=True)
_new_url = Unicode(sync=True)
Expand Down

0 comments on commit a226e07

Please sign in to comment.