jupyqt
Embed JupyterLab in PySide6 applications — no ipykernel, no ZMQ, no qasync.
Features
- Background-thread kernel — cell execution never blocks the Qt event loop
- Top-level
await— async/await works in notebook cells out of the box - Qt proxy — safely manipulate Qt widgets from notebook code
- jupyverse server — full JupyterLab UI via QWebEngineView or external browser
Installation
pip install jupyqt
With uv:
uv add jupyqt
Quick start
from PySide6.QtWidgets import QApplication, QMainWindow, QVBoxLayout, QWidget
from jupyqt import EmbeddedJupyter
app = QApplication([])
window = QMainWindow()
jupyter = EmbeddedJupyter()
jupyter.shell.push({"greeting": "Hello from jupyqt!"})
jupyter.start()
central = QWidget()
QVBoxLayout(central).addWidget(jupyter.widget())
window.setCentralWidget(central)
window.show()
app.exec()
jupyter.shutdown()
Exposing Qt objects to the notebook
Wrap Qt objects with wrap_qt() so notebook cells can safely call methods on the main thread:
jupyter.push({
"window": jupyter.wrap_qt(main_window),
"label": jupyter.wrap_qt(some_label),
"do_stuff": my_function,
})
Then in a notebook cell:
window.setWindowTitle("Controlled from Jupyter!")
label.setText("Updated from a cell")
import asyncio
for i in range(5):
await asyncio.sleep(0.5)
do_stuff()
Examples
# Minimal smoke test
uv run python examples/minimal_app.py
# Full demo with exposed UI, counter widget, and demo notebook
uv run python examples/demo_app.py
Architecture
┌─────────────────────────────────────┐
│ JupyterLabWidget (QWebEngineView) │ ← Qt main thread
└───────────────┬─────────────────────┘
│ HTTP / WebSocket
┌───────────────┴─────────────────────┐
│ jupyverse (fps + anyio) │ ← server thread
└───────────────┬─────────────────────┘
│ anyio MemoryObjectStreams
┌───────────────┴─────────────────────┐
│ Wire Protocol + InteractiveShell │ ← kernel thread (asyncio)
└───────────────┬─────────────────────┘
│ QtProxy (blocking invoke)
┌───────────────┴─────────────────────┐
│ Host Qt Application │ ← Qt main thread
└─────────────────────────────────────┘
Three threads, no shared event loop, no reentrancy.
Known limitations
- Concurrent uploads to the same path aren't safe. The file-browser upload handler assembles chunked uploads by path, not by upload session — re-dragging the same file while an upload is still in flight, or retried/out-of-order chunks, can silently produce a corrupted file. Uploading distinct files concurrently is unaffected.
- PDF / WebPDF notebook export need extra tooling nbconvert doesn't bundle. "Export Notebook As → PDF" requires a LaTeX toolchain (e.g. TeX Live with
xelatex) on the host machine; "WebPDF" requires Playwright. Neither is installed by jupyqt — install them separately if you need those export formats. HTML, Markdown, and script export work out of the box.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jupyqt-0.6.2.tar.gz.
File metadata
- Download URL: jupyqt-0.6.2.tar.gz
- Upload date:
- Size: 76.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b6b2855f0a3c9e52a955c48176a22ede2a534547a9f52e43834db753f5d396c
|
|
| MD5 |
3fb7d71da8f77590d46bab55fb8b3fc7
|
|
| BLAKE2b-256 |
543efaea939cf6baf0b785fe11c6ecd32ba28e9d931510c6efc600344c94e9e1
|
Provenance
The following attestation bundles were made for jupyqt-0.6.2.tar.gz:
Publisher:
release.yml on SciQLop/jupyqt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jupyqt-0.6.2.tar.gz -
Subject digest:
8b6b2855f0a3c9e52a955c48176a22ede2a534547a9f52e43834db753f5d396c - Sigstore transparency entry: 2150493444
- Sigstore integration time:
-
Permalink:
SciQLop/jupyqt@3a6d3081a5a1e8c886e00464665924d1ab1d458b -
Branch / Tag:
refs/tags/0.6.2 - Owner: https://github.com/SciQLop
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3a6d3081a5a1e8c886e00464665924d1ab1d458b -
Trigger Event:
push
-
Statement type:
File details
Details for the file jupyqt-0.6.2-py3-none-any.whl.
File metadata
- Download URL: jupyqt-0.6.2-py3-none-any.whl
- Upload date:
- Size: 30.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b62db45262dd9ff8e4bbed07ecf482f3990aad8595924258602d11f738545f71
|
|
| MD5 |
154dadaf5bde6e4af18c13847ea88e51
|
|
| BLAKE2b-256 |
b4bec3e061ba40671df22c16810e00a218755ff8f273d84d92da7a78b5108a73
|
Provenance
The following attestation bundles were made for jupyqt-0.6.2-py3-none-any.whl:
Publisher:
release.yml on SciQLop/jupyqt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jupyqt-0.6.2-py3-none-any.whl -
Subject digest:
b62db45262dd9ff8e4bbed07ecf482f3990aad8595924258602d11f738545f71 - Sigstore transparency entry: 2150494028
- Sigstore integration time:
-
Permalink:
SciQLop/jupyqt@3a6d3081a5a1e8c886e00464665924d1ab1d458b -
Branch / Tag:
refs/tags/0.6.2 - Owner: https://github.com/SciQLop
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3a6d3081a5a1e8c886e00464665924d1ab1d458b -
Trigger Event:
push
-
Statement type: