Commit 023ff19
Make fastprogress an optional dependency (#853)
* Make fastprogress an optional dependency
fastprogress 1.1.0+ introduced an unconditional top-level IPython import
and a heavy python-fasthtml transitive dependency (starlette, uvicorn,
etc.), breaking imports in environments without IPython installed.
Fixes #812, addresses PR #852:
- Remove fastprogress and ipython from hard dependencies
- Add fastprogress>=1.0.0,<1.1 as optional extra: pip install "blackjax[progress]"
- Lazy-import fastprogress inside _update_bar() so it is only required
when progress_bar=True is actually used
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* ci: install blackjax[progress] in test env
Tests that use progress_bar=True need fastprogress, which is now an
optional dependency. Install it via the [progress] extra.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent ffca7c8 commit 023ff19
3 files changed
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
45 | 51 | | |
46 | 52 | | |
47 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | 34 | | |
37 | 35 | | |
38 | 36 | | |
| |||
42 | 40 | | |
43 | 41 | | |
44 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
0 commit comments