hoffstadt / DearPyGui

Dear PyGui: A fast and powerful Graphical User Interface Toolkit for Python with minimal dependencies
https://dearpygui.readthedocs.io/en/latest/
MIT License
12.63k stars 669 forks source link

When execution finishes jupyter notebook hangs/crashes #1462

Closed canDry closed 2 years ago

canDry commented 2 years ago

Version of Dear PyGui

Version: 1.1.1 Operating System: Mint 20.2

My Issue/Question

Trying to run the provided sample in jupyter (v6.4.6) and when you exit it hangs and/or the kernel crashes every time.

import dearpygui.dearpygui as dpg

def save_callback():
    print("Save Clicked")

dpg.create_context()
dpg.create_viewport()
dpg.setup_dearpygui()

with dpg.window(label="Example Window"):
    dpg.add_text("Hello world")
    dpg.add_button(label="Save", callback=save_callback)
    dpg.add_input_text(label="string")
    dpg.add_slider_float(label="float")

dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()

Expected behavior

Execution should exit/return nicely.

Screenshots/Video

Standalone, minimal, complete and verifiable example

canDry commented 2 years ago

Just tried QT5 and it's also acting odd... so I suspect it's a jupyter notebook issue... not dpg.

rikkigouda commented 6 months ago

Hi @canDry - what is the resolution with this issue? I am facing the issue the same way. Jupyter kernel crashes as soon as dearpygui is called.

Could we please reopen this and investigate further? If it is Jupyter's issue - perhaps, could you please add more info surrounding what that issue might be?

Thank you!

canDry commented 6 months ago

Sorry, 2yrs is beyond my recollection of the issue! But, I think instead we ended up using PySimpleGUI. You'll need to open a new issue to get it addressed.

rikkigouda commented 6 months ago

No worries. Thanks for the feedback!

I do need the candlestick setups in dearpygui unfortunately. So it would have helped lots if it worked.