A Sphinx extension for inserting Grasple exercises.
Project description
sphinx-grasple
A Grasple exercise extension for Sphinx.
This package contains a Sphinx extension for inserting Grasple exercises into a Jupyter book as an iframe.
This package is a continuation of the package https://github.com/dbalague/sphinx-grasple/.
Installation
To install the teachbooks-sphinx-grasple extension, follow these steps:
Step 1: Install the Package
Install the teachbooks-sphinx-grasple
package using pip
:
pip install teachbooks-sphinx-grasple
Step 2: Add to requirements.txt
Make sure that the package is included in your project's requirements.txt
to track the dependency:
teachbooks-sphinx-grasple
Step 3: Enable in _config.yml
In your _config.yml
file, add the extension to the list of Sphinx extra extensions (important: underscore, not dash this time):
sphinx:
extra_extensions:
- teachbooks_sphinx_grasple
Usage
To use, include the following in your Jupyter book
::::{grasple}
:iframeclass: dark-light
:url: https://embed.grasple.com/exercises/f6c1bb4b-e63e-492e-910a-5a8c433de281?id=75093
:label: grasple_exercise_1_3_4
:dropdown:
:description: Cross product in $\R^4$?
::::
Important Note
The tests provided are still the original ones from sphinx-exercise and have not (yet) been adapted.
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
File details
Details for the file teachbooks_sphinx_grasple-1.0.1.tar.gz
.
File metadata
- Download URL: teachbooks_sphinx_grasple-1.0.1.tar.gz
- Upload date:
- Size: 31.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f1b8ec6ebe43ba9652f00c05b19690d7005b62e84ce303fc7709e1dfc6767f4 |
|
MD5 | ac6ddec79411471fc3b0b3e97137aae2 |
|
BLAKE2b-256 | 9db55051582dc6a109b0e99d5de59c142dc1ee3d948964b2eaa31189d4e22431 |
Provenance
The following attestation bundles were made for teachbooks_sphinx_grasple-1.0.1.tar.gz
:
Publisher:
python-publish.yml
on TeachBooks/Sphinx-Grasple-public
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
teachbooks_sphinx_grasple-1.0.1.tar.gz
- Subject digest:
6f1b8ec6ebe43ba9652f00c05b19690d7005b62e84ce303fc7709e1dfc6767f4
- Sigstore transparency entry: 149721701
- Sigstore integration time:
- Predicate type:
File details
Details for the file teachbooks_sphinx_grasple-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: teachbooks_sphinx_grasple-1.0.1-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a24a1c6bd5f6bd5dbb8845820773217e00471ddb122388a00f35c37fb83fc89 |
|
MD5 | fbfa26ddaf9414f85f9fc72e0e0e3477 |
|
BLAKE2b-256 | efbde85b98710642d7ef72a4f571300d5942c95c01587c69ea50b9f18f0f8a12 |
Provenance
The following attestation bundles were made for teachbooks_sphinx_grasple-1.0.1-py3-none-any.whl
:
Publisher:
python-publish.yml
on TeachBooks/Sphinx-Grasple-public
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
teachbooks_sphinx_grasple-1.0.1-py3-none-any.whl
- Subject digest:
6a24a1c6bd5f6bd5dbb8845820773217e00471ddb122388a00f35c37fb83fc89
- Sigstore transparency entry: 149721702
- Sigstore integration time:
- Predicate type: