Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

teachbooks_sphinx_grasple-1.0.0.tar.gz (31.6 kB view details)

Uploaded Source

Built Distribution

teachbooks_sphinx_grasple-1.0.0-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file teachbooks_sphinx_grasple-1.0.0.tar.gz.

File metadata

File hashes

Hashes for teachbooks_sphinx_grasple-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e22624f0784f5391d9c1ac75cb941730df692cca1ae14bab6d007dcdab5f54db
MD5 4589092f7277e7b06d73e2d54d8cd1d5
BLAKE2b-256 edc35f1edf6d6f0d7c3f7a29f222718bb79cf34b886f2045478561c144ca5504

See more details on using hashes here.

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

Attestations:

File details

Details for the file teachbooks_sphinx_grasple-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for teachbooks_sphinx_grasple-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f8da566cea89fd250c9be77a7a0a419236c8f5ec21ec2d1597e57b93c3c97577
MD5 7cc3b1e5a0822c03e838e36fa34ce6b0
BLAKE2b-256 f55344a4636cabb167954ceddd24d7484b55ab8080a785cff3806593102a8be9

See more details on using hashes here.

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

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page