Skip to content

Commit b9e6bb1

Browse files
committed
Merge remote-tracking branch 'origin/dev' into dev-3.x
2 parents 3c82bf5 + affe77a commit b9e6bb1

File tree

14 files changed

+4053
-9
lines changed

14 files changed

+4053
-9
lines changed

demos/LIT_Integration_Demo.ipynb

Lines changed: 725 additions & 0 deletions
Large diffs are not rendered by default.

docs/source/content/contributing.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ uv sync
2121
source .venv/bin/activate
2222
```
2323

24+
Demo/web UI dependencies are isolated into an optional `demo` group.
25+
- Core contributor setup (recommended default): `poetry install --with dev,docs,jupyter`
26+
- Demo setup (for Gradio notebooks/apps): `poetry install --with dev,docs,jupyter,demo`
27+
28+
Notes:
29+
- The `demo` group is intended for Python 3.10+ environments.
30+
- Python 3.8/3.9 workflows should use the core contributor setup without `demo`.
31+
2432
## Testing
2533

2634
If adding a feature, please add unit tests for it. If you need a model, please use one of the ones

pyproject.toml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@
8080
{version=">=1.24", python=">=3.9,<3.12"},
8181
{version=">=1.26", python=">=3.12,<4.0"},
8282
]
83-
pandas=">=1.1.5"
83+
pandas=[
84+
{version=">=1.1.5,<2.1", python=">=3.8,<3.12"},
85+
{version=">=2.1", python=">=3.12,<4.0"},
86+
]
8487
protobuf=">=3.20.0"
8588
python=">=3.10,<4.0"
8689
rich=">=12.6.0"
@@ -92,13 +95,16 @@
9295
typeguard="^4.2"
9396
typing-extensions="*"
9497
wandb=">=0.13.5"
98+
# Optional dependencies
99+
lit-nlp = {version = "^1.3", optional = true, python = ">=3.9"}
100+
101+
[tool.poetry.extras]
102+
lit = ["lit-nlp"]
95103

96104
[tool.poetry.group]
97105
[tool.poetry.group.dev.dependencies]
98106
black="^23.3.0"
99107
circuitsvis=">=1.38.1"
100-
gradio=">=4.0.0"
101-
ipython=">=8.0.0"
102108
isort="5.8.0"
103109
jupyter=">=1.0.0"
104110
mypy=">=1.10.0"
@@ -111,6 +117,13 @@
111117
pytest-rerunfailures=">=12.0"
112118
pytest-xdist="^3.8.0" # For parallel test execution
113119

120+
[tool.poetry.group.demo]
121+
optional=true
122+
123+
[tool.poetry.group.demo.dependencies]
124+
gradio={version=">=4.0.0", python=">=3.10"}
125+
orjson={version=">=3.11.7,<4.0", python=">=3.10"}
126+
114127
[tool.poetry.group.jupyter.dependencies]
115128
ipywidgets="^8.1.1"
116129
jupyterlab=">=3.5.0"

0 commit comments

Comments
 (0)