Skip to content

Commit 877a4d8

Browse files
committed
Implement a streamlit component for ITables
1 parent f2a27a6 commit 877a4d8

File tree

19 files changed

+18483
-23
lines changed

19 files changed

+18483
-23
lines changed

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@ _build
2121
docs/quarto/*.html
2222
docs/quarto/*_files/
2323

24-
# DataTables bundle
24+
# Node packages
2525
node_modules
26+
27+
# DataTables bundle
2628
dt_bundle.js
2729
dt_bundle.css
30+
31+
# Streamlit package
32+
src/itables/itables_for_streamlit

docs/changelog.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@ ITables ChangeLog
66

77
**Changed**
88
- ITables now uses the `src` layout ([#246](https://github.com/mwouts/itables/issues/246)) - many thanks to [Mahendra Paipuri](https://github.com/mahendrapaipuri) for his help on this topic!
9-
- We have updated `dt_for_itables`'s dependencies to `datatables.net-dt==2.0.7` and `datatables.net-select-dt==2.0.2` ([#273](https://github.com/mwouts/itables/pull/273))
9+
- We have updated `dt_for_itables`' dependencies to `datatables.net-dt==2.0.7` and `datatables.net-select-dt==2.0.2` ([#273](https://github.com/mwouts/itables/pull/273))
1010
- We have updated the pre-commit hooks used in the project ([#268](https://github.com/mwouts/itables/pull/268))
1111

12+
**Added**
13+
- We have added a streamlit component for ITables ([#270](https://github.com/mwouts/itables/pull/270))
14+
1215

1316
2.0.1 (2024-04-30)
1417
------------------

environment.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ channels:
44
- conda-forge
55
dependencies:
66
- nodejs
7-
- python<=3.10
7+
- python
88
- jupyter
99
- jupyterlab>=4
1010
- jupytext
@@ -23,6 +23,7 @@ dependencies:
2323
- twine
2424
- ghp-import
2525
- shiny
26+
- streamlit
2627
- pip:
2728
- world_bank_data
2829
- jupyter_book

packages/dt_for_itables/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "2.0.7",
44
"description": "DataTables bundle for itables",
55
"main": "src/index.js",
6-
"typings":"src/index.d.js",
6+
"typings": "src/index.d.js",
77
"scripts": {
88
"build:js": "esbuild src/index.js --format=esm --bundle --outfile=dt_bundle.js --minify",
99
"install:js": "cp dt_bundle.js dt_bundle.css ../../src/itables/html",
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
![ITables logo](https://raw.githubusercontent.com/mwouts/itables/3f8e8bd75af7ad38a500518fcb4fbbc370ea6c4c/itables/logo/wide.svg)
2+
3+
This is the ITables frontend for [Streamlit](https://streamlit.io/)
4+
5+
It is build automatically when the ITables Python package is build,
6+
and the result of the build is moved to `src/itables/itables_for_streamlit`,
7+
cf. the `build` script.
8+
9+
This package does not need to be published on `npm`.

0 commit comments

Comments
 (0)