qgrid icon indicating copy to clipboard operation
qgrid copied to clipboard

using qgrid without opening notebook and create interactive table in offline html

Open gopi1616 opened this issue 4 years ago • 1 comments

Hi, this is not an issue but a question if there is already an answer or a suggestion/feedback.

I am trying to see if there is an option to create these interactive tables from a dataframe without having to open a notebook in an html file. This way it is easy to create them within the script and also easily shareable.

import qgrid from ipywidgets.embed import embed_minimal_html

view = qgrid.show_grid(annotated_df) embed_minimal_html('qgrid.html', views=[view], title='QGrid')

but the resulting HTML is blank.

pivottablejs work jus as I mentioned above but qgrid is much simpler and best. Currently, I do not see anything else that does this. This feature would be very helpful for many people.

gopi1616 avatar Nov 11 '20 02:11 gopi1616

This is related: https://github.com/quantopian/qgrid/issues/53

qgrid needs a Python kernel for filtering, sorting, etc. It doesn't work in a static HTML file. You can use Binder and Voila to share interactive versions of a notebook.

JulianWgs avatar Nov 11 '20 06:11 JulianWgs