Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2105d58

Browse filesBrowse files
committed
Merge pull request plotly#420 from dalogsdon/requirePlotly
Jupyter Notebook: Fix window.Plotly not defined error when running all cells
2 parents ac06e4c + c32be7a commit 2105d58
Copy full SHA for 2105d58

File tree

1 file changed

+2
-0
lines changed
Filter options

1 file changed

+2
-0
lines changed

‎plotly/offline/offline.py

Copy file name to clipboardExpand all lines: plotly/offline/offline.py
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,11 @@ def _plot_html(figure_or_data, show_link, link_text,
127127
'class="plotly-graph-div">'
128128
'</div>'
129129
'<script type="text/javascript">'
130+
'require(["plotly"], function(Plotly) {{'
130131
'window.PLOTLYENV=window.PLOTLYENV || {{}};'
131132
'window.PLOTLYENV.BASE_URL="' + plotly_platform_url + '";'
132133
'{script}'
134+
'}});'
133135
'</script>'
134136
'').format(
135137
id=plotdivid, script=script,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.