@@ -66,12 +66,6 @@ def to_html(
6666 generated with include_plotlyjs=True, but they require an active
6767 internet connection in order to load the plotly.js library.
6868
69- If 'cdn-latest', a script tag that always references the latest plotly.js
70- CDN is included in the output.
71- HTML files generated with this option are about 3MB smaller than those
72- generated with include_plotlyjs=True, but they require an active
73- internet connection in order to load the plotly.js library.
74-
7569 If 'directory', a script tag is included that references an external
7670 plotly.min.js bundle that is assumed to reside in the same
7771 directory as the HTML file.
@@ -272,15 +266,12 @@ def to_html(
272266 require_start = 'require(["plotly"], function(Plotly) {'
273267 require_end = "});"
274268
275- elif include_plotlyjs == "cdn" or include_plotlyjs == "cdn-latest" :
276- cdn_url = plotly_cdn_url ()
277- if include_plotlyjs == "cdn-latest" :
278- cdn_url = plotly_cdn_url (cdn_ver = "latest" )
269+ elif include_plotlyjs == "cdn" :
279270 load_plotlyjs = """\
280271 {win_config}
281272 <script src="{cdn_url}"></script>\
282273 """ .format (
283- win_config = _window_plotly_config , cdn_url = cdn_url
274+ win_config = _window_plotly_config , cdn_url = plotly_cdn_url ()
284275 )
285276
286277 elif include_plotlyjs == "directory" :
@@ -431,12 +422,6 @@ def write_html(
431422 generated with include_plotlyjs=True, but they require an active
432423 internet connection in order to load the plotly.js library.
433424
434- If 'cdn-latest', a script tag that always references the latest plotly.js
435- CDN is included in the output.
436- HTML files generated with this option are about 3MB smaller than those
437- generated with include_plotlyjs=True, but they require an active
438- internet connection in order to load the plotly.js library.
439-
440425 If 'directory', a script tag is included that references an external
441426 plotly.min.js bundle that is assumed to reside in the same
442427 directory as the HTML file. If `file` is a string to a local file
0 commit comments