Project: Rich on PyScript


- rich - faker - paths: - ./_richsetup.py - ./scripts/liverunner.py #click Text button to start from js import document document.getElementById("button1").click()

Rich is a Python library for writing rich text (with color and style) to the terminal, and for displaying advanced content such as tables, markdown, and syntax highlighted code. The page illustrates the core classes and concepts of the Rich library, runninng live in the browser via PyScript (v2022.06.1).

Select any of the classes below to load a live code sample using that class. Select any of the demos to see them run in realtime. Try changing the code in the REPL to see the results! See the accompanying blog post for notes on How to use Rich in PyScript.

Classes
Demos

Output

REPL