Config the python modules available when running generated code in a chat window #1523

Closed
opened 2025-11-11 14:46:51 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @evolu8 on GitHub (Jul 14, 2024).

Is your feature request related to a problem? Please describe.
Yes. Being able to click Run to run generated python code snippets is awesome, but oftentimes a python library is missing and adding one is non-trivial for most users (unless I'm missing something)

Describe the solution you'd like
Ideally I'd like to be able to add python packages available via micropip in the admin interface.

Describe alternatives you've considered
I've tried hacking in the terminal and the browser and neither were fun (or successful)

Additional context

Originally created by @evolu8 on GitHub (Jul 14, 2024). **Is your feature request related to a problem? Please describe.** Yes. Being able to click Run to run generated python code snippets is awesome, but oftentimes a python library is missing and adding one is non-trivial for most users (unless I'm missing something) **Describe the solution you'd like** Ideally I'd like to be able to add python packages available via micropip in the admin interface. **Describe alternatives you've considered** I've tried hacking in the terminal and the browser and neither were fun (or successful) **Additional context** * Obviously some modules are not loadable via micropip, but I'd still like to have the option of easily adding more that are. * I'm assuming the following is a good place to start in the code: https://github.com/open-webui/open-webui/blob/eff736acd2e0bbbdd0eeca4cc209b216a1f23b6a/src/lib/components/chat/Messages/CodeBlock.svelte#L107
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#1523