Skip to main content

Script of Scripts (SoS) kernel and backend for Jupyter - backend dependency for jupyterlab-sos

Project description

Anaconda-Server Badge PyPI version DOI Build Status Build status

⚠️ Deprecation Notice

The classic Jupyter notebook interface support for SoS Notebook has been deprecated.

This package no longer provides JavaScript extensions or frontend functionality for the classic Jupyter notebook interface. All frontend features have been migrated to JupyterLab and are available through jupyterlab-sos.

This package is still required as a backend dependency for jupyterlab-sos and contains the SoS kernel, magics, notebook converters (HTML, PDF, Markdown), and other core functionality. However, for the best SoS experience, please use JupyterLab with the jupyterlab-sos extension.

For more information, see the JupyterLab SoS extension.

SoS Notebook

SoS Notebook is a Jupyter kernel that allows the use of multiple kernels in one Jupyter notebook. Using language modules that understand datatypes of underlying languages (modules sos-bash, sos-r, sos-matlab, etc), SoS Notebook allows data exchange among live kernels of supported languages.

SoS Notebook also extends the Jupyter frontend and adds a console panel for the execution of scratch commands and display of intermediate results and progress information, and a number of shortcuts and magics to facilitate interactive data analysis. All these features have been ported to JupyterLab, either in the sos extension jupyterlab-sos or contributed to JupyterLab as core features.

SoS Notebook also serves as the IDE for the SoS Workflow that allows the development and execution of workflows from Jupyter notebooks. This not only allows easy translation of scripts developed for interactive data analysis to workflows running in containers and remote systems, but also allows the creation of scientific workflows in a format with narratives, sample input and output.

SoS Notebook is part of the SoS suite of tools. Please refer to the SoS Homepage for details about SoS, and this page for documentations and examples on SoS Notebook. If a language that you are using is not yet supported by SoS, please submit a ticket, or consider adding a language module by yourself following the guideline here.

Installation

For Users

Install from PyPI:

pip install sos-notebook

Install from conda-forge:

conda install -c conda-forge sos-notebook

For Developers

SoS Notebook uses modern Python packaging and development tools. See CONTRIBUTING.md for detailed development setup instructions.

Quick development setup:

# Prerequisites: Python 3.8+ and uv (https://github.com/astral-sh/uv)
git clone https://github.com/vatlab/sos-notebook.git
cd sos-notebook
invoke dev-setup    # Sets up virtual environment and dependencies
source .venv/bin/activate

Development

This project uses modern Python development tools:

  • uv for fast dependency management and virtual environments
  • ruff for linting and code formatting
  • invoke for task automation
  • pytest for testing
  • Modern build system with pyproject.toml (PEP 517/518)

Quick Commands

# Set up development environment
invoke dev-setup

# Run quality checks
invoke check          # Run all checks (format, lint, test)
invoke format         # Format code with ruff
invoke lint --fix     # Lint and auto-fix issues
invoke test           # Run tests

# Build and release
invoke build          # Build distributions
invoke release-check  # Comprehensive pre-release checks

For detailed contribution guidelines, see CONTRIBUTING.md.

Testing

The project includes comprehensive tests that run in Docker containers to simulate real Jupyter environments:

invoke test           # Quick tests (skip Docker/selenium)
invoke test-docker    # Full test suite in Docker (as in CI)

License

This project is licensed under the 3-clause BSD License.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sos_notebook-0.24.6.tar.gz (193.1 kB view details)

Uploaded Source

Built Distribution

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

sos_notebook-0.24.6-py3-none-any.whl (211.9 kB view details)

Uploaded Python 3

File details

Details for the file sos_notebook-0.24.6.tar.gz.

File metadata

  • Download URL: sos_notebook-0.24.6.tar.gz
  • Upload date:
  • Size: 193.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for sos_notebook-0.24.6.tar.gz
Algorithm Hash digest
SHA256 104aad7e59fb895f6a9c70f9732a0b7f78d0e221fc52b1f5cd884a88f031590a
MD5 e18726c00a65f27c282af82e6083f1d8
BLAKE2b-256 88d15a42bd1127eb46a91bfd6650817e1677d58b3bc0c7a865d6e3ff817cf98d

See more details on using hashes here.

File details

Details for the file sos_notebook-0.24.6-py3-none-any.whl.

File metadata

  • Download URL: sos_notebook-0.24.6-py3-none-any.whl
  • Upload date:
  • Size: 211.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for sos_notebook-0.24.6-py3-none-any.whl
Algorithm Hash digest
SHA256 2d76bd67983d4970f54fd9082c5a003991181140f59a7475744680355b86536c
MD5 818be1dc902bd01e82c6bbf5aaf62742
BLAKE2b-256 b507065a9a1cc9a9f60abd95f087fb2db2023c74622360669189aefa3cc9cfbd

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