Python Jupyter kernel using Pixi for reproducible notebooks
Project description
Pixi Kernel
Use per-directory Pixi environments to run Jupyter kernels. The idea behind this project is to allow you to capture the exact state of your environment while allowing you to make use of the rich PyPI and Conda ecosystems.
Pixi Kernel supports Python 3.8+ and Pixi 0.18+ using pyproject.toml
and pixi.toml
configurations.
Quick Start
- Install this package with
pip install pixi-kernel
in your JupyterLab environment and restart it. - Create a new directory and notebook and select the Pixi kernel for the notebook.
- Initialize a Pixi project with
pixi init
andpixi add ipykernel
. - Restart the kernel and you are good to go.
See the Pixi docs for more information on how to use Pixi.
User Experience
If the Pixi Kernel is used in a project where pixi
is not installed or the project does not have
ipykernel
installed in the environment, starting the kernel fails.
A fallback kernel is then started showing a helpful message when you try to run the notebook. This is a regular IPython kernel which allows you to run shell commands and hopefully fix the configuration of the project.
Limitations
Pixi Kernel does not support using Pixi environments other than the default one. If you have an idea how to support this, please open an issue or check the contributing guide to open a pull request.
Related
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for pixi_kernel-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf7ce3c513ffa4679c6b17396a6f3e37a3c2d1d7691cb74b95059d555a21853f |
|
MD5 | c970c18b2246058867781c3505aae635 |
|
BLAKE2b-256 | 9c4a1e75dc01e4aae1b5ae1e0f5abb5082c5a7cb0c6d01e976cb54c62f06f56b |