ipython_blocking
ipython_blocking copied to clipboard
A Python library that offers a context manager to turn on cell execution capture/blocking in Jupyter notebooks/IPykernel. Useful when you need a "blocking widget"
Using Jupyter's *Run all* can lead to unexpected execution order if one of the cells makes use of `ipython_blocking`. See the following minimal example: [](https://mybinder.org/v2/gh/dokempf/ipython-blocking-mwe/main?filepath=runall.ipynb)
I realized that in JupyterLab, the input prompt does not switch from `[*]` to `[n]` after cell execution does not block anymore. I set up this minimal example to demonstrate...
When I: 1. Run my example from https://github.com/bryceschober/ipyfilechooser_blocking_example in Jupyter or VS Code or even the binder.org link on that example repository. 2. Choose to run all cells instead of...
Hi, Functionality-wise, I've been looking for this exact functionality for a while, so thanks for making this so easy with one line of code!! One thing I've noticed though is...
Error reproducible at cell 1 try: import ipython_blocking except ImportError: !pip install ipython_blocking import ipython_blocking cell 2 from ipywidgets import Dropdown, Button, Output from IPython.display import display, clear_output outs =...
Due to a newer version of nbclient, 'just run' doen't exist anymore.
- fix https://github.com/kafonek/ipython_blocking/issues/15, use the new `run_sync` decorator instead of old `nbclient.utils.just_run` - Move code into `src/` and use poetry to manage deps instead of setup.py New (?) or unresolved...