Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/config/pyodide.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": "0.26.2",
"version": "0.29.4",
"preload": ["numpy", "scipy", "micropip"]
}
4 changes: 2 additions & 2 deletions scripts/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def load_pyodide_config(self) -> dict:
if path.exists():
with open(path, encoding="utf-8") as f:
return json.load(f)
return {"version": "0.26.2", "preload": ["numpy", "scipy", "micropip"]}
return {"version": "0.29.4", "preload": ["numpy", "scipy", "micropip"]}

def discover_toolboxes(self) -> list[Path]:
"""Find all toolbox config directories."""
Expand Down Expand Up @@ -882,7 +882,7 @@ def write_dependencies(self, data: dict) -> None:
"",
f"export const PATHVIEW_VERSION = '{pathview_version}';",
"",
f"export const PYODIDE_VERSION = '{pyodide.get('version', '0.26.2')}';",
f"export const PYODIDE_VERSION = '{pyodide.get('version', '0.29.4')}';",
"export const PYODIDE_CDN_URL = `https://cdn.jsdelivr.net/pyodide/v${PYODIDE_VERSION}/full/pyodide.mjs`;",
"",
f"export const PYODIDE_PRELOAD = {json.dumps(pyodide.get('preload', []))} as const;",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/constants/dependencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

export const PATHVIEW_VERSION = '0.8.9';

export const PYODIDE_VERSION = '0.26.2';
export const PYODIDE_VERSION = '0.29.4';
export const PYODIDE_CDN_URL = `https://cdn.jsdelivr.net/pyodide/v${PYODIDE_VERSION}/full/pyodide.mjs`;

export const PYODIDE_PRELOAD = ["numpy", "scipy", "micropip"] as const;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/pyodide/backend/pyodide/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
import { PROGRESS_MESSAGES, ERROR_MESSAGES } from '$lib/constants/messages';
import type { REPLRequest, REPLResponse } from '../types';

import type { PyodideInterface } from 'https://cdn.jsdelivr.net/pyodide/v0.26.2/full/pyodide.mjs';
import type { PyodideInterface } from 'https://cdn.jsdelivr.net/pyodide/v0.29.4/full/pyodide.mjs';

let pyodide: PyodideInterface | null = null;
let isInitialized = false;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/types/modules.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ declare module 'plotly.js-dist-min' {
}

// Pyodide CDN module
declare module 'https://cdn.jsdelivr.net/pyodide/v0.26.2/full/pyodide.mjs' {
declare module 'https://cdn.jsdelivr.net/pyodide/v0.29.4/full/pyodide.mjs' {
interface PyProxy {
toJs(options?: { dict_converter?: typeof Object.fromEntries }): unknown;
destroy(): void;
Expand Down
Loading