Skip to content

Commit 695dd28

Browse files
committed
Handle communication with local plotly.
1 parent 0f14ee1 commit 695dd28

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

plotly/widgets/graphWidget.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plotly/widgets/graph_widget.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
from IPython.utils.traitlets import Unicode
88
from IPython.display import Javascript, display
99

10+
import plotly
11+
1012
__all__ = None
1113

1214
class Graph(widgets.DOMWidget):
@@ -85,6 +87,7 @@ def _handle_registration(self, event_type, callback, remove):
8587
self._handle_outgoing_message(message)
8688

8789
def _handle_outgoing_message(self, message):
90+
message['plotlyDomain'] = plotly.plotly.get_config()['plotly_domain']
8891
if self._graphId == '':
8992
self._clientMessages.append(message)
9093
else:

0 commit comments

Comments
 (0)