frictionlessdata / livemark

Data presentation framework for Python that generates static sites from extended Markdown with interactive charts, tables, scripts, and other features
https://livemark.frictionlessdata.io
MIT License
95 stars 8 forks source link

Add support for a in-browser Python REPL #236

Open augusto-herrmann opened 1 year ago

augusto-herrmann commented 1 year ago

Overview

Pyodide supports running a Python REPL (read–eval–print loop) directly in the browser by using WebAssembly.

Considering it requires no back-end and can be statically hosted, it would be nice to be able to create a Python environment with selected Python packages and offer a REPL section in a Livemark page (e.g. to showcase to readers how easy it is to use a Frictionless Data Package).

An example of a static site that already uses a similar feature is NumPy's documentation (see the Try Numpy section).

See also the instructions on how to embed a REPL using JupyterLite.

roll commented 1 year ago

Thanks @augusto-herrmann !

loleg commented 11 months ago

I agree that this is a very compelling idea. There are some more example integrations here: https://pyodide.org/en/stable/project/related-projects.html