We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent feca305 commit 8e1a602Copy full SHA for 8e1a602
plotly/widgets/graph_widget.py
@@ -8,6 +8,8 @@
8
from IPython.utils.traitlets import Unicode
9
from IPython.display import Javascript, display
10
11
+from plotly import utils
12
+
13
# Load JS widget code
14
# No officially recommended way to do this in any other way
15
# http://mail.scipy.org/pipermail/ipython-dev/2014-April/013835.html
@@ -95,7 +97,7 @@ def _handle_outgoing_message(self, message):
95
97
else:
96
98
message['graphId'] = self._graphId
99
message['uid'] = str(uuid.uuid4())
- self._message = json.dumps(message)
100
+ self._message = json.dumps(message, cls=utils.PlotlyJSONEncoder)
101
102
def on_click(self, callback, remove=False):
103
"""Register a callback to execute when the graph is clicked.
0 commit comments