Skip to content

Commit 7c2a92d

Browse files
committed
reverted the check for to see if offline was ever initialized
1 parent 9caf1c1 commit 7c2a92d

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

plotly/offline/offline.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@ def init_notebook_mode():
6060
from IPython.display import HTML, display
6161

6262
global __PLOTLY_OFFLINE_INITIALIZED
63-
if not __PLOTLY_OFFLINE_INITIALIZED:
64-
display(HTML("<script type='text/javascript'>" +
65-
"define('plotly', function(require, exports, module) {" +
66-
get_plotlyjs() +
67-
"});" +
68-
"require(['plotly'], function(Plotly) {" +
69-
"window.Plotly = Plotly;" +
70-
"});" +
71-
"</script>"))
63+
# if not __PLOTLY_OFFLINE_INITIALIZED:
64+
display(HTML("<script type='text/javascript'>" +
65+
"define('plotly', function(require, exports, module) {" +
66+
get_plotlyjs() +
67+
"});" +
68+
"require(['plotly'], function(Plotly) {" +
69+
"window.Plotly = Plotly;" +
70+
"});" +
71+
"</script>"))
7272
__PLOTLY_OFFLINE_INITIALIZED = True
7373

7474

0 commit comments

Comments
 (0)