Register format ``html`` to ``Cosmology.write`` with nice mathjax
See original GitHub issueCosmology can now read and write to files.
It would be nice to register with Cosmology.write
a method for exporting a Cosmology to a HTML table.
There are good examples of IO with Cosmology at https://github.com/astropy/astropy/tree/main/astropy/cosmology/io
and documentation at https://docs.astropy.org/en/latest/cosmology/io.html#cosmology-io
I’m thinking the write_html(...)
method would call cosmology.io.table.to_table()
, format the table to nice MathJax or something and then call the QTable.write(..., format='html')
.
Edit: also, the mathjax representation of each parameter can be stored on the corresponding Parameter object, like how units have the format
argument in def_unit.
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (12 by maintainers)
Top Results From Across the Web
MathJax | Beautiful math in all browsers.
Beautiful and accessible math in all browsers. A JavaScript display engine for mathematics that works in all browsers. No more setup for readers....
Read more >MathJax Documentation - Read the Docs
MathJax allows page authors to write formulas using TeX and LaTeX notation, MathML (a World Wide Web Consortium standard for representing.
Read more >MathJax-LaTeX – WordPress plugin
MathJax enables enables rendering of embedded LaTeX or MathML in HTML pages. This plugin adds this functionality to WordPress. The MathJax JavaScript is ......
Read more >What is MathJax? | arXiv e-print repository
On these pages, MathJax has been configured to render inline ($-enclosed) \TeX only. For example, the expression $P(E) = {n \choose k} p^k...
Read more >Moodle in English: Moodlev2.0 and MathJax
I have also found a nice solution to get tex filter tags re-editable in editor as selectable images or tex filter code so...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the response! I created a draft pull request for this issue. I did try to adhere to the instructions, but since this is my first contribution, there might be some mistakes. Please let me know if there are any issues.
@JefftheCloudDog that would be great! No one else is currently working on this feature request. If you need any help or have any questions I am happy to help. You can post here, or in the Astropy Slack cosmology channel. We also have documentation to assist in contributing at https://www.astropy.org/contribute.html#contribute-code-or-docs.