Skip to main content

Package embedding the necessary tools to host pyodide, ACE editors, jQuery terminals in mkdocs documentations

Project description

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.

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

pyodide_mkdocs_theme-4.5.3.tar.gz (320.2 kB view details)

Uploaded Source

Built Distribution

pyodide_mkdocs_theme-4.5.3-py3-none-any.whl (436.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyodide_mkdocs_theme-4.5.3.tar.gz
  • Upload date:
  • Size: 320.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.10.10 Linux/6.11.0-26-generic

File hashes

Hashes for pyodide_mkdocs_theme-4.5.3.tar.gz
Algorithm Hash digest
SHA256 c4027021513d0116055b4f27cdb9faf7402c689f53c37fa6c7f51aca575eb503
MD5 708122c3205d54b7a352f40bac700ae5
BLAKE2b-256 841447e0191bb848b7ddb4c3039c4b33f923629af4a1315c668cd638d509fd99

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pyodide_mkdocs_theme-4.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 edf09a4ea1e84f446a60c84b7649d29600a02a00341643d151bcfc57af44b657
MD5 b02c19457e020cdb630c48d45d9f1bc6
BLAKE2b-256 d75a80cd016dded7d2e4f6ecf9341ff66dc4f2cc2722066ce2f838863f53a09b

See more details on using hashes here.

Supported by

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