I’m trying to execute code inside a jupyter kernel in a Qt application. I have the below snipplet that is supposed to asynchronously run the code and then print the result With the above I get the following output so trying to adjust the code according to an example from qasync to something like will result in the following exception