Skip to main content

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

Project description

Examples with executable code

Introduction

This Sphinx extension provides an interface to examples with executable 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-1.1.0.tar.gz (20.6 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.1.0-py3-none-any.whl (48.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sphinx_code_examples-1.1.0.tar.gz
  • Upload date:
  • Size: 20.6 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-1.1.0.tar.gz
Algorithm Hash digest
SHA256 02a940ef56fb0ceac05c647d264b28af28b855f5dc0441b723cc82bb7f52fcfe
MD5 77358f09b3836a350c8dc2929e7d187c
BLAKE2b-256 440a71df34af8ffd5226efe3552ec56c88b1f4ece6395c35b5cb41e99cebf815

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for sphinx_code_examples-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9671a3509da4d383c39e1f0b6c3441dd824b8c5c063dcef39078bfdd9d186b93
MD5 3b994ab5e22ebd6bbaaaf54e9d150a21
BLAKE2b-256 5f063eca87628b143ea00b88492d984fc8ec43f2ad2cdce57050d5042bd15285

See more details on using hashes here.

Provenance

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