Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register format html to Cosmology.write with nice mathjax #12356

Open
nstarman opened this issue Nov 2, 2021 · 0 comments
Open

Register format html to Cosmology.write with nice mathjax #12356

nstarman opened this issue Nov 2, 2021 · 0 comments

Comments

@nstarman
Copy link
Member

@nstarman nstarman commented Nov 2, 2021

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').

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Cosmology, the Expansion
  
Interoperability
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant