Pausing netgen

This is on a Mac with OSX 12.4 and I run Netgen from the command line usually.

In the past (up to v2203 of Netgen I think) I have pause a sequence of Draw commands using simple input() eg

Draw (uplot.components[2].Norm(), mesh,‘v’)
input()

but after installing 2204 I get the message

Tcl_WaitForEvent: Notifier not initialized
zsh: abort netgen mITP_TDNSS.py

and Netgen crashes. Is there a good way to pause a sequence of graphical results?

Thanks for the help!
Peter

Hi Peter,

this problem is certainly caused by the recent decoupling of the core code and the gui.

I can confirm the problem on MacOS, a fix is the following:

add “import netgen.gui” into the py-script, and run the file using “python3 script.py”

Joachim