@@ -66,12 +66,6 @@ def to_html(
66
66
generated with include_plotlyjs=True, but they require an active
67
67
internet connection in order to load the plotly.js library.
68
68
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
-
75
69
If 'directory', a script tag is included that references an external
76
70
plotly.min.js bundle that is assumed to reside in the same
77
71
directory as the HTML file.
@@ -272,15 +266,12 @@ def to_html(
272
266
require_start = 'require(["plotly"], function(Plotly) {'
273
267
require_end = "});"
274
268
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" :
279
270
load_plotlyjs = """\
280
271
{win_config}
281
272
<script src="{cdn_url}"></script>\
282
273
""" .format (
283
- win_config = _window_plotly_config , cdn_url = cdn_url
274
+ win_config = _window_plotly_config , cdn_url = plotly_cdn_url ()
284
275
)
285
276
286
277
elif include_plotlyjs == "directory" :
@@ -431,12 +422,6 @@ def write_html(
431
422
generated with include_plotlyjs=True, but they require an active
432
423
internet connection in order to load the plotly.js library.
433
424
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
-
440
425
If 'directory', a script tag is included that references an external
441
426
plotly.min.js bundle that is assumed to reside in the same
442
427
directory as the HTML file. If `file` is a string to a local file
0 commit comments