Hey! I’ve been using `nbclient` to programmatically execute cells in Jupyter notebooks. It’s part of the Jupyter ecosystem and works like a charm.
```python
from nbclient import NotebookClient
if some_value is None:
client = NotebookClient(nb)
client.execute()
```
This lets you control exactly which cells run based on conditions. Check out the [nbclient docs](https://nbclient.readthedocs.io/) for more info!
```python
from nbclient import NotebookClient
if some_value is None:
client = NotebookClient(nb)
client.execute()
```
This lets you control exactly which cells run based on conditions. Check out the [nbclient docs](https://nbclient.readthedocs.io/) for more info!
