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
Hi there~ I tried to make a sample with qiskit-metal version 0.1.5 with below steps.
I created simple python file name as helloworld.py with simple snippets:
Finally, I executed that python scripts by using command python helloworld.py, it works but immediately close GUI after that. I even cannot see the GUI and there is no error logs.
Strange thing is, it works as well with above code snippets with Jupyter notebook. I am wondering why?
How can I solve this problem?
The text was updated successfully, but these errors were encountered:
If you’re running from a script, it might be closing the event loop in QT, the gui framework we use. In Jupiter, the way we automatically set it up is that there is a background asynchronous event that is running and keeping the GUI open. There is a function somewhere in the documentation or if you just google it or ask some AI agent to tell you how to run it from a script so that the event loop runs in the background or blocks the executionSent from my iPhoneOn Jan 22, 2025, at 10:07 AM, dgks0n ***@***.***> wrote:
Hi there~ I tried to make a sample with qiskit-metal version 0.1.5 with below steps.
I created simple python file name as helloworld.py with simple snippets:
from qiskit_metal import MetalGUI
from qiskit_metal import designs
design = designs.DesignPlanar()
design.overwrite_enabled = True
design.chips.main.size.size_x = '11mm'
design.chips.main.size.size_y = '9mm'
gui = MetalGUI(design)
Finally, I executed that python scripts by using command python helloworld.py, it works but immediately close GUI after that. I even cannot see the GUI and there is no error logs.
Strange thing is, it works as well with above code snippets with Jupyter notebook. I am wondering why?
How can I solve this problem?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
Hi there~ I tried to make a sample with
qiskit-metal
version 0.1.5 with below steps.I created simple python file name as
helloworld.py
with simple snippets:Finally, I executed that python scripts by using command
python helloworld.py
, it works but immediately close GUI after that. I even cannot see the GUI and there is no error logs.Strange thing is, it works as well with above code snippets with Jupyter notebook. I am wondering why?
How can I solve this problem?
The text was updated successfully, but these errors were encountered: