Skip to content

Commit

Permalink
add ipywidgets to dependencies so that we use a notebook friendly tqd…
Browse files Browse the repository at this point in the history
…m in our notebook
  • Loading branch information
pattonw committed Mar 10, 2025
1 parent 3d8be1d commit d0bde11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docs/source/notebooks/tutorial.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# %% [markdown]
# # How to use Daisy

# # Daisy Tutorial

# %% [markdown]
# ## Needed Libraries for this Tutorial
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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()
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ docs = [
"myst_nb",
"funlib.persistence",
"scipy",
"ipywidgets",
]

# # module specific overrides
Expand Down

0 comments on commit d0bde11

Please sign in to comment.