cropsinsilico / jupyterlab_nodeeditor

BSD 3-Clause "New" or "Revised" License
6 stars 4 forks source link

Empty value in editor.node_editor.nodes #47

Open yilinxia opened 1 year ago

yilinxia commented 1 year ago

When using "run all cells" in Jupyter Lab cell1

import jupyterlab_nodeeditor as jlne
sample_3 = "./sample_models/sample_3.yml"
photosynthesis =  "./sample_models/photosynthesis.yml"

cell2

editor=jlne.yml_trans([sample_3, photosynthesis],show_instance=True)
editor

cell3

editor_py = editor.node_editor.nodes
editor_py[0].controls[0].editor.editorConfig.keys()

the result is dict_keys([])

Screen-Recording-2023-03-20-at-5

however, if we run the code cell by cell, it will work properly

Screen-Recording-2023-03-20-at-5

yilinxia commented 1 year ago

low priority issue...