trame-reveal
Reveal.js widget and helper application
License
This library is OpenSource and follow the Apache Software License
Installation
Install the application/library
pip install trame-reveal
Development setup
We recommend using uv for setting up and managing a virtual environment for your development.
# Create venv and install all dependencies
uv sync --all-extras --dev
# Activate environment
source .venv/bin/activate
# Install commit analysis
pre-commit install
pre-commit install --hook-type commit-msg
Build and install the Vue components
cd vue-components
npm i
npm run build
cd -
For running tests and checks, you can run nox.
# run all
nox
# lint
nox -s lint
# tests
nox -s tests
Guide
To embed one or multiple trame applications into a reveal.js set of slides:
Create an HTML file, with reveal.js syntax, for your slides
To embed a trame application in a slide use the syntax
<reveal-trame-app name="app1"></reveal-trame-app>
`app-1` is an ID for your trame application. If you create another `<trame-embedded-app>` with the same ID, it will use the same application
Create a Python file where you instantiate a SlidesApp, it takes up to 5 arguments:
3.1 slides_path: The relative path to the HTML file containing the slides 3.2 server: An optional trame Server instance 3.3 port: a port (defaults to 8080) on which to deploy the application running the slides 3.4 iframe_port_start: the port from which will start the deployment of the embedded applications. If you have N applications, the ports from iframe_port_start to iframe_port_start + N - 1 will be used 3.5 trame_apps: a dictionary associating the trame-embedded-app IDs used in the HTML and a tuple containing a TrameApp constructor (the application to be started) and a list of arguments to pass to the constructor
Any necessary additional file (png, css, md, etc) should be stored in a “www” directory next to the source python file.
A dictionary associating application IDs and ports is maintained under the name app_urls in the main application’s state.
Professional Support
Training: Learn how to confidently use trame from the expert developers at Kitware.
Support: Our experts can assist your team as you build your web application and establish in-house expertise.
Custom Development: Leverage Kitware’s 25+ years of experience to quickly build your web application.
Release files for trame-reveal 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| trame_reveal-1.0.2.tar.gz | 2.3 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| trame_reveal-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.5 MB
Release files / trame_reveal-1.0.2.tar.gz
| Download URL | trame_reveal-1.0.2.tar.gz |
|---|---|
| Size | 2.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e80ae88d1d4a0636ffafcc20bd8c03a9fe7f221b5bc528fbca1cb271def4f2c5
|
|
BLAKE2b-256 checksum How to use checksums |
40b0974d95dca2e25bf673705232fc3f17e8e00888e890a67fa1fed005b85183
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency logRelease files / trame_reveal-1.0.2-py3-none-any.whl
| Download URL | trame_reveal-1.0.2-py3-none-any.whl |
|---|---|
| Size | 2.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1640acee5ff4b2b004fd35960f7b65e908e07d2f914e140b4f6a64c5ff95f077
|
|
BLAKE2b-256 checksum How to use checksums |
973a51559e201d787c8d4e010466a806e6dafaf1bcdce6b6d31f16e47031acc7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency log