You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add support for making embeddable sortable HTML table #4058
I've seen requests for this before--there should be an option to write just the table (and any associated script tags) without the head and body tags surrounding them.
The issue is still valid: it is possible to embed a simple table with Table.pformat, but not a fancy one with jsviewer. #4174 just improved the style of the jsviewer table and added some customization possibility. Then #4197 added Table.show_in_notebook which allows to embed a jsviewer in a notebook.
Based on this it should not be too hard to allow embedding a jsviewer table in any HTML page, the question is how to handle Javascript and CSS assets ? I mean what would be the API ?
We could return a tuple with the HTML for the table, and the HTML for the assets. But should the assets be external files, or from a CDN ?
Hi humans 👋 - this issue was labeled as Close? approximately 1 year, 5 months ago. So..... any news? 🗞️
If you think this issue should not be closed, a maintainer should remove the Close? label - otherwise, I'm just gonna have to close this issue in a month. Your time starts now! Tick tock 🕙
If you believe I commented on this issue incorrectly, please report this here
Activity
embray commentedon Aug 7, 2015
I've seen requests for this before--there should be an option to write just the table (and any associated script tags) without the head and body tags surrounding them.
taldcroft commentedon Aug 7, 2015
👍
jeanconn commentedon Aug 7, 2015
It would be cool if this could also be done from pformat or some such so one wouldn't need to write out the table to a file to get it (for embedding).
taldcroft commentedon Aug 7, 2015
You can always use
StringIO. Granted that is a little annoying.algerdnazgul commentedon Apr 19, 2016
Close.
pllim commentedon Apr 19, 2016
OK
taldcroft commentedon Apr 19, 2016
Is this actually closed? Is there now a way to write a sortable HTML table without head and body tags?
pllim commentedon Apr 19, 2016
Um, not sure. Just responding to @algerdnazgul 's request. I guess I'll re-open and add the "close?" tag instead.
jeanconn commentedon Apr 20, 2016
If #4174 does include a way to write out an embeddable/sortable table, it isn't immediately clear from doc changes in the PR.
saimn commentedon Apr 20, 2016
The issue is still valid: it is possible to embed a simple table with
Table.pformat, but not a fancy one with jsviewer. #4174 just improved the style of the jsviewer table and added some customization possibility. Then #4197 addedTable.show_in_notebookwhich allows to embed a jsviewer in a notebook.Based on this it should not be too hard to allow embedding a jsviewer table in any HTML page, the question is how to handle Javascript and CSS assets ? I mean what would be the API ?
We could return a tuple with the HTML for the table, and the HTML for the assets. But should the assets be external files, or from a CDN ?
astropy-bot commentedon Sep 26, 2017
Hi humans 👋 - this issue was labeled as Close? approximately 1 year, 5 months ago. So..... any news? 🗞️
If you think this issue should not be closed, a maintainer should remove the Close? label - otherwise, I'm just gonna have to close this issue in a month. Your time starts now! Tick tock 🕙
If you believe I commented on this issue incorrectly, please report this here