Skip to main content

A shell for the Jupyter kernel.

Project description

Xonsh provides a kernel for Jupyter Notebook and Lab so you can execute xonsh commands in a notebook cell without any additional magic.

If you like the idea click ⭐ on the repo and tweet.

Installation

To install use xpip:

xpip install xontrib-jupyter-shell
# or: xpip install -U git+https://github.com/xonsh/xontrib-jupyter

xontrib load jupyter
xonfig jupyter-kernel --help  # Options for installing.
xonfig jupyter-kernel --user  # Install kernel spec in user config directory.

Check the installation:

jupyter kernelspec list
# Available kernels:
#  python3    /opt/homebrew/lib/python3.11/site-packages/ipykernel/resources
#  xonsh      /PATH_TO_ENV_PREFIX/share/jupyter/kernels/xonsh

xontrib load jupyter
xonfig jupyter-kernel
# Installing Jupyter kernel spec:
#  root: None
#  prefix: /PATH_TO_ENV_PREFIX/
#  as user: False

xonfig info
#| jupyter          | True
#| jupyter kernel   | /PATH_TO_ENV_PREFIX/share/jupyter/kernels/xonsh

Usage

Jupyter

Just run Jupyter Notebook or JupyterLab and choose xonsh:

jupyter notebook
jupyter lab

Euporie

Euporie is a terminal based interactive computing environment.

euporie-notebook
# Change the kernel to xonsh

Releasing your package

  1. Bump the version of the package.
  2. The release notes are automatically generated as a draft release after each PR.
  3. Create a GitHub release.
  4. Publish with poetry publish --build or twine.

Credits

This package was created with xontrib cookiecutter template.

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

xontrib_jupyter_shell-0.1.0.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

xontrib_jupyter_shell-0.1.0-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file xontrib_jupyter_shell-0.1.0.tar.gz.

File metadata

  • Download URL: xontrib_jupyter_shell-0.1.0.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.11.2 Darwin/22.3.0

File hashes

Hashes for xontrib_jupyter_shell-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3ab936a13cc7da4a37a0826e231c3008e32b127f16886ea39c859ea141a3db00
MD5 2d106f76e4097999c6c872f5a1df316d
BLAKE2b-256 4d8d0ec213f3ce2c35eda60632d385edbd532a1fdfbf64af92cb2eb056fd1cb2

See more details on using hashes here.

File details

Details for the file xontrib_jupyter_shell-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for xontrib_jupyter_shell-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7eb0c59b4ee9b0d4b81b7fe61443d8c9d5f52b0d562e0c3bee3a8e855398dc42
MD5 94621210779afc1d13d104b5c5ce5dff
BLAKE2b-256 ad0badbc52852a492e6a5660595c5d1c47ad827185948009282a5a90afd9969f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page