4545directory_script = '<script charset="utf-8" src="plotly.min.js"></script>'
4646
4747
48- mathjax_cdn = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax .js"
48+ mathjax_cdn = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/3.2.2/es5/tex-svg.min .js"
4949
50- mathjax_config_str = "?config=TeX-AMS-MML_SVG"
51-
52- mathjax_cdn_script = '<script src="{cdn}{config}"></script>' .format (
53- cdn = mathjax_cdn , config = mathjax_config_str
54- )
50+ mathjax_cdn_script = f'<script src="{ mathjax_cdn } "></script>'
5551
5652mathjax_font = "STIX-Web"
5753
@@ -369,7 +365,7 @@ def test_include_mathjax_path_html(self):
369365 self .assertIn (plotly_config_script , html )
370366 self .assertIn (PLOTLYJS , html )
371367 self .assertNotIn (mathjax_cdn_script , html )
372- self .assertIn (other_cdn + mathjax_config_str , html )
368+ self .assertIn (other_cdn , html )
373369 self .assertIn (mathjax_font , html )
374370
375371 def test_include_mathjax_path_div (self ):
@@ -379,7 +375,7 @@ def test_include_mathjax_path_div(self):
379375 self .assertIn (plotly_config_script , html )
380376 self .assertIn (PLOTLYJS , html )
381377 self .assertNotIn (mathjax_cdn_script , html )
382- self .assertIn (other_cdn + mathjax_config_str , html )
378+ self .assertIn (other_cdn , html )
383379 self .assertIn (mathjax_font , html )
384380
385381 def test_auto_play (self ):
0 commit comments