Why run Open WebUI code interpreter on a Jupyter server
A team that wants the model to run Python for analysis often hits the same problem: the code the model writes has to execute somewhere, and that somewhere should not be an uncontrolled place. Running model-written Python on a Jupyter server you operate moves execution out of the browser and into a host you can place, monitor and isolate. Jupyter Notebook support in the Code Interpreter was introduced in Open WebUI v0.5.11, so any deployment older than that release cannot use this path. Confirm your running version before planning the work.
When the Jupyter engine is selected, Open WebUI sends the code the model writes for a chat session to a Jupyter server instead of running it in the user's browser. That moves the execution boundary from each user's machine to a server whose network reach, credentials, file access and resource limits you can control. Open WebUI's own documentation calls both the in-browser Pyodide engine and the Jupyter engine legacy and points workloads that need real processing, full package support or shell access to Open Terminal instead, so treat this page as the setup for a legacy engine that you may need to keep running, not as a general-purpose compute platform.
This page covers three things: configuring the connection between Open WebUI and a Jupyter server, isolating that Jupyter host from your internal network, and testing that the isolation holds. Before you start, decide who can use code execution, which network segments the Jupyter host may reach, and where its logs will be kept. The Open WebUI Jupyter integration documentation is the starting point for the settings, and the Python code execution documentation explains how the engines differ.
What you need before connecting a Jupyter host
Connecting Open WebUI to a Jupyter server touches the application version, the server you operate, the network between them and the people allowed to run code. Settle these four areas before editing any configuration, because each one changes how the others behave.
Open WebUI version at or after v0.5.11
Jupyter Notebook support in the Code Interpreter was introduced in v0.5.11, so earlier releases have no Jupyter engine to configure. Check the running version on your current installation before planning the change. Also check the release notes for any changes to code execution settings between your version and the one you plan to run, since those settings decide which engine appears in the admin panel.
Jupyter integration docsA Jupyter server you operate
The Jupyter server runs the model-written Python, so it becomes part of your attack surface and needs an owner, patching and logging like any other server. Confirm the exact Jupyter server version and its supported authentication options in the Open WebUI Jupyter documentation rather than assuming them. Decide whether one shared server or per-team servers fit your data classification.
Network paths between the two
Open WebUI must reach the Jupyter URL, and the Jupyter host should accept connections only from Open WebUI. Map every route, including container networks, DNS names and any reverse proxy in between. Confirm whether the Jupyter host needs outbound internet access for package installs, and if it does, decide whether that access goes through a controlled egress path.
Credentials and tokens for Jupyter
Open WebUI needs a credential to call the Jupyter server, and that credential must not be a shared password stored in plain configuration. Confirm which authentication methods the documented Jupyter integration supports and how the value is supplied, such as an environment variable or a secret store. Plan rotation and make sure the token cannot read files outside the notebook workspace.
Who may run code
Code execution is a permission decision, not only a technical setting. Decide which roles or groups may use the Code Interpreter, and whether those users should reach a shared Jupyter kernel or an isolated one. Record the decision in your access model before rollout, so administrators can explain why a given user sees or does not see the feature.
Why Pyodide and Jupyter are now legacy engines
Open WebUI now labels both its in-browser Pyodide engine and its Jupyter engine as legacy. The project points real workloads, full package support and shell access to Open Terminal instead. For a team starting new code execution work, this means Open Terminal should be evaluated alongside Jupyter from the start, not added later as a fallback. Compare what each engine must do for your users: whether they need installed packages beyond the basics, whether they need a shell, and where the code runs relative to your data. Record the outcome of that comparison in the design document so the choice can be revisited when the project changes its guidance.
Teams that already run the Jupyter engine need a review plan rather than an immediate switch. Start by inventorying which models, groups and workflows have code execution enabled, and which of them depend on packages, files or notebooks that only exist on the Jupyter host. Confirm the Open WebUI version you run and check its release notes and the current code execution documentation before changing anything, because the guidance may have changed since your last review. Then decide per workload whether to keep the existing setup, move the workload to Open Terminal, or retire the capability. Test each moved workload with representative users before you change production access.
Whatever engine you choose, keep the review tied to the host it runs on. Ask your Open WebUI and Open Terminal contacts, or confirm in the project documentation, which network paths, credentials and storage the execution host can reach, and who owns patching for it. A legacy engine that remains in service without an owner is the most common gap in these reviews, so assign the Jupyter host to a named team with a documented retirement or migration date set by your own change process.
How model-written Python travels from chat to the Jupyter host
A user's chat request goes to the model, which returns Python code. Open WebUI sends that code to a Jupyter server, which runs it and returns output and files back through Open WebUI to the chat. The trust boundary sits between the Open WebUI network and the Jupyter host network, and authentication happens at both the Open WebUI login and the call from Open WebUI to Jupyter. Check that the Jupyter host cannot reach the internal network it does not need.
Model-written code crosses one authenticated boundary to a separate Jupyter host.
How to configure the Jupyter engine in Open WebUI
This sequence takes a Jupyter server from deployment through a restricted service identity, the Open WebUI connection, a scoped test group and a controlled Python run, so you can confirm model-written code executes where you intend before wider rollout.
Deploy or confirm the Jupyter server
Confirm which Jupyter server will run model-written Python, either an existing one your platform team already operates or a new host in a segment you control. Check that the Open WebUI version in use includes Jupyter Notebook support in the Code Interpreter, which was introduced in v0.5.11, and confirm that the Jupyter host can reach Open WebUI over the network path you plan to allow. Record the host name, port and version. You are done when the server responds to a basic health request from the Open WebUI host and you have written down the version of both systems.
Create a restricted service identity on Jupyter
Create a dedicated account or token on the Jupyter server for Open WebUI to use, separate from any personal or administrator login. Give it only the permissions needed to start kernels and run code in the workspace you designate, and keep it out of shared notebook directories and any host-level shell access. Store the token in your secrets manager rather than in a document. You are done when the identity can open a kernel from an API call, and a request that tries to reach a directory outside the designated workspace is refused.
Set the Jupyter connection in Open WebUI admin settings
As an administrator in Open WebUI, open the admin settings area for code execution and enter the Jupyter URL and the credential from the previous step. Copy the exact setting names and field labels from the Open WebUI Jupyter documentation, since they can change between releases, and avoid typing them from memory. Leave the legacy in-browser Pyodide engine off. You are done when the connection test in the settings reports success and the Jupyter host logs show a single authenticated request from Open WebUI.
Enable code execution for a test group
Create or pick a small test group in Open WebUI, add two or three accounts you control, and enable the code execution option only for that group. Keep the feature off for everyone else until the test is complete. Confirm in the permission view that users outside the group do not see the option in their chat controls. You are done when a test user inside the group sees the option and a user outside the group does not.
Run a controlled Python test
Ask a test user to run a short, known Python snippet that prints a fixed value and writes a small file in the designated workspace, such as a calculation with a known result. Do not use real data or credentials in this test. Watch the response in the chat to confirm the output matches the expected value and that the code ran on the Jupyter server rather than in the browser. You are done when the printed output matches your expected result and the file appears in the workspace on the Jupyter host, not on the Open WebUI host.
Review output and logs before widening access
Review the Open WebUI logs, the Jupyter server logs and the chat record for the test run. Confirm that the request, the kernel start and the output all appear, that the service identity was the only one used, and that no secrets appeared in the logs or the chat. Note any errors and resolve them before changing anything else. You are done when the logs show a clean, attributable run and you have a written record of the test settings, which you can hand to your security reviewer before any group is added.
Choosing between Jupyter, Open Terminal and Pyodide by workload
Pyodide runs Python inside the user's browser, so the code never reaches a server you operate. That makes it attractive for short arithmetic, unit conversions and simple data reshaping where the user only needs an answer in the chat. Open WebUI's documentation, however, calls the in-browser Pyodide engine legacy and points real workloads elsewhere, so treat it as a limited convenience rather than a foundation for new work.
- Legacy status: Open WebUI labels Pyodide as a legacy engine, so confirm its current behavior in the release you run before relying on it.
- Scope of the runtime: Expect a small set of available libraries and no guarantee that a given package installs or runs.
- Client dependence: Results depend on each user's browser, memory and device, which makes them hard to reproduce for audit.
- No server-side file access: Code cannot reach the files and data sets your team stores on the server.
- Low setup cost: Nothing extra to deploy or patch, which is why it stays useful for trivial tasks.
Before choosing this engine, test the exact calculations your users request on the Open WebUI version you run, and confirm that results match a known-good reference.
Most analysis work needs packages the browser runtime does not provide, plus uploaded spreadsheets, CSV files or notebooks that persist across a session. The Jupyter engine covers notebook-style analysis on a server you control, and Open WebUI added Jupyter Notebook support in its Code Interpreter in v0.5.11. Because the engine is documented as legacy, plan the migration path to Open Terminal before you commit a team's workflow to notebooks.
- Notebook support: Jupyter Notebook support was introduced in v0.5.11, so older installations need an upgrade before they can use it.
- Legacy status: Open WebUI points full package support and real workloads to Open Terminal, so Jupyter is best treated as a transitional choice.
- Host sizing: Memory and CPU demands grow with dataset size, so the Jupyter host must be sized for the largest file users upload.
- Package management: Decide who installs packages and how versions are pinned, since ad hoc installs make results hard to reproduce.
- Data exposure: Any data a notebook can read is data that generated code can read, so scope the mounted files tightly.
Before committing, run a representative analysis from your own team, including the largest file and the packages it needs, and record the version, memory use and runtime.
Some workloads need more than a Python interpreter: installing system packages, running compiled tools, inspecting files or chaining commands. Open WebUI directs shell access and full package support to Open Terminal, which is the engine the project positions for real workloads. Shell access widens what generated code can do, so the security boundary matters more here than for any other engine.
- Right tool for real work: Open Terminal is where Open WebUI points workloads that need shell access and full package support.
- Wider blast radius: A shell can reach the network, the file system and credentials that a notebook would not expose, so isolate the host.
- Isolation design: Plan a separate host or container with restricted egress, read-only mounts where possible and no access to internal admin systems.
- Operations cost: Shell workloads need logging, resource limits and a rebuild procedure, which your team must own.
- Who can use it: Limit access by group, so only approved users can run commands.
Before enabling this engine, confirm the Open Terminal version and its documented controls with the Open WebUI project, then test that generated commands cannot reach internal services or secrets from the isolated host.
Which users, files and outputs cross into the Jupyter host
This table maps each data element that moves between Open WebUI and the Jupyter host, from user identity to logs. For each row it names the likely owner, where the data sits, who can read it and the control to confirm before go-live. Treat the owner and storage entries as starting points to verify against the current documentation and your own deployment, since the exact field names and storage paths depend on your version.
| Data element | Owner and storage | Who can read it | Control to confirm |
|---|---|---|---|
| User identity and group | Open WebUI account and group records in its database, passed to the execution request as session context | Open WebUI administrators, and anyone with database access | Confirm which user and group attributes are sent to the Jupyter host, and whether any are forwarded at all |
| Prompt-generated code | Written by the model, sent to the Jupyter kernel, and stored in chat history inside Open WebUI | Users who can open the chat, administrators, and the Jupyter host operator | Confirm where code is logged on both sides and whether it is retained after the chat is deleted |
| Uploaded files | Uploaded to Open WebUI, then made available to the kernel working directory on the Jupyter host | Anyone with access to the kernel filesystem, and any code that runs in it | Confirm how files are copied to the host, their location on disk, and how cleanup works after a session ends |
| Notebook outputs | Printed text, tables and errors returned from the kernel and stored with the chat message | Users who can view the chat, and administrators with database access | Confirm whether outputs are truncated, size-limited or sanitized before they are displayed |
| Returned images or files | Plots or files written by the kernel, returned to Open WebUI and stored as attachments | Users with chat access, and anyone who can reach the attachment store | Confirm the attachment storage location, access checks on download, and retention rules |
| Logs on Open WebUI and Jupyter | Application logs on each host, plus kernel and server logs on the Jupyter host | Operators and log platform users, who may see code and outputs in plain text | Confirm log levels, which fields are written, and who can access each log store |
| Jupyter server credentials | Access token or password configured in Open WebUI and the Jupyter server settings | Administrators of both systems, and any process that reads configuration | Confirm how the token is stored, how it is rotated, and that the Jupyter server is not reachable from untrusted networks |
Isolating the Jupyter host from your network
Model-written Python is untrusted input that runs on a host you own, so the Jupyter server should be treated as a workload that can be compromised. The cards below cover the placement, network, identity, storage, secret and monitoring controls that limit what generated code can reach. Firewall rules and egress policy must be designed against your own network, not copied from a template.
Dedicated host in its own segment
Run the Jupyter server on a dedicated VM or host in a network segment that holds nothing else. Do not co-locate it with the Open WebUI application, databases or internal tools, because a successful code execution then sits next to the systems you most want protected. Check that the segment has only the routes Open WebUI needs to reach the Jupyter API, and that no other team's workloads share the hypervisor or namespace without a documented reason.
Jupyter integration docs**Default-deny egress** policy
Generated code can open sockets, call APIs and download packages, so outbound traffic should be blocked by default. Allow only the destinations you approve, such as an internal package mirror, and block internal databases, metadata endpoints and management interfaces explicitly. Write these rules against your own address plan and test them from inside the Jupyter process, since a rule that looks correct on paper may still permit traffic through a proxy or DNS path you did not map.
Least-privilege service accounts
Give the Jupyter process its own operating system account with no sudo rights, no access to the Docker socket and no membership in administrative groups. Any database or API credential it needs should belong to a narrow service identity scoped to one dataset or one API. Confirm that the account cannot read the configuration files or certificates of the Open WebUI host.
No shared admin credentials
Do not reuse an administrator password, a root key or a platform owner token for the Jupyter host, even during testing. Shared credentials make it impossible to tell which execution or which user acted, and they turn one exposed notebook into a route to every system that account controls. Issue a separate credential for each integration and rotate it on a schedule your security team sets.
File system and volume scoping
Mount only the directories that notebooks need, ideally a per-user or per-session workspace on a volume with a size limit. Keep host paths such as home directories of administrators, backup directories and the Open WebUI data volume out of the container or VM view. Check whether uploaded files and generated outputs persist after a session ends, and set a cleanup rule that matches your data retention policy.
Secret handling for tokens
Tokens that the Jupyter server needs, such as API keys for a Jupyter connection, should come from a secret store or an orchestrator secret, not from environment variables visible in notebook code or from files in a shared repository. Remember that code executed by a model can print environment variables into the chat transcript, so keep high-value secrets out of the process entirely where the integration allows it. Confirm with the Open WebUI version you run how the connection credential is stored.
Logging and execution monitoring
Record which user and chat triggered each execution, the code submitted, the start and end times, and any outbound connection attempts that the egress policy blocks. Send these events to a log store that the Jupyter host cannot modify. Review blocked egress attempts as potential signals of prompt injection or misuse, and agree in advance who receives alerts and how quickly they must respond.
Common failures when the Jupyter engine does not respond
This table pairs each common symptom with its likely cause and a general fix when the Jupyter engine does not respond from Open WebUI. Read it top to bottom, starting with the network path, because a connection failure hides every other problem. Confirm each setting against the Open WebUI documentation and the container logs for your version before changing anything.
| Symptom | Likely cause | General fix |
|---|---|---|
| Code cell times out or reports the engine is unreachable | The Jupyter endpoint is not reachable from the Open WebUI container, often because it resolves to localhost or uses a host name the container cannot resolve | Use an address the Open WebUI container can reach on the same container network, then test the connection from inside that container |
| Requests return unauthorized or forbidden | The token or password configured for Jupyter does not match the Jupyter server, or the token was rotated without updating Open WebUI | Regenerate the Jupyter token, update the Open WebUI connection setting, and restart both services if the logs still show rejection |
| Code interpreter option is missing or code does not run for some users | Code execution is disabled for the user's group or role, so the feature is hidden or blocked for that account | Check group permissions in the admin settings and compare an affected user's group with a working account |
| Script runs but cannot find uploaded files | The file was uploaded to Open WebUI storage but not copied into the Jupyter session, or the session was restarted and lost its working directory | Confirm how Open WebUI passes files to the kernel in the current documentation, then retry in a new chat to rule out a stale session |
| ImportError for a package that works on your workstation | The package is not installed in the Jupyter environment, which is separate from the Open WebUI image and from your local Python | Install approved packages into the Jupyter environment through your change process, then restart the kernel and test the import |
| Connection drops only from the Jupyter host to outside networks | Egress rules on the host, subnet or firewall block the outbound calls that packages or data sources need | Allow only the specific destinations your approved packages and data sources require, and log denied connections while you tune the rules |
| Engine responds but results look like old or partial output | A legacy Pyodide or Jupyter engine setting is still active, or the browser cached an earlier session | Check which engine is selected in the admin settings, then clear the browser session and test again |
Questions buyers ask about Open WebUI Jupyter code execution
Can our team set up a Jupyter code interpreter for Open WebUI ourselves?
Yes, if you have people who already run containers, Linux hosts and network policy, and who can own the setup after it goes live. The Jupyter engine is a separate server that Open WebUI calls, so the work is more than a single setting: you need a host, a Jupyter installation, a connection from Open WebUI, and rules that keep that host away from your internal systems. Teams that have done this before usually find the isolation and access decisions take longer than the install itself. A partner is useful when the internal team lacks time, or when a security or compliance reviewer needs the design documented and tested before users rely on it.
What makes the effort of a Jupyter code interpreter larger or smaller?
The main drivers are the number of users who will run code, how sensitive the data they touch is, how the Jupyter host is placed on your network, how users sign in, and which packages they need. More users and sensitive data mean more access control, logging and capacity planning. Strict network isolation means more firewall and egress work, and identity integration adds configuration and testing. Package needs add image building and an approval process for new libraries. Ask any provider to break its quote down along these lines so you can see which decision moves cost.
What do we need to provide for this work?
You need to provide network access to the systems involved, a host or cloud account where the Jupyter server will run, and a named owner who can make policy decisions. The owner decides which packages are allowed, what data may be loaded into notebooks, how long outputs are kept, and who may use the interpreter. Your security team should also confirm egress rules, since code that runs on the Jupyter host can make outbound requests unless you block them. Agree these inputs before the schedule starts, because late decisions on network or ownership are a common cause of delay.
How long does a Jupyter code interpreter project take?
Duration depends on the agreed scope, not on a generic rule, so it is set in writing before work starts. The scope should list the number of environments, the identity integration, the network design, the package set, testing and handover. Each of those items adds time, and the client decisions behind them can take longer than the technical build. Ask for a timeline tied to named deliverables and to the client inputs it depends on. Be cautious of any timeline quoted without a written scope.
Should we use Pyodide or Open Terminal instead of Jupyter?
Open WebUI's documentation describes its in-browser Pyodide engine and its Jupyter engine as legacy, and points real workloads, full package support and shell access to Open Terminal. For most new deployments, evaluate Open Terminal first, since it is the path the project recommends for serious work. Pyodide runs code in the browser, which limits what it can access, but it also limits packages and data handling. Keep Jupyter only if you already depend on its notebook features and have a plan to move off it. Confirm the current status of each engine against the project documentation before you decide.
How do we request a quote for this work?
Send a written description of the goal, the expected number of users, the data the code may touch, the identity provider, the network zones involved and the packages users need. Add the Open WebUI version you run and any existing Redis, database or vector store details. A provider should respond with a written scope listing deliverables, client inputs, exclusions, acceptance tests and a timeline tied to those items. DeployOpen works from a written scope and does not publish a price list, so the quote follows from the scope you agree. Compare quotes on the same scope, not on the headline figure.
How DeployOpen scopes and delivers a Jupyter code interpreter
DeployOpen plans, builds, documents and supports the Open WebUI code interpreter with Jupyter inside infrastructure you control. We start from the written scope, separate the Jupyter host from your core network, and hand over the configuration, runbooks and tests your own team needs to operate it.
How we scope
- Inventory which teams and models will run Python through Open WebUI and what data those sessions may touch.
- Agree in writing whether the Jupyter host runs on your cloud, data center or air-gapped network, with its network boundaries.
- Confirm the engagement is fixed-scope, with deliverables and timelines agreed before work starts, and that ongoing support is available as a retainer.
How we build
- Deploy the Jupyter server as a separate host with its own network segment, egress rules and no direct path to internal databases.
- Configure the Open WebUI connection to the Jupyter engine and confirm which features are legacy and which need Open Terminal instead.
- Test isolation from the core network, file access limits and session behavior, then record the results in a findings report.
How we hand over
- Deliver the architecture, network rules, configuration files and a record of every setting that differs from defaults.
- Provide runbooks for restarting the Jupyter host, rotating its credentials, reviewing logs and removing stale sessions.
- Walk your platform and security teams through the design so they can review, change and audit the setup without us.
How we support
- Offer retainers for patching Open WebUI and Jupyter, reviewing release notes and retesting isolation after changes.
- Re-run the isolation tests when you add models, change network zones or move the Jupyter host to new infrastructure.
- Confirm with us during scoping which support level, response channels and retest cadence your team needs in writing.

