Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions plotly/tests/test_optional/test_ipython/test_widgets.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from unittest import TestCase

from plotly.widgets import GraphWidget


class TestWidgets(TestCase):

def test_instantiate_graph_widget(self):
widget = GraphWidget
2 changes: 1 addition & 1 deletion plotly/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.6.3'
__version__ = '1.6.5'
4 changes: 1 addition & 3 deletions plotly/widgets/graph_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@
# Load JS widget code
# No officially recommended way to do this in any other way
# http://mail.scipy.org/pipermail/ipython-dev/2014-April/013835.html
directory = os.path.dirname(os.path.realpath(__file__))
js_widget_file = os.path.join(directory, 'graphWidget.js')
js_widget_code = resource_string('plotly',
'widgets/graphWidgets.js').decode('utf-8')
'widgets/graphWidget.js').decode('utf-8')

display(Javascript(js_widget_code))

Expand Down