mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #9614] enh: code interpreter #54247
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tjbck on GitHub (Feb 7, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/9614
Originally assigned to: @tjbck on GitHub.
@richtong commented on GitHub (Feb 12, 2025):
wow persistent files would be amazing I looked at the code and there is some commented out references to it, but I don't know pyodide well enough to figure out how to get files from the external store into their sandboxed file ssytem
@cvaz1306 commented on GitHub (Feb 14, 2025):
Since now we can connect it to a jupyter notebook server, can we make different groups able to use code interpreter, but with pyodide for security reasons, but still letting them run the code interpreter in their browser?
@JoeChen2me commented on GitHub (Feb 17, 2025):
I wonder if we can build a workspace and upload some files that can be visited by the sandbox?
I think this will expand the functionality of code interpreter significantly
@rgaricano commented on GitHub (Feb 17, 2025):
persistente using js fetch API?
pyscript?
https://github.com/simonw/datasette-lite ?
@mballesterosc commented on GitHub (Feb 20, 2025):
@tjbck, could you indicate if the functionality to attach a file (csv, excel...) that the user uploads in the chat so that the Python code can process it will be available? Currently, we depend on the LLM generating a variable with the CSV text string to process it with pandas.
Is this on your roadmap? I’d be willing to submit a PR for this.
Thanks!
@twiecki commented on GitHub (Feb 21, 2025):
Yes, file uploading would be great, and so would be persistence between python calls, so keeping each chat in the same Python kernel.
@mballesterosc commented on GitHub (Feb 21, 2025):
It could be simple when Jupyter is configured in the same environment as Open WebUI to reference the file uploaded in the chat within the uploads folder in the code interpreter prompt. I've done some testing, and it could work as a temporary solution since it wouldn't work with Pyodide.