Skip to main content

A SuperCollider kernel for Jupyter Notebooks

Project description

sckernel

sckernel is a Jupyter Notebook kernel for SuperCollider's sclang. sckernel launches a post window to display output just as the SuperCollider IDE does while the Notebook front end handles input.

Syntax highlighting in the Notebook uses smalltalk as a default.

At this stage sckernel has only been tested on MacOS and is only guaranteed to work on that operating system. sckernel may work on other platforms but has not been tested yet.

Requirements

In order for sckernel to work, the binary sclang must be in your $PATH.

Installation

To install sckernel from PyPI:

pip install sckernel
python -m sckernel.install

By default the kernel will be install in the per-user kernel registry, equivalent to python -m sckernel.install --user.

To install in the root directory or for an environment like Anaconda or venv, run instead python -m sckernel.install --sys-prefix.

Using SuperCollider kernel

When opening Jupyter notebook, select from the New menu SC_Kernel to create a new SuperCollider notebook using sclang.

For the console frontend, you can run it by adding --kernel sckernel.

Converting from Notebooks to SuperCollider files (.scd)

The sckernel package also comes with a convenience script to translate from Jupyter notebooks to .scd files (i.e., SuperCollider files).

python -m sckernel.convertNotebookToScd /path/to/notebook /path/to/destination

Some light formatting is done to make the .scd files readable in a similar way to Jupyter Notebooks.

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

sckernel-0.2.1.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sckernel-0.2.1-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file sckernel-0.2.1.tar.gz.

File metadata

  • Download URL: sckernel-0.2.1.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.6.1 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0

File hashes

Hashes for sckernel-0.2.1.tar.gz
Algorithm Hash digest
SHA256 8c1e0dde137cef5dfceee77ed3852d891bbc710824488b8695a9a3f085caecc5
MD5 147da19c70b208d7e60aa1d43201836c
BLAKE2b-256 fa90fe05081d94b2bf6cadbc5352d401c12714e253de1109e22d7811503c8104

See more details on using hashes here.

File details

Details for the file sckernel-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: sckernel-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.6.1 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0

File hashes

Hashes for sckernel-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 35732d90f7869c2cd45c6914f19b86089c5b97e0969e137e8bf0382476d67421
MD5 56d57425cb3c53beb85181c39438193c
BLAKE2b-256 96b659b4b1c035a84283207b4192ef0c351afc9f219cc79a3c35760a9781c2a5

See more details on using hashes here.

Supported by

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