Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/tum-pbs/PhiFlow
/ force_use_gui
Function
force_use_gui
phi/vis/_vis.py:527–532 ·
view source on GitHub ↗
(gui: Gui)
Source
from the content-addressed store, hash-verified
525
526
@contextmanager
527
def
force_use_gui(gui: Gui):
528
GUI_OVERRIDES.append(gui)
529
try
:
530
yield
None
531
finally:
532
assert GUI_OVERRIDES.pop(-1) is gui
533
534
535
_LOADED_PLOTTING_LIBRARIES: List[PlottingLibrary] = []
Callers
nothing calls this directly
Calls
1
append
Method · 0.80
Tested by
no test coverage detected