pytest-jupyter
A set of pytest plugins for Jupyter libraries and extensions.
Basic Usage
First, install pytest-jupyter from PyPI using pip:
pip install pytest-jupyter
This installs the basic pytest-jupyter package that includes fixture definitions for the various Jupyter-based pytest plugins.
To use one of these plugins, you'll also need to install their dependencies. This requires a second pip install call. For example, if you'd like to use the jupyter_server plugin, you'll need to call:
pip install "pytest-jupyter[server]"
This should install everything you need for the plugin to work.
To use a plugin, add it to the pytest_plugins list in the conftest.py of your project's root test directory.
pytest_plugins = ["pytest_jupyter.jupyter_server"]
This library includes an echo_kernel, which is useful to speed up testing.
You must have either "pytest-jupyter[server]" or "pytest-jupyter[client]"
installed to use the echo kernel.
The pytest_jupyter.jupyter_clien
|