You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
how to integrate custom event loop in ipykernel 7.x #1490
Issue:
As explained here, I wrote a custom GUI integration using do_one_iteration that worked in the past. Version 7 breaks this without providing an alternative in the documentation. How can I integrate a custom event loop in the latest version? What are the best practices?
Can you point me in the right direction? I do not get what the kernel needs to do to process the incoming messages as I currently do not get the whole ipykernel data flow.
Activity
ianthomas23 commentedon Jan 13, 2026
There is some discussion in #1458,
get_shell_stream(self.kernel).flush(limit=1)is probably what you are looking for.ugogon commentedon Jan 13, 2026
Thanks for the quick reply. Unfortunately that does not seem to work.
Where do I have to call it/what is self?
My integration is currently pretty basic:
Can you point me in the right direction? I do not get what the kernel needs to do to process the incoming messages as I currently do not get the whole ipykernel data flow.