We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7064d74 commit 3cafb00Copy full SHA for 3cafb00
plotly/offline/offline.py
@@ -140,7 +140,20 @@ def init_notebook_mode(connected=False):
140
'</script>'
141
'').format(script=get_plotlyjs())
142
143
+ mathjax_script = (
144
+ '<script>'
145
+ 'var waitForPlotly = setInterval( function() {'
146
+ ' if( typeof(window.Plotly) !== "undefined" ){'
147
+ ' MathJax.Hub.Config('
148
+ ' { SVG: { font: "STIX-Web" }, displayAlign: "center" });'
149
+ ' MathJax.Hub.Queue(["setRenderer", MathJax.Hub, "SVG"]);'
150
+ ' clearInterval(waitForPlotly);'
151
+ ' }}, 250 );'
152
+ '</script>'
153
+ )
154
+
155
ipython_display.display(ipython_display.HTML(script_inject))
156
+ ipython_display.display(ipython_display.HTML(mathjax_script))
157
__PLOTLY_OFFLINE_INITIALIZED = True
158
159
0 commit comments