Prefect integrations interacting with Jupyter.
Project description
prefect-jupyter
Welcome!
Prefect integrations interacting with Jupyter.
Getting Started
Python setup
Requires an installation of Python 3.7+.
We recommend using a Python virtual environment manager such as pipenv, conda or virtualenv.
These tasks are designed to work with Prefect 2.0. For more information about how to use Prefect, please refer to the Prefect documentation.
Installation
Install prefect-jupyter
with pip
:
pip install prefect-jupyter
Run a parameterized notebook
from prefect import flow
from prefect_jupyter import notebook
@flow
def example_execute_notebook():
body = notebook.execute_notebook(
"test_notebook.ipynb",
parameters={"num": 5}
)
output_path = "executed_notebook.ipynb"
with open(output_path, "w") as f:
f.write(body)
return output_path
example_execute_notebook()
Resources
If you encounter any bugs while using prefect-jupyter
, feel free to open an issue in the prefect-jupyter repository.
If you have any questions or issues while using prefect-jupyter
, you can find help in either the Prefect Discourse forum or the Prefect Slack community.
Development
If you'd like to install a version of prefect-jupyter
for development, clone the repository and perform an editable install with pip
:
git clone https://github.com/PrefectHQ/prefect-jupyter.git
cd prefect-jupyter/
pip install -e ".[dev]"
# Install linting pre-commit hooks
pre-commit install
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for prefect_jupyter-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8ac2df728ac1fb850334fa788f142d459f52a9b8623b0f705ad89f500937933 |
|
MD5 | 0c9354a4320d5116cb620fd9cdafd7ea |
|
BLAKE2b-256 | b750cf64cc3e75e448418fd513c9d653ef02cda0c0486ff34742ac3193e97777 |