Skip to main content

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

Project description

Examples with executable code and visuals

Introduction

This Sphinx extension provides an interface to examples with executable code and visuals.

This extension includes code adapted from sphinx-exercise.

Installation

To install the Sphinx-Code-Examples extension, 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-1.2.2.tar.gz (30.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-1.2.2-py3-none-any.whl (72.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sphinx_code_examples-1.2.2.tar.gz
Algorithm Hash digest
SHA256 2af001332d7bdbfaf59211fb8000962815688240e1ffe9d0808dc01d3c711ad7
MD5 b4526739834c3c667e8992efba9ebc2e
BLAKE2b-256 7ea88378421ca5c7d706337a45d9971aeb71ccb3e9ec571cb224f07541f61b0c

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_code_examples-1.2.2.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-1.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_code_examples-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4712d04bc5823956aa33405cc7b05ac1c942d6f69ec51cd82a17a8e0f5960530
MD5 e7dd51a300f7eea27a52b23ba7855676
BLAKE2b-256 ab6b01dc4fa07973ff65db6f8053deaccb4a5668ad0c582ca8c6acb79cd90d51

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_code_examples-1.2.2-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