File tree 2 files changed +14
-13
lines changed
packages/python/plotly/plotly
2 files changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -340,17 +340,18 @@ def to_html(
340
340
)
341
341
342
342
plotly_html_div = """\
343
- <div>\
344
- {mathjax_script}\
345
- {load_plotlyjs}\
346
- <div id="{id}" class="plotly-graph-div" \
347
- style="height:{height}; width:{width};">\
348
- </div>\
349
- <script type="text/javascript">\
350
- {require_start}window.PLOTLYENV=window.PLOTLYENV || {{}};{base_url_line}{script};{require_end}\
351
- </script>\
352
- </div>\
353
- """ .format (
343
+ <div>\
344
+ {mathjax_script}\
345
+ {load_plotlyjs}\
346
+ <div id="{id}" class="plotly-graph-div" \
347
+ style="height:{height}; width:{width};"></div>\
348
+ <script type="text/javascript">\
349
+ {require_start}\
350
+ window.PLOTLYENV=window.PLOTLYENV || {{}};{base_url_line}\
351
+ {script};\
352
+ {require_end}\
353
+ </script>\
354
+ </div>""" .format (
354
355
mathjax_script = mathjax_script ,
355
356
load_plotlyjs = load_plotlyjs ,
356
357
id = plotdivid ,
Original file line number Diff line number Diff line change @@ -305,13 +305,13 @@ def test_repr_html(renderer):
305
305
id_pattern = "cd462b94-79ce-42a2-887f-2650a761a144"
306
306
template = (
307
307
'<div> <script type="text/javascript">'
308
- "window.PlotlyConfig = {MathJaxConfig: 'local'};</script> "
308
+ "window.PlotlyConfig = {MathJaxConfig: 'local'};</script>\n "
309
309
'<script src="https://cdn.plot.ly/plotly-latest.min.js"></script> '
310
310
'<div id="cd462b94-79ce-42a2-887f-2650a761a144" class="plotly-graph-div" '
311
311
'style="height:100%; width:100%;"></div> <script type="text/javascript">'
312
312
" window.PLOTLYENV=window.PLOTLYENV || {};"
313
313
' if (document.getElementById("cd462b94-79ce-42a2-887f-2650a761a144"))'
314
- " { Plotly.newPlot( ' cd462b94-79ce-42a2-887f-2650a761a144',"
314
+ ' { Plotly.newPlot( " cd462b94-79ce-42a2-887f-2650a761a144",'
315
315
' [], {"template": {}},'
316
316
' {"responsive": true} ) };'
317
317
" </script> </div>"
You can’t perform that action at this time.
0 commit comments