You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/reference/template-tag.md
+14
Original file line number
Diff line number
Diff line change
@@ -391,3 +391,17 @@ You can optionally use this tag to configure the current PyScript environment. F
391
391
```python
392
392
{% include "../../examples/python/pyscript-setup-config-object.py" %}
393
393
```
394
+
395
+
??? question "Can I use a local interpreter for PyScript?"
396
+
397
+
Yes, you can set up a local interpreter by following PyScript's [standard documentation](https://docs.pyscript.net/latest/user-guide/offline/#local-pyodide-packages).
398
+
399
+
To summarize,
400
+
401
+
1. Download the latest Pyodide bundle from the [Pyodide GitHub releases page](https://github.com/pyodide/pyodide/releases) (for example `pyodide-0.26.3.tar.bz2`).
402
+
2. Extract the contents of the bundle to your project's static files.
403
+
3. Configure your `#!jinja {% pyscript_setup %}` template tag to use `pyodide` as an interpreter.
404
+
405
+
```jinja linenums="0"
406
+
{% include "../../examples/html/pyscript-setup-local-interpreter.html" %}
0 commit comments