We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c75530e commit 073f409Copy full SHA for 073f409
src/lib/index.ts
@@ -1,12 +1,15 @@
1
import { loadPyodide, type PyodideInterface } from 'pyodide';
2
3
+const PYODIDE_VERSION = 'v0.27.5';
4
5
/**
6
* Set up Pyodide and install pyhtml-enhanced.
7
*/
8
async function pyodideInit(onStatusUpdate: (status: string) => void) {
9
onStatusUpdate("Loading pyodide...");
- const pyodide = await loadPyodide();
10
+ const pyodide = await loadPyodide({
11
+ indexURL: `https://cdn.jsdelivr.net/pyodide/${PYODIDE_VERSION}/full`
12
+ });
13
onStatusUpdate("Loading micropip...");
14
await pyodide.loadPackage("micropip");
15
const micropip = pyodide.pyimport("micropip");
0 commit comments