Skip to main content

Python Local .venv Kernel

Github Build Status PyPI Conda Version Conda Recipe MIT License

A Jupyter kernel that delegates to ipykernel in the .venv environment of a project folder.

Derived from poetry-kernel, see the FAQ.

See the demo at the December 2023 Jupyter Community Call:

Jupyter Community Call

Installation

The python-localvenv-kernel package can be installed via pip (pip install python-localvenv-kernel) or as a Conda package (conda install python-localvenv-kernel).

It must be installed into the same environment as the Jupyter server, see Usage below.

Usage

  • Jupyter and the python-localvenv-kernel package should be installed in the same environment
  • The project folder must have a virtual (project) environment instantiated in a subfolder .venv. The name of folder can be overridden by setting the environment variable KERNEL_VENV (see FAQ)
  • The project environment must include the ipykernel package (but not jupyter)
  • Start Jupyter from the project folder
  • Select the "Python (local .venv)" kernel

Jupyter launcher screenshot (kernel selector)

Jupyter launcher screenshot (notebook)

FAQ

See FAQ.md.

Metadata

Release files for python-localvenv-kernel 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-localvenv-kernel 0.1.7
File Size Uploaded
python-localvenv-kernel-0.1.7.tar.gz 6.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-localvenv-kernel 0.1.7
File Interpreter ABI Platform
python_localvenv_kernel-0.1.7-py3-none-any.whl Python 3 none any Details

Total release size: 12.1 kB

Release files / python-localvenv-kernel-0.1.7.tar.gz

Download URL python-localvenv-kernel-0.1.7.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f890d16710ddfc3d935c288d42cc6f26ac2e2a318887c2dd20f2c5c41b0b247e
BLAKE2b-256 checksum
How to use checksums
0cb7b293207a943f6341b5703d1526dd336eaf8cf6d3c6d8ae141db89c919618
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / python_localvenv_kernel-0.1.7-py3-none-any.whl

Download URL python_localvenv_kernel-0.1.7-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
61b5f556a9c5abe5a4160888de4ecd9c11e63aaf3623558fafdd796cc101a614
BLAKE2b-256 checksum
How to use checksums
ba10c48efed10096b396c8bc257ac1b3118690d988aa96910af0ce118ff982ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1.7 This release

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page