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/.
Get started
To get started with sphinx-grasple
, first add it as a submodule to .gitmodules
...
[submodule "sphinx-grasple"]
path = sphinx-grasple
url = https://github.com/TeachBooks/Sphinx-Grasple-public.git
...
then, add sphinx_grasple
to your sphinx extensions
in the conf.py
...
extensions = ["sphinx_grasple"]
...
and do not forget to install the submodule:
pip install 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.0.tar.gz
.
File metadata
- Download URL: teachbooks_sphinx_grasple-1.0.0.tar.gz
- Upload date:
- Size: 31.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e22624f0784f5391d9c1ac75cb941730df692cca1ae14bab6d007dcdab5f54db |
|
MD5 | 4589092f7277e7b06d73e2d54d8cd1d5 |
|
BLAKE2b-256 | edc35f1edf6d6f0d7c3f7a29f222718bb79cf34b886f2045478561c144ca5504 |
Provenance
The following attestation bundles were made for teachbooks_sphinx_grasple-1.0.0.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.0.tar.gz
- Subject digest:
e22624f0784f5391d9c1ac75cb941730df692cca1ae14bab6d007dcdab5f54db
- Sigstore transparency entry: 149328081
- Sigstore integration time:
- Predicate type:
File details
Details for the file teachbooks_sphinx_grasple-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: teachbooks_sphinx_grasple-1.0.0-py3-none-any.whl
- Upload date:
- Size: 13.6 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 | f8da566cea89fd250c9be77a7a0a419236c8f5ec21ec2d1597e57b93c3c97577 |
|
MD5 | 7cc3b1e5a0822c03e838e36fa34ce6b0 |
|
BLAKE2b-256 | f55344a4636cabb167954ceddd24d7484b55ab8080a785cff3806593102a8be9 |
Provenance
The following attestation bundles were made for teachbooks_sphinx_grasple-1.0.0-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.0-py3-none-any.whl
- Subject digest:
f8da566cea89fd250c9be77a7a0a419236c8f5ec21ec2d1597e57b93c3c97577
- Sigstore transparency entry: 149328083
- Sigstore integration time:
- Predicate type: