8000 reintroduced window.Plotly check · mode/plotly.py@8822ff4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8822ff4

Browse files
committed
reintroduced window.Plotly check
1 parent 0255406 commit 8822ff4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plotly/offline/offline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@ def init_notebook_mode(connected=False):
6767
script_inject = (
6868
''
6969
'<script>'
70-
# 'if(!window.Plotly) {{'
7170
'requirejs.config({'
7271
'paths: { '
7372
'\'plotly\': [\'https://cdn.plot.ly/plotly-latest.min\']},'
7473
'});'
74+
'if(!window.Plotly) {{'
7575
'require([\'plotly\'],'
7676
'function(plotly) {window.Plotly=plotly;});'
77-
# '}}'
77+
'}}'
7878
'</script>'
7979
)
8080
else:

0 commit comments

Comments
 (0)
0