Skip to main content

A Sphinx extension that provides an interface to examples with runnable code.

Project description

Examples with runnable code

Introduction

This Sphinx extension provides an interface to examples with runnable code.

This extension includes code adapted from sphinx-exercise.

Installation

To install the Sphinx-Code-Examples, follow these steps:

Step 1: Install the Package

Install the Sphinx-Code-Examples package using pip:

pip install sphinx-code-examples

Step 2: Add to requirements.txt

Make sure that the package is included in your project's requirements.txt to track the dependency:

sphinx-code-examples

Step 3: Enable in _config.yml

In your _config.yml file, add the extension to the list of Sphinx extra extensions:

sphinx: 
    extra_extensions:
        - sphinx_code_examples

Documentation

Further documentation for this extension is available in the TeachBooks manual.

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

sphinx_code_examples-0.0.3.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

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

sphinx_code_examples-0.0.3-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_code_examples-0.0.3.tar.gz.

File metadata

  • Download URL: sphinx_code_examples-0.0.3.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sphinx_code_examples-0.0.3.tar.gz
Algorithm Hash digest
SHA256 99658e5b48a621c174d5add5733acbf23adcd9b5bbd7df6a2fbcee6253a1f08c
MD5 c0af2e8d9b8fd7778fb426b2f18d4c60
BLAKE2b-256 35ff50d28150dd65b0587c2f88fb3e4ffdc68972752baddb99fa3d78b46063cd

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_code_examples-0.0.3.tar.gz:

Publisher: python-publish.yml on TeachBooks/Sphinx-Code-Examples

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sphinx_code_examples-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_code_examples-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fe90b1590cedc07e54addbd2e3613134763c154241e494fa3c6532f4ac2effb8
MD5 bd29dbc7d812b1c919d0816f70693031
BLAKE2b-256 f84cc07807725a0f9bf4a666244d61366acf71d6da4da7677bb5c02b2e99ae3c

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_code_examples-0.0.3-py3-none-any.whl:

Publisher: python-publish.yml on TeachBooks/Sphinx-Code-Examples

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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