ipython / ipython/ipykernel

Standard way to send code to main (kernel/ui) thread from worker thread

Open
#248 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
734
Forks
412
Avg merge
1d 5h
Merged PRs (30d)
8

Description

lib.backgroundjobs provdes an interface to run code in the background, but I see no simple way of sending code back to the main thread to execute in the main thread, i e to update a matplotlib plot during a long simulation. I guess I can hack it and directly use the thread-safe interface of whatever ui eventloop that happens to be used (Qt5 currently), but is there a standard recommended interface to do this?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.