netgen gui python commands

Is is possible to set some of the options in the gui through the Python interface? For example, to turn on “Show edges” for a 1-D mesh? It’s a little annoying to have to go through the gui menu to set this every time.

You can use the ngsolve.internal submodule to set (most of) the options via the visoptions variable, e.g.

visoptions.deformation = 1

is enables the deformation checkbox. I guess viewoptions.drawedges is what you’re looking for.