Jupyter notebooks runner
Project description
nbr
NBR lets you run local and remote jupyter-notebooks.
Installation
In a terminal, run:
pip install nbr
Usage
Launch a Jupyter server:
jupyter server
Execution a local notebook, using a remote server:
import asyncio
from nbr import NotebookRunner, Notebook
async def main() -> None:
notebook = Notebook.read_file(name="Untitled.ipynb")
async with NotebookRunner(
notebook=notebook,
host="127.0.0.1",
port=8888,
token="481145d4be3c79620c23e2bb4e5b818a3669c4e88ea75c35",
) as runner:
result = await runner.execute_all_cells()
print(result.status)
if __name__ == "__main__":
asyncio.run(main())
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
nbr-0.0.2b0.tar.gz
(7.3 kB
view hashes)
Built Distribution
nbr-0.0.2b0-py3-none-any.whl
(9.3 kB
view hashes)