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.7.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.7.1
File Size Uploaded Provenance Actions
pyodide_mkdocs_theme-5.7.1.tar.gz 410.3 kB Without provenance Details for pyodide_mkdocs_theme-5.7.1.tar.gz

Built distribution (wheel)

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

Total release size: 962.1 kB

Release files / pyodide_mkdocs_theme-5.7.1.tar.gz

Download URL pyodide_mkdocs_theme-5.7.1.tar.gz
Size 410.3 kB
Tags Source
SHA-256 checksum
How to use checksums
6cb2b384912d43a6278eccf70d7a98d0736b0b006fcfd9b9c8dc9779de292a08
BLAKE2b-256 checksum
How to use checksums
982f2a4730911d727c0fb061bb34d528ae2867473e2a745f67a824998bdf8629
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-38-generic

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

Download URL pyodide_mkdocs_theme-5.7.1-py3-none-any.whl
Size 551.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
10ebdb7976c19ca9bb0c7fbd4810e5c0a6141126c9af7394ad113d5ce1211cdb
BLAKE2b-256 checksum
How to use checksums
f0197e305786027f1bbcc25b4f5d6bbd33fdd85d697f2e4a12a69b26cb76a3d3
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-38-generic

Security for pyodide-mkdocs-theme 5.7.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.7.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