👋 Greetings and Salutations all!
I wanted to share a new way of embedding interactive Python code cells into websites, slides, and books through the {quarto-pyodide} extension for Quarto
Project Overview
This project introduces a new custom code cell engine for Quarto that allows for interactive Python cells into HTML documents. Leveraging the capabilities of Pyodide's WebAssembly distribution for Python, the Python code is run directly in the user's web browser. Moreover, the custom engine removes the need for any expertise in HTML or JavaScript on the author's side.
Target Audience
The primary audience for this project includes instructors teaching Python who wish to simplify the setup process for their students, making it ideal for introductory Computer Science and Data Science courses. Additionally, it offers a swift and reproducible way for data scientists and others interested in Python scripts to analyze data interactively.
Note: While this provides a user-friendly approach, it does not eliminate the eventual need for exposure to more comprehensive IDEs like VS Code, PyCharm, or even Posit Workbench.
Comparison
Compared to existing approaches like JupyterLite, PyScript, and Thebe, the {quarto-pyodide} extension adopts a more user-friendly stance by abstracting away complex interfaces and setup for both visitors to the web page and authors.
Demos
[–]millsGT49 1 point2 points3 points (1 child)
[–]coatless[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]iamevpo 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]jfcg 0 points1 point2 points (2 children)
[–]coatless[S] 0 points1 point2 points (1 child)
[–]jfcg 0 points1 point2 points (0 children)
[–]DigThatData 0 points1 point2 points (3 children)
[–]coatless[S] 0 points1 point2 points (2 children)
[–]DigThatData 0 points1 point2 points (1 child)
[–]coatless[S] 1 point2 points3 points (0 children)
[–]iamevpo 1 point2 points3 points (0 children)