[PR #2325] [MERGED] feat: python code execution #20963

Closed
opened 2026-04-20 03:16:38 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/2325
Author: @tjbck
Created: 5/17/2024
Status: Merged
Merged: 5/17/2024
Merged by: @tjbck

Base: devHead: pyscript


📝 Commits (4)

📊 Changes

67 files changed (+2038 additions, -11 deletions)

View changed files

📝 backend/main.py (+12 -0)
📝 package-lock.json (+146 -2)
📝 package.json (+3 -0)
pyscript-mv.sh (+8 -0)
src/Untitled-1.js (+20 -0)
📝 src/app.html (+9 -0)
📝 src/lib/components/chat/MessageInput.svelte (+1 -0)
📝 src/lib/components/chat/Messages/CodeBlock.svelte (+205 -4)
📝 src/lib/components/chat/Messages/Placeholder.svelte (+2 -0)
📝 src/lib/components/chat/Messages/ProfileImage.svelte (+7 -1)
📝 src/lib/components/chat/Messages/ResponseMessage.svelte (+1 -0)
📝 src/lib/components/layout/Sidebar.svelte (+1 -0)
📝 src/routes/+layout.svelte (+1 -1)
📝 src/routes/auth/+page.svelte (+6 -1)
static/pyodide/pyodide-lock.json (+1 -0)
static/pyodide/pyodide.asm.js (+17 -0)
static/pyodide/pyodide.asm.wasm (+0 -0)
static/pyodide/pyodide.d.ts (+1476 -0)
static/pyodide/pyodide.js (+12 -0)
static/pyodide/pyodide.js.map (+7 -0)

...and 47 more files

📄 Description

Somewhat resolves #1321

Running entirely on the browser side and external libraries are not supported yet.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/2325 **Author:** [@tjbck](https://github.com/tjbck) **Created:** 5/17/2024 **Status:** ✅ Merged **Merged:** 5/17/2024 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `pyscript` --- ### 📝 Commits (4) - [`58a13ae`](https://github.com/open-webui/open-webui/commit/58a13aec7e14637a9d50d781e3f24c7f0747c292) feat: python code execution - [`1140036`](https://github.com/open-webui/open-webui/commit/1140036f20a6ff74107c0cebefc6e130322858c5) feat: python error handling - [`325fd2b`](https://github.com/open-webui/open-webui/commit/325fd2b97b55577f16a2a4895494c8f25e73a051) refac: styling - [`18a7634`](https://github.com/open-webui/open-webui/commit/18a7634f5cf2b69a1672409e23ed924fc7aeab27) fix: python code execution ### 📊 Changes **67 files changed** (+2038 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `backend/main.py` (+12 -0) 📝 `package-lock.json` (+146 -2) 📝 `package.json` (+3 -0) ➕ `pyscript-mv.sh` (+8 -0) ➕ `src/Untitled-1.js` (+20 -0) 📝 `src/app.html` (+9 -0) 📝 `src/lib/components/chat/MessageInput.svelte` (+1 -0) 📝 `src/lib/components/chat/Messages/CodeBlock.svelte` (+205 -4) 📝 `src/lib/components/chat/Messages/Placeholder.svelte` (+2 -0) 📝 `src/lib/components/chat/Messages/ProfileImage.svelte` (+7 -1) 📝 `src/lib/components/chat/Messages/ResponseMessage.svelte` (+1 -0) 📝 `src/lib/components/layout/Sidebar.svelte` (+1 -0) 📝 `src/routes/+layout.svelte` (+1 -1) 📝 `src/routes/auth/+page.svelte` (+6 -1) ➕ `static/pyodide/pyodide-lock.json` (+1 -0) ➕ `static/pyodide/pyodide.asm.js` (+17 -0) ➕ `static/pyodide/pyodide.asm.wasm` (+0 -0) ➕ `static/pyodide/pyodide.d.ts` (+1476 -0) ➕ `static/pyodide/pyodide.js` (+12 -0) ➕ `static/pyodide/pyodide.js.map` (+7 -0) _...and 47 more files_ </details> ### 📄 Description Somewhat resolves #1321 Running entirely on the browser side and external libraries are not supported yet. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-20 03:16:38 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#20963