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/.

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


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.1.tar.gz (31.7 kB view details)

Uploaded Source

Built Distribution

teachbooks_sphinx_grasple-1.0.1-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for teachbooks_sphinx_grasple-1.0.1.tar.gz
Algorithm Hash digest
SHA256 6f1b8ec6ebe43ba9652f00c05b19690d7005b62e84ce303fc7709e1dfc6767f4
MD5 ac6ddec79411471fc3b0b3e97137aae2
BLAKE2b-256 9db55051582dc6a109b0e99d5de59c142dc1ee3d948964b2eaa31189d4e22431

See more details on using hashes here.

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

Attestations:

File details

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

File metadata

File hashes

Hashes for teachbooks_sphinx_grasple-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6a24a1c6bd5f6bd5dbb8845820773217e00471ddb122388a00f35c37fb83fc89
MD5 fbfa26ddaf9414f85f9fc72e0e0e3477
BLAKE2b-256 efbde85b98710642d7ef72a4f571300d5942c95c01587c69ea50b9f18f0f8a12

See more details on using hashes here.

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

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