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.

Links

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyodide_mkdocs_theme-5.5.6.tar.gz (384.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyodide_mkdocs_theme-5.5.6-py3-none-any.whl (521.1 kB view details)

Uploaded Python 3

File details

Details for the file pyodide_mkdocs_theme-5.5.6.tar.gz.

File metadata

  • Download URL: pyodide_mkdocs_theme-5.5.6.tar.gz
  • Upload date:
  • Size: 384.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.10.10 Linux/6.8.0-136-generic

File hashes

Hashes for pyodide_mkdocs_theme-5.5.6.tar.gz
Algorithm Hash digest
SHA256 3a3e9baf10c24e0f5edb5f7e7a9a7a049d9e5fe6596fbf57146eb520d535e001
MD5 e7665366cdfe9ae362993188aaeb9466
BLAKE2b-256 ac0a822e50ef05b4ed6daee8c3ec05f6d36cc1e6e70f2cee96dae1e33b2f0841

See more details on using hashes here.

File details

Details for the file pyodide_mkdocs_theme-5.5.6-py3-none-any.whl.

File metadata

  • Download URL: pyodide_mkdocs_theme-5.5.6-py3-none-any.whl
  • Upload date:
  • Size: 521.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.10.10 Linux/6.8.0-136-generic

File hashes

Hashes for pyodide_mkdocs_theme-5.5.6-py3-none-any.whl
Algorithm Hash digest
SHA256 c3f2751a00af45e193f23d21a8999a8cef557c3f489e36f80f89c048c1179a3a
MD5 6603bb1a26bcae8e5f0e11c0a50b3c17
BLAKE2b-256 69c391dad6a668559749879529172cb0c9aed6c48c1b2ab192addd9f9db7c906

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

5.5.6

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page