Skip to content

bugreport: event loop integration not working for qt (pyside6) #1442

Description

@RubendeBruin

The integration of the Qt event loop with notebooks seems to be broken. Anything I can do to fix it?

Image

Reproduce:

qt_eventloop_integration.ipynb

I used uv to set up the environment using the following toml:

[project]
name = "testerdetest"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"jupyterlab>=4.4.9",
"pyside6-essentials",
]

packages:

Package Version
------------------------- --------------
anyio 4.11.0
argon2-cffi 25.1.0
argon2-cffi-bindings 25.1.0
arrow 1.3.0
asttokens 3.0.0
async-lru 2.0.5
attrs 25.4.0
babel 2.17.0
beautifulsoup4 4.14.2
bleach 6.2.0
certifi 2025.10.5
cffi 2.0.0
charset-normalizer 3.4.3
colorama 0.4.6
comm 0.2.3
debugpy 1.8.17
decorator 5.2.1
defusedxml 0.7.1
executing 2.2.1
fastjsonschema 2.21.2
fqdn 1.5.1
h11 0.16.0
httpcore 1.0.9
httpx 0.28.1
idna 3.11
ipykernel 7.0.0
ipython 9.6.0
ipython-pygments-lexers 1.1.1
isoduration 20.11.0
jedi 0.19.2
jinja2 3.1.6
json5 0.12.1
jsonpointer 3.0.0
jsonschema 4.25.1
jsonschema-specifications 2025.9.1
jupyter-client 8.6.3
jupyter-core 5.8.1
jupyter-events 0.12.0
jupyter-lsp 2.3.0
jupyter-server 2.17.0
jupyter-server-terminals 0.5.3
jupyterlab 4.4.9
jupyterlab-pygments 0.3.0
jupyterlab-server 2.27.3
lark 1.3.0
markupsafe 3.0.3
matplotlib-inline 0.1.7
mistune 3.1.4
nbclient 0.10.2
nbconvert 7.16.6
nbformat 5.10.4
nest-asyncio 1.6.0
notebook-shim 0.2.4
packaging 25.0
pandocfilters 1.5.1
parso 0.8.5
platformdirs 4.5.0
prometheus-client 0.23.1
prompt-toolkit 3.0.52
psutil 7.1.0
pure-eval 0.2.3
pycparser 2.23
pygments 2.19.2
pyside6-essentials 6.6.1
python-dateutil 2.9.0.post0
python-json-logger 4.0.0
pywin32 311
pywinpty 3.0.2
pyyaml 6.0.3
pyzmq 27.1.0
referencing 0.36.2
requests 2.32.5
rfc3339-validator 0.1.4
rfc3986-validator 0.1.1
rfc3987-syntax 1.1.0
rpds-py 0.27.1
send2trash 1.8.3
setuptools 80.9.0
shiboken6 6.6.1
six 1.17.0
sniffio 1.3.1
soupsieve 2.8
stack-data 0.6.3
terminado 0.18.1
tinycss2 1.4.0
tornado 6.5.2
traitlets 5.14.3
types-python-dateutil 2.9.0.20251008
typing-extensions 4.15.0
uri-template 1.3.0
urllib3 2.5.0
wcwidth 0.2.14
webcolors 24.11.1
webencodings 0.5.1
websocket-client 1.9.0

IPython:
ipython
Python 3.12.10 (main, Apr 9 2025, 04:06:22) [MSC v.1943 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 9.6.0 -- An enhanced Interactive Python. Type '?' for help.
Tip: You can use files = !ls *.png

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions