Comments (4)
Hi @iainmwallace , thanks for suggesting this. I think it should be doable to make itables
work in the context of a Shiny app.
Some developments would be required on our end because py-shiny
does not seem to be directly compatible with the display
function of IPython
. At the current stage of development of py-shiny
, the render.table
decorator calls explicitely df.to_html
https://github.com/rstudio/py-shiny/blob/2655fb487412881d7a946f7b8db41f9746a85678/shiny/render/_render.py#L526. This is different to how itables
currently works in notebooks, where we just override pd.DataFrame._repr_html_
, cf.
Line 72 in ec388a7
Before undertaking any such development, let me ask to the py-shiny
developers whether they would consider supporting outputs coming from IPython.display
calls.
from itables.
Fantastic, thanks @mwouts. The examples you posted on the other issue are really useful.
from itables.
I have been able to display a dataframe as an interactive datatable in a Shiny app with just ui.HTML(DT(df))
, where DT
is defined as
from itables.javascript import _datatables_repr_ as DT
See this comment for the full example (I am not sure at the moment if this is a sound approach!)
from itables.
Up-to-date tested examples are available at https://github.com/mwouts/itables/tree/main/tests/sample_python_apps
from itables.
Related Issues (20)
- Download CSV and Excel HOT 2
- Tables in a Streamlit app have a fixed height that does not work well with lengthMenu or search extensions
- Deploy a sample Shiny app that uses ITables HOT 1
- New landing page for conda forge `itables` HOT 4
- Support for the cell range copy to excel HOT 8
- sorry wrong post.. plase delete
- SearchBuilder & Checkboxes HOT 4
- UnicodeDecodeError while set "connected=False" HOT 5
- SearchBuilder Requires DateTime when used with dates. HOT 7
- Support for Polars Struct HOT 2
- Inf loading tables for particular `polars` data frame HOT 10
- Changing the color of buttons in searchBuilder HOT 7
- column_filters does not seem to be working when displaying Pandas Styler object HOT 1
- SearchBuilder picks up   as column name for Pandas styler object but works fine for Pandas dataframe object HOT 2
- Is there a way to make colvis button work without reset_index() HOT 2
- `OverflowError: can't convert negative int to unsigned` HOT 2
- Overflow-x not working properly within an ipywidget.Output widget HOT 5
- [question] Downsampling config options HOT 3
- Missing `conneted=False` and `dt_bundle` support in `to_html_datatable` HOT 4
- issue with conversion of notebook to pdf HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from itables.