Basic GUI usageΒΆ

[1]:
import time
from hnn_core.gui.gui import HNNGUI
from ipywidgets import Output
from IPython.display import Javascript

# do not mix this with GUI operations
gui = HNNGUI()
[2]:
gui.compose(return_layout=False)
[3]:
gui.capture(width=1380, height=600)
[4]:
gui.app_layout.left_sidebar.selected_index = 2
[5]:
gui.capture()

Now let’s click the β€œRun” button to launch the simulation.

[6]:
gui.run_button.click()

You can observe the simulation results at the right side of the GUI:

[7]:
gui.capture()
[8]:
Javascript(gui.run_notebook_cells())
[8]: