From d0bde1142a684cbbc8382921eb2a4faf81e4da23 Mon Sep 17 00:00:00 2001 From: William Patton Date: Mon, 10 Mar 2025 12:50:20 -0700 Subject: [PATCH] add ipywidgets to dependencies so that we use a notebook friendly tqdm in our notebook --- docs/source/notebooks/tutorial.py | 7 +++---- pyproject.toml | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/source/notebooks/tutorial.py b/docs/source/notebooks/tutorial.py index 9a76dad4..3da18f04 100644 --- a/docs/source/notebooks/tutorial.py +++ b/docs/source/notebooks/tutorial.py @@ -1,6 +1,5 @@ # %% [markdown] -# # How to use Daisy - +# # Daisy Tutorial # %% [markdown] # ## Needed Libraries for this Tutorial @@ -104,7 +103,7 @@ def random_fail(block: daisy.Block): - if random.random() < 0.8: + if random.random() < 0.2: block.status = daisy.BlockStatus.FAILED return block @@ -136,7 +135,7 @@ def random_fail(block: daisy.Block): with tempfile.TemporaryDirectory() as tmpdir: def random_fail(block: daisy.Block): - if random.random() < 0.8: + if random.random() < 0.2: block.status = daisy.BlockStatus.FAILED else: Path(tmpdir, f"{block.block_id[1]}").touch() diff --git a/pyproject.toml b/pyproject.toml index f60e8c68..b1cb6f0c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,6 +50,7 @@ docs = [ "myst_nb", "funlib.persistence", "scipy", + "ipywidgets", ] # # module specific overrides