jupyter notebook's kernel keeps dying when using dearpygui

150 Views Asked by At
  1. Just installed dearpygui 1.8.0 module in a proper environment.
  2. Then I ran the first step's code from: https://dearpygui.readthedocs.io/en/latest/tutorials/first-steps.html
  3. here is the code :
import dearpygui.dearpygui as dpg

dpg.create_context()
dpg.create_viewport(title='Custom Title', width=600, height=300)

with dpg.window(label="Example Window"):
    dpg.add_text("Hello, world")
    dpg.add_button(label="Save")
    dpg.add_input_text(label="string", default_value="Quick brown fox")
    dpg.add_slider_float(label="float", default_value=0.273, max_value=1)

dpg.setup_dearpygui()
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()
  1. returns the error :
The kernel for Documents ... /DearPyGui/Studies&Tries.ipynb appears to have died. It will restart automatically.

  1. The same code ran directly from my python installation works well.
  2. Command:
(dpg_py310) amen@ubu:~$ python dpg01.py

  1. reinstalling dearpygui 1.8.0 gives the same result
  2. donwngrading to dearpygui 1.7.3 makes no change
  3. no solution found on the net

Need help

0

There are 0 best solutions below