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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sphinx_code_examples-1.2.3.tar.gz.
File metadata
- Download URL: sphinx_code_examples-1.2.3.tar.gz
- Upload date:
- Size: 31.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4845be7934326cd2ace945c740acce3420c8aebaebb6eb1655c73cfecc159eb7
|
|
| MD5 |
6aaf91a61a06e8f4e41b4012dd1d4288
|
|
| BLAKE2b-256 |
cb64fe4dbc167754e2e8eface54101d732a55498f27cc85bfe824c24493979e5
|
Provenance
The following attestation bundles were made for sphinx_code_examples-1.2.3.tar.gz:
Publisher:
python-publish.yml on TeachBooks/Sphinx-Code-Examples
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_code_examples-1.2.3.tar.gz -
Subject digest:
4845be7934326cd2ace945c740acce3420c8aebaebb6eb1655c73cfecc159eb7 - Sigstore transparency entry: 790449423
- Sigstore integration time:
-
Permalink:
TeachBooks/Sphinx-Code-Examples@6c81a97a14cbf5ecbc1fbd3c57266ab52f53dc23 -
Branch / Tag:
refs/tags/v1.2.3 - Owner: https://github.com/TeachBooks
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@6c81a97a14cbf5ecbc1fbd3c57266ab52f53dc23 -
Trigger Event:
push
-
Statement type:
File details
Details for the file sphinx_code_examples-1.2.3-py3-none-any.whl.
File metadata
- Download URL: sphinx_code_examples-1.2.3-py3-none-any.whl
- Upload date:
- Size: 72.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2f25cd5fecc0e666fcbbd41016a6545bee0a7ae4d19c8c68ad70fac1171c596
|
|
| MD5 |
c7b2f42ad1cde49e4f1f7b54e261caee
|
|
| BLAKE2b-256 |
b09ee9d545c5c699cd6fa35912b487cde2910e4c5fcf7e4f52fced2f31dd8cdc
|
Provenance
The following attestation bundles were made for sphinx_code_examples-1.2.3-py3-none-any.whl:
Publisher:
python-publish.yml on TeachBooks/Sphinx-Code-Examples
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_code_examples-1.2.3-py3-none-any.whl -
Subject digest:
f2f25cd5fecc0e666fcbbd41016a6545bee0a7ae4d19c8c68ad70fac1171c596 - Sigstore transparency entry: 790449427
- Sigstore integration time:
-
Permalink:
TeachBooks/Sphinx-Code-Examples@6c81a97a14cbf5ecbc1fbd3c57266ab52f53dc23 -
Branch / Tag:
refs/tags/v1.2.3 - Owner: https://github.com/TeachBooks
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@6c81a97a14cbf5ecbc1fbd3c57266ab52f53dc23 -
Trigger Event:
push
-
Statement type: