Fish Kernel for Jupyter
fish-kernel is a Jupyter kernel implementation for the fish shell.
Requirements
- Python
>=3.10 fishcommand available onPATH- Jupyter frontend (
jupyterlabor notebook) - Supported OS: Linux, macOS, and Windows (WSL)
- Native Windows is not supported (fish shell dependency)
Install
To register a Jupyter kernel, run a concrete install command such as:
fish-kernel add --user
If you want to install into the current Python environment instead, use:
fish-kernel add --sys-prefix
fish-kernel install is an alias of fish-kernel add, so either name works.
PyPI
pip install fish-kernel
conda-forge
Install from the conda-forge channel with conda, mamba, or pixi:
conda install -c conda-forge fish-kernel
mamba install -c conda-forge fish-kernel
pixi add fish-kernel
Register kernel
After installation, register the kernelspec.
fish-kernel add requires one of --user, --sys-prefix, or --prefix.
fish-kernel install is an alias of fish-kernel add.
Install for your user account:
fish-kernel add --user
Or install into the current Python environment:
fish-kernel add --sys-prefix
After installation, verify the kernel is registered:
jupyter kernelspec list
You should see a fish kernel entry.
Remove kernel
To unregister the kernelspec, run:
fish-kernel remove
fish-kernel uninstall is an alias of fish-kernel remove.
Unlike add, a target option is optional. With no options, remove deletes
whichever installed copy it finds first. If you installed the kernel into
more than one scope (for example both --user and --sys-prefix), pass the
matching option to target a specific one:
fish-kernel remove --user
fish-kernel remove --sys-prefix
fish-kernel remove --prefix /path/to/prefix
Development
git clone https://github.com/eunos-1128/fish-kernel.git
cd fish-kernel
uv sync --dev
uv run pytest
uv run fish-kernel install --sys-prefix
uv run jupyter kernelspec list
Documentation
Build docs locally with Sphinx + Furo:
uv sync --dev
uv run sphinx-build -b html docs docs/_build/html
Usage examples
Simple calculation:
set a 7
set b 13
math $a + $b
Acknowledgements
This project was developed with inspiration from:
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fish_kernel-1.1.0.tar.gz.
File metadata
- Download URL: fish_kernel-1.1.0.tar.gz
- Upload date:
- Size: 44.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4bf9aa425cb679833a5648eba0539bf73b44fe82798f66d7f776ff8dd3b59051
|
|
| MD5 |
9aa009aeb865e348f9132b60acb87e9a
|
|
| BLAKE2b-256 |
956e37edd12f40c94cc80a367de0361b4681518ddc6c5be598a8045065d696b0
|
File details
Details for the file fish_kernel-1.1.0-py3-none-any.whl.
File metadata
- Download URL: fish_kernel-1.1.0-py3-none-any.whl
- Upload date:
- Size: 42.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c37fc75988502966e022ec6bfc983bd755c0c71fe9ae0ab940affd30cfab607
|
|
| MD5 |
1714735274dfd12b80c06555b7094771
|
|
| BLAKE2b-256 |
7ec49f4991c66f6c46fd5e7b631cccace0ed3783547ba06fd97684026c4ceec2
|