qkitgroup / qkit

Qkit framework
GNU General Public License v2.0
43 stars 46 forks source link

Allow Access to QViewKit STDOUT #116

Closed thilokru closed 7 months ago

thilokru commented 7 months ago

This patch allows notebooks to capture the output of QViewKit, most notably the point picker.

The following snippet captures the output of the window:

process = qkit.gui.plot.plot.plot(qkit.fid.get(UUID), live=False)
import time
while process.poll() is None:
    time.sleep(0.1)
child_output = process.stdout.readlines()

This can then be used to extract the saved points for further analysis, massively increasing user comfort.