Skip to main content

The Neptyne kernel

Project description

The Neptyne Kernel

This package contains everything shipped in a Neptyne kernel container. Running outside of a Neptyne context isnt fully supported yet, but this may prove useful for some advanced use cases.

Installing

Neptyne kernels use Python 3.11, so this is the only version currently supported.

python3.11 -m venv venv
. venv/bin/activate
pip install -r neptyne_kernel/requirements.txt # or pip install uv && uv pip install -r neptyne_kernel/requirements.txt

Usage

In Neptyne containers, you'd typically import the API using

import neptyne as nt

Outside of this context, you'll need to do something like

import neptyne_kernel.neptyne_api as nt

Local Kernels + Google Sheets

You can configure the Neptyne kernel to run in a Jupyter notebook, and connect it to a Google sheet. To do so, first install the Neptyne kernel spec:

neptyne_kernel_spec=$(python -c 'import neptyne_kernel, pathlib; print(pathlib.Path(neptyne_kernel.__file__).parent / "kernel_spec" / "neptyne")')
jupyter kernelspec install $neptyne_kernel_spec

Then, in a Jupyter notebook, select "Neptyne" as your kernel type. After obtaining an API key from a Google Sheet using the Neptyne extension, you can connect your notebook to your sheet using:

import neptyne as nt

nt.connect_kernel("<api key>")

in your notebook.

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

neptyne_kernel-0.1.8a2.tar.gz (296.5 kB view hashes)

Uploaded Source

Built Distribution

neptyne_kernel-0.1.8a2-py3-none-any.whl (341.6 kB view hashes)

Uploaded Python 3

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