From cb05fdabfafc44a731fff103715fc4ed7514a3b0 Mon Sep 17 00:00:00 2001 From: Shun Wang Date: Fri, 5 May 2017 13:56:45 +0800 Subject: [PATCH] BUG FIX: init_notebook_mode(True) not work due to the wrong plotly-latest.min.js source url, the init_notebook_mode(connected=True) didn't work correctly. change the js url from https://cdn.plot.ly/plotly-latest.min to https://cdn.plot.ly/plotly-latest.min.js --- plotly/offline/offline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plotly/offline/offline.py b/plotly/offline/offline.py index e8fa27b2020..c3cfa162b97 100644 --- a/plotly/offline/offline.py +++ b/plotly/offline/offline.py @@ -116,7 +116,7 @@ def init_notebook_mode(connected=False): 'requirejs.config({' 'paths: { ' # Note we omit the extension .js because require will include it. - '\'plotly\': [\'https://cdn.plot.ly/plotly-latest.min\']},' + '\'plotly\': [\'https://cdn.plot.ly/plotly-latest.min.js\']},' '});' 'if(!window.Plotly) {{' 'require([\'plotly\'],'