diff --git a/extra_markdown.tpl b/extra_markdown.tpl index f9f94a4dd7368b5c4d8f75ce11a357c92322a05d..b6847f9ee86eba023ace7f8bb0ddf60c1d92e832 100644 --- a/extra_markdown.tpl +++ b/extra_markdown.tpl @@ -11,12 +11,8 @@ <script> window.addEventListener('load', function() { Plotly.d3.json('/{{plotly_url}}', function(error, fig) { - MathJax.Hub.Queue( - ["setRenderer",MathJax.Hub,"SVG"] - ); - Plotly.plot('{{div_id}}', fig.data, fig.layout); - MathJax.Hub.Queue( - ["setRenderer",MathJax.Hub,"HTMLCSS-output"] + Plotly.plot('{{div_id}}', fig.data, fig.layout).then( + function(value) {Plotly.relayout('{{div_id}}', {height: ' '})} ); }); });