question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Register format ``html`` to ``Cosmology.write`` with nice mathjax

See original GitHub issue

Cosmology 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:closed
  • Created 2 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
JefftheCloudDogcommented, Apr 6, 2022

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.

1reaction
nstarmancommented, Mar 22, 2022

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found