Skip to main content

Pyodide-MkDocs-Theme is a MkDocs theme for building static websites that allow to run Python code in browser as:

  • code editor snippets (IDEs),
  • interactive Python consoles (terminals),
  • instant assessments for user-written functions associated with solutions for excercises and instructor remarks.

There are many additional features including auto-corrected multiple choice questions (MCQs) and compatibility to use:

Guarantees

  • There are no cookies
  • No registration needed
  • Created by teachers for teachers and students

Quickstart

The following commands should install pyodide_mkdocs_theme, scaffold a new project and serve a sample website that you can open a browser, usually at http://127.0.0.1:8000/.

pip install pyodide_mkdocs_theme
python -m pyodide_mkdocs_theme --new your_project_name
cd your_project_name
pip install -r requirements.txt
mkdocs serve

Note: you will need to add site_url parameter in mkdocs.yml in order to run mkdocs build command.

Flexibility

Pyodide-MkDocs-Theme is highly configurable on many aspects:

  • theme configuration,
  • add your own macros to the theme,
  • add custom logic here or there,
  • and quite a few other options.

IDE capture example

How it works

The technology enabling this feat is called Pyodide. It is associated with JavaScript elements such as jquery.terminal and ACE Editor.

Pyodide uses WebAssembly to bridge between Python and JavaScript and provide an environment for manipulating the JavaScript DOM with Python, or vice versa for manipulating Python from JavaScript.

Pyodide-MkDocs-Theme is based on a modern mkdocs-material theme for MkDocs static site generator.

Project history

This project is a complete redesign of the prototype pyodide-mkdocs from Vincent Bouillot.

Metadata

Release files for pyodide-mkdocs-theme 5.8.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyodide-mkdocs-theme 5.8.1
File Size Uploaded Provenance Actions
pyodide_mkdocs_theme-5.8.1.tar.gz 410.6 kB Without provenance Details for pyodide_mkdocs_theme-5.8.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyodide-mkdocs-theme 5.8.1
File Interpreter ABI Platform Actions
pyodide_mkdocs_theme-5.8.1-py3-none-any.whl Python 3 none any Details for pyodide_mkdocs_theme-5.8.1-py3-none-any.whl

Total release size: 962.7 kB

Release files / pyodide_mkdocs_theme-5.8.1.tar.gz

Download URL pyodide_mkdocs_theme-5.8.1.tar.gz
Size 410.6 kB
Tags Source
SHA-256 checksum
How to use checksums
fd5f45bd451fafca33cd268bbd5f99473b4d170e3cf35819f1b92702e68e30a9
BLAKE2b-256 checksum
How to use checksums
cdc5caea7a1860eed699088c4abe5bf9378900e3797518ab5d1904f79f8df703
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.13.5 Linux/7.0.0-43-generic

Release files / pyodide_mkdocs_theme-5.8.1-py3-none-any.whl

Download URL pyodide_mkdocs_theme-5.8.1-py3-none-any.whl
Size 552.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d0df8bf65e07b5b22ba4f9ca67698cced6f05e64c8cb299ac5d6cbb77d4ca5d8
BLAKE2b-256 checksum
How to use checksums
d5d4ff1547320a5255c5b0d1f6c2b9e95adddaf3579a3832be79987e7e224a3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.13.5 Linux/7.0.0-43-generic

Security for pyodide-mkdocs-theme 5.8.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

5.8.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page