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 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.
Disclaimer: This project is not affiliated with Pixi, and not an official Pixi plugin.
Quick Start
- Install this package in your JupyterLab environment and restart it. You can install it using
pip
,pixi
or any other conda or pip-based package manager. - 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 Distribution
Built Distribution
Hashes for pixi_kernel-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b27988efc4bbeff75a108989bcfc2d0f6ebc42dc7474eca5a0af22f92bb7b1d |
|
MD5 | 7f3e8a479b1373f63459f7da796504e3 |
|
BLAKE2b-256 | 38849487717ff7cd52e4d7bb184ba2bed022c2002103f501ac6ba7b91147aea0 |