GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - davidbrochart/akernel: Asynchronous Python Jupyter kernel

BranchesTags
Open more actions menu

Latest commit

 

History

141 Commits
141 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
plugins/akernel_task
plugins/akernel_task
 
 
share/jupyter/kernels/akernel
share/jupyter/kernels/akernel
 
 
src/akernel
src/akernel
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.pre-commit-config.yaml
.pre-commit-config.yaml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
pyproject.toml
pyproject.toml
 
 

Repository files navigation

Build Status

akernel

An asynchronous Python Jupyter kernel built on AnyIO:

  • runs in a separate process or in-process.
  • supports top-level await.

Install

For a standalone, out-of-process kernel, install the subprocess extra:

pip install "akernel[subprocess]"

This will give you a Python 3 (akernel) in JupyterLab.

akernel can also run in-process with Jupyverse. Install it with:

pip install "fps-akernel-task"

This will give you both Python 3 (akernel-task) and Python 3 (akernel-thread) kernels in JupyterLab.

Kernelspec Execution in Jupyverse Interrupt mode
akernel Separate process Signal
akernel-task In-process, on the server event loop Message
akernel-thread In-process, in a worker thread Message

To refresh the kernelspecs in an existing installation, run:

akernel install --mode process
akernel install --mode task
akernel install --mode thread

The default mode is process.

In-process kernels

akernel-task runs in Jupyverse's process, so running blocking user code in the kernel will also block Jupyverse.

akernel-thread is an in-process kernel that runs user code in a separate thread, which won't block Jupyverse.

Limitations

  • Cell output redirection currently uses the kernel's print function rather than capturing all writes to stdout and stderr.
  • In-process kernels cannot be interrupted while running blocking code.

About

Asynchronous Python Jupyter kernel

Topics

asynciojupyterpython

Resources

Readme
MIT license
Activity

Stars

91 stars

Watchers

2 watching

Forks

5 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.