Skip to content

Add support for making embeddable sortable HTML table #4058

Open

Description

@jeanconn

It would be great to extend #2875 to allow one to create a table that could be easily embedded/included in another page.

Activity

  1. embray commented on Aug 7, 2015

    @embray
    Member

    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.

  2. taldcroft commented on Aug 7, 2015

    @taldcroft
    Member

    👍

  3. jeanconn commented on Aug 7, 2015

    @jeanconn
    ContributorAuthor

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

  4. taldcroft commented on Aug 7, 2015

    @taldcroft
    Member

    You can always use StringIO. Granted that is a little annoying.

  5. algerdnazgul commented on Apr 19, 2016

    @algerdnazgul
    Contributor

    Close.

  6. pllim commented on Apr 19, 2016

    @pllim
    Member

    OK

  7. taldcroft commented on Apr 19, 2016

    @taldcroft
    Member

    Is this actually closed? Is there now a way to write a sortable HTML table without head and body tags?

  8. pllim commented on Apr 19, 2016

    @pllim
    Member

    Um, not sure. Just responding to @algerdnazgul 's request. I guess I'll re-open and add the "close?" tag instead.

  9. reopened this on Apr 19, 2016
  10. added
    Close?Tell stale bot that this issue/PR is stale
    on Apr 19, 2016
  11. jeanconn commented on Apr 20, 2016

    @jeanconn
    ContributorAuthor

    If #4174 does include a way to write out an embeddable/sortable table, it isn't immediately clear from doc changes in the PR.

  12. saimn commented on Apr 20, 2016

    @saimn
    Contributor

    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 ?

  13. deleted a comment from astrobot on Sep 20, 2017
  14. astropy-bot commented on Sep 26, 2017

    @astropy-bot

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions