A custom Sphinx extension to easily embed PRIME applets in a Sphinx book
Project description
Sphinx Extension: PRIME applets
Introduction
This extension provides an interface to include PRIME applets with relative ease.
Applet directive
```{applet}
:url: lines_and_planes/normal_equation_plane_origin
:fig: Images/image_shown_in_print_version.svg
:name: name_that_is_used_to_refer_to_this_figure
:class: dark-light
:title: This title is shown when you full-screen the applet
A plane through the point $P$.
```
[!NOTE] The
urlparameter should be the part of the URL after/applet/. So if the full URL ishttps://openla.ewi.tudelft.nl/applet/lines_and_planes/normal_equation_plane_origin, you should set the parameter tolines_and_planes/normal_equation_plane_origin.
Parameters for an applet
Some parameters can be set for an applet. Only the url, fig and name parameters are required; the rest is optional. It is recommended to add a status to the applet, which can be unreviewed, in-review or reviewed.
```{applet}
:url: lines_and_planes/normal_equation_plane_origin # Required url
:fig: Images/lines_and_planes/normal_equation_plane_origin.svg # Image shown in print version
:status: reviewed # default is "unreviewed". Other options are "in-review" and "reviewed"
:name: Fig:InnerProduct:ProjectionVectorLine
A title that describes the applet
```
Optional parameters
| Parameter | Description | Default |
|---|---|---|
title |
A string that will be shown as the title of the applet when the applet is in fullscreen mode | "" |
status |
The status of the applet. Can be unreviewed, in-review or reviewed |
unreviewed |
width |
The width of the applet in pixels | 100% |
height |
The height of the applet in pixels | 400px |
Control parameters
[!WARNING] Work in progress
2D Specific parameters
[!TIP] You should add split-* before the parameter to make it apply to the right scene
| Parameter | Description | Default |
|---|---|---|
| position2D | The position of the applet in the 2D plane | 0,0 |
| zoom2D | The zoom level of the applet in the 2D plane | 1 |
3D Specific parameters
[!TIP] You should add split-* before the parameter to make it apply to the right scene
| Parameter | Description | Default |
|---|---|---|
| position3D | The position of the applet in the 3D plane | 0,0,0 |
| zoom3D | The zoom level of the applet in the 3D plane | 1 |
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_prime_applets-1.0.0.tar.gz.
File metadata
- Download URL: sphinx_prime_applets-1.0.0.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7376540bcbcef57985f7f490d341e05122f9637841c80bffa77d8965f7c185d
|
|
| MD5 |
3dcc2b48620b2e03e84968497da1e3ae
|
|
| BLAKE2b-256 |
ac01edc02b6e0e05a132bafec1f1a8c5d22acd49258bac36fb0abf2db50e86ff
|
Provenance
The following attestation bundles were made for sphinx_prime_applets-1.0.0.tar.gz:
Publisher:
python-publish.yml on TeachBooks/Sphinx-PRIME-applets
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_prime_applets-1.0.0.tar.gz -
Subject digest:
e7376540bcbcef57985f7f490d341e05122f9637841c80bffa77d8965f7c185d - Sigstore transparency entry: 173594958
- Sigstore integration time:
-
Permalink:
TeachBooks/Sphinx-PRIME-applets@149291cf6518b3609b6c95fc5f91af719391a8b4 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/TeachBooks
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@149291cf6518b3609b6c95fc5f91af719391a8b4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file sphinx_prime_applets-1.0.0-py3-none-any.whl.
File metadata
- Download URL: sphinx_prime_applets-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d9a0f483dd1efc60a22fbcc06b9a0c472bb7f214ab5330eac1cfd851e50fb8a
|
|
| MD5 |
4167a06941c098f3cca90b69ef724c7a
|
|
| BLAKE2b-256 |
a7b55d42e742ecf8a7fd3578c5e7b8d7574354c0b87037576f1e959b1cb13804
|
Provenance
The following attestation bundles were made for sphinx_prime_applets-1.0.0-py3-none-any.whl:
Publisher:
python-publish.yml on TeachBooks/Sphinx-PRIME-applets
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_prime_applets-1.0.0-py3-none-any.whl -
Subject digest:
2d9a0f483dd1efc60a22fbcc06b9a0c472bb7f214ab5330eac1cfd851e50fb8a - Sigstore transparency entry: 173594959
- Sigstore integration time:
-
Permalink:
TeachBooks/Sphinx-PRIME-applets@149291cf6518b3609b6c95fc5f91af719391a8b4 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/TeachBooks
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@149291cf6518b3609b6c95fc5f91af719391a8b4 -
Trigger Event:
push
-
Statement type: