Call notebooks as functions
Project description
Subnotebook
Run a notebook as you would call a Python function.
Two modes are currently supported:
- An in-process mode, where the subnotebook is executed in the same kernel your interpreter is running in (but in a different name space). This allows to pass parameters and get results back, including widgets.
from subnotebook import run_nb
ab, ba, slider, output = run_nb('sub_notebook.ipynb', a='c', b='d')
- An out-of-process mode, where the subnotebook is executed and served using Voila, and included in the main notebook as an IFrame. This mode only allows to display the outputs of the subnotebook, which is useful for offloading the main notebook but also to offer a UI to resources you would not have access to, such as big data or protected data.
from subnotebook import display_nb
display_nb('widget_notebook.ipynb')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
subnotebook-0.0.1.tar.gz
(3.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file subnotebook-0.0.1.tar.gz.
File metadata
- Download URL: subnotebook-0.0.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
320a9e9c29657898d6a45e8c00557234d43a54ada30c99c04634a464d96638a4
|
|
| MD5 |
9c46f810780eb34061a9b89bcb116189
|
|
| BLAKE2b-256 |
b4cc1eda588ce9efffada806ef992760b8464b1e418fd001245d6dbdb1b04f5d
|
File details
Details for the file subnotebook-0.0.1-py3-none-any.whl.
File metadata
- Download URL: subnotebook-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d2221f051d50ce87fbee4c991533d75d397524106af251ff9f471308cf54026
|
|
| MD5 |
cc8a681c33dafab8f4ce3bf76a979825
|
|
| BLAKE2b-256 |
5f124bc1b1daa74fe9ba2312484e3bd1538b4032c11f8fa0ef19c8d806c15302
|