web applications – MathJax call from Python script

How can MathJax be called from a Python script (like for HTML script in its header docs.mathjax.org/en/latest/web/start.html)?

Consider the following situation:

  • writing a web appliction with a Python script
  • in this Python code, it is required to render mathematical formulas (LaTex notation) in the browser
  • key feature: those LaTex notations for the mathematical formulas shall be taken from a separate spreadsheet list (Excel column) that is deployed with the web application
  • thus the mathematical formulas are not hard coded in the Python script, but are sequentailly (iteration) displayed by Python in the brower from the spreadsheet
  • the browser shall dynamically update the displayed mathematical formulas when the spreadsheet is updated and the Python script is run

P.S.: Alternatively, how could this be solved by a separate JavaScript called by the Python script? After online research, no such solutions could be found for Python till present.

Read more here: Source link