MCPcopy Index your code
hub / github.com/coatless-quarto/pyodide

github.com/coatless-quarto/pyodide @0.0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.0.1 ↗ · + Follow
31 symbols 44 edges 5 files 19 documented · 61%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Pyodide Extension for Quarto HTML Documents

We have an initial version of the extension now available.

This extension enables the Pyodide code cell within various Quarto formats, including HTML, RevealJS, Websites, Blogs, and Books.

quarto-pyodide Filter in Action

Check out the above example of the extension in action here!

Installation

To use this extension in a Quarto project, install it from within the project's working directory by typing into Terminal:

quarto add coatless-quarto/pyodide

After the installation process is finished, the extension will be readily available for Quarto documents within the designated working directory. Please note that if you are working on projects located in different directories, you will need to repeat this installation step for each of those directories.

Usage

For each document, place the pyodide filter in the document's header:

filters:
  - pyodide

Then, place the Python code for Pyodide in a code block marked with {pyodide-python}

---
title: Pyodide in Quarto HTML Documents
format: html
filters:
  - pyodide
---

This is a pyodide-enabled code cell in a Quarto HTML document.

```{pyodide-python}
n = 5
while n > 0:
  print(n)
  n = n - 1

print('Blastoff!')
```

The rendered document can be viewed online here.

For help setting up other use cases, please see our Templates collection.

Help

To report a bug, please add an issue to the repository's bug tracker.

Want to contribute a feature? Please open an issue ticket to discuss the feature before sending a pull request.

Acknowledgements

Please see our acknowledgements page.

Core symbols most depended-on inside this repo

runCode
called by 4
_extensions/pyodide/qpyodide-cell-classes.js
executeCode
called by 3
_extensions/pyodide/qpyodide-cell-classes.js
setupElement
called by 1
_extensions/pyodide/qpyodide-cell-classes.js
setupMonacoEditor
called by 1
_extensions/pyodide/qpyodide-cell-classes.js
disableInteractiveCells
called by 1
_extensions/pyodide/qpyodide-cell-classes.js
enableInteractiveCells
called by 1
_extensions/pyodide/qpyodide-cell-classes.js
qpyodideDisplayStartupMessage
called by 1
_extensions/pyodide/qpyodide-document-status.js
constructor
called by 0
_extensions/pyodide/qpyodide-cell-classes.js

Shape

Method 20
Class 10
Function 1

Languages

TypeScript100%

Modules by API surface

_extensions/pyodide/qpyodide-cell-classes.js30 symbols
_extensions/pyodide/qpyodide-document-status.js1 symbols

For agents

$ claude mcp add pyodide \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact