Skip to content

Commit 8e9c21a

Browse files
Update doc/python/dropdowns.md
Co-authored-by: Liam Connors <[email protected]>
1 parent bd50dd6 commit 8e9c21a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: doc/python/dropdowns.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ for n, figname in enumerate(fig_dict.keys()):
489489
text_dict[figname]=f"Here is some custom text about the {figname} figure" #This is a succinct way to populate text_dict; in practice you'd probably populate it manually elsewhere
490490
data_for_jinja["dropdown_entries"]+=f"<option value='{figname}'>{fig_dict[figname].layout.title.text}</option>"
491491
#YOU MAY NEED TO UPDATE THE LINK TO THE LATEST PLOTLY.JS
492-
fig_html = fig_dict[figname].to_html(full_html=False, config=dict(responsive=False, scrollZoom=False, doubleClick=False), include_plotlyjs = "https://cdn.plot.ly/plotly-2.35.2.min.js")
492+
fig_html = fig_dict[figname].to_html(full_html=False, config=dict(responsive=False, scrollZoom=False, doubleClick=False), include_plotlyjs = "cdn")
493493
initially_hide_divs_other_than_the_first = "style=""display:none;"""*(n>0)
494494
data_for_jinja["divs"]+=f'<div id="{figname}" class="content-div" {initially_hide_divs_other_than_the_first}>{fig_html}{text_dict[figname]}</div>'
495495

0 commit comments

Comments
 (0)