mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
jupyter magic
This commit is contained in:
parent
28f26ae326
commit
9b62d636d9
@ -11,5 +11,12 @@ def StartGUI():
|
||||
win.tk.eval('load "'+netgen._netgen_lib_dir.replace('\\','/')+'/libgui[info sharedlibextension]" gui')
|
||||
win.tk.eval( netgen.libngpy._meshing._ngscript)
|
||||
|
||||
try:
|
||||
from IPython import get_ipython
|
||||
ipython = get_ipython()
|
||||
ipython.magic('gui tk')
|
||||
except:
|
||||
pass
|
||||
|
||||
if not netgen.libngpy._meshing._netgen_executable_started:
|
||||
StartGUI()
|
||||
|
Loading…
Reference in New Issue
Block a user