[GH-ISSUE #9614] enh: code interpreter #31110

Closed
opened 2026-04-25 05:11:34 -05:00 by GiteaMirror · 7 comments
Owner

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.

  • global toggle
  • persistent file directory/files
  • external sandboxing
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. - [x] global toggle - [ ] persistent file directory/files - [x] external sandboxing
Author
Owner

@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

<!-- gh-comment-id:2652983581 --> @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
Author
Owner

@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?

<!-- gh-comment-id:2659809866 --> @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?
Author
Owner

@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

<!-- gh-comment-id:2662544462 --> @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
Author
Owner

@rgaricano commented on GitHub (Feb 17, 2025):

persistente using js fetch API?
pyscript?
https://github.com/simonw/datasette-lite ?

<!-- gh-comment-id:2664127569 --> @rgaricano commented on GitHub (Feb 17, 2025): persistente using js fetch API? pyscript? https://github.com/simonw/datasette-lite ?
Author
Owner

@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!

<!-- gh-comment-id:2672400897 --> @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!
Author
Owner

@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.

<!-- gh-comment-id:2673186370 --> @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.
Author
Owner

@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.

<!-- gh-comment-id:2675629409 --> @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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#31110