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 running a real Jupyter notebook cell in a Livemark page #237

Open augusto-herrmann opened 1 year ago

augusto-herrmann commented 1 year ago

Overview

It would be awesome to be able to add a Jupyter notebook cell as a section of a Livemark page. The user could edit the contents of the cell and execute the cell to see the results. It would be very useful not only for data analysis but also for writing software documentation. Imagine using this for demonstrating how to use a Frictionless Data Package, or for creating a data visualization where the user can edit the code to modify the chart.

Support for a single executable cell is being worked on in JupyterLite. Using a Pyodide kernel, this can be run on the browser, statically hosted, without a back-end. It would be nice to be able to configure the Python packages required for running the cell.

This is related to #236, but rather than a REPL prompt, it would appear as an editable notebook cell and its output.

roll commented 1 year ago

Thanks @augusto-herrmann !

loleg commented 11 months ago

What about going the other way? Wondering if Livemark as a Jupyter plug-in would make sense.

augusto-herrmann commented 11 months ago

That would be a completely different project, but may be worth considering. Should probably open a separate issue somewhere to discuss it, though.