Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

cordada/ext-neptyne-kernel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

The Neptyne Kernel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 99.9%
  • Other 0.1%