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
Ie. have no backend, but allow export of a static html file that is interactive.
Even better if you don't need to embed the data as json or something within the document but instead can sidecar it as a parquet file or something (this might require duckdb wasm or something).
The text was updated successfully, but these errors were encountered:
Hey, thanks for raising this issue -- you should be able to export the table into a static html file. For example, the reactable-py documentation is a static site, generated with quarto.
You should be able to run quarto render example.qmd on a file like this...
example.qmd
---
title: example
jupyter: python3
---
```{python}
from reactable import Reactable, embed_css
from reactable.data import cars_93
embed_css()
Reactable(cars_93)
```
Here's what the resulting html file looks like for me. I think some resources are still currently pulled from a CDN, so it's not totally self-contained, but no webserver is needed.
This is pseudocode what I'm currently using in my .qmd file:
```{python}
#| echo: false
#| output: asis
from reactable import embed_css
from my_package import get_reactable
embed_css()
get_reactable()
```
I found output: asis helps with an issue where the file size is about 4x too large because the table gets inserted multiple times.
I'm curious if there's a way to get the HTML Reactable would like to insert as a string for more control over the insertion or for use outside or quarto?
Ie. have no backend, but allow export of a static html file that is interactive.
Even better if you don't need to embed the data as json or something within the document but instead can sidecar it as a parquet file or something (this might require duckdb wasm or something).
The text was updated successfully, but these errors were encountered: