Skip to content

atsphinx/pythontutor

Repository files navigation

atsphinx-pythontutor

Embedding iframe from https://pythontutor.com

Getting started

pip install atsphinx-pythontutor

Usage

  1. Register your conf.py.
extensions = [
    ...,
    "atsphinx.pythontutor",
]
  1. Write pythontutor directive into your doc.
.. pythontutor::
   :width: 800

   items = ["a", "b", "c"]

   for item in items:
       print(item.upper())