A Sphinx extension for embedding interactive demo using The Python Playground
Project description
sphinxcontrib-playground 
A Sphinx extension to embed interactive demo examples with The Python Playground.
Quickstart
Install with pip:
pip install sphinxcontrib-playground
Include below options in conf.py:
playground_options = {
'commit_sha': subprocess.check_output(['git', 'rev-parse', 'HEAD'], encoding='utf-8').strip(),
'github_repo': 'github repo in string' # e.g. ydcjeff/sphinxcontrib-playground
'url': 'https://python-playground.netlify.app' # playground url (you should have your own playground forked from The Python Playground)
}
Use with .. playground:: directive:
.. playground:: path/to/the/python/file.py
:title: Playground (Mandatory title - helpful for screen readers)
Directive options
.. playground:: directive options:
title: Mandatory title for the embedding playground (helpful for screen readers)height: Height of the embedding playground (default: 500)width: Width of the embedding playground (default: 100%)
Souce code of this extension (Demo): https://ydcjeff.github.io/sphinxcontrib-playground/
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sphinxcontrib_playground-0.1.3-py3-none-any.whl.
File metadata
- Download URL: sphinxcontrib_playground-0.1.3-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ec3cf8d82857c1c6dbeabddd6a7e4300f69306ae2266bace878d3220a387283
|
|
| MD5 |
3938272c1f24c5cf2a0b7e0c5f4d643c
|
|
| BLAKE2b-256 |
68628beae7f685b54b186eae1a2e0322d0ee5b41fe8d01b56b31a764a9ddfe34
|