mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +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('load "'+netgen._netgen_lib_dir.replace('\\','/')+'/libgui[info sharedlibextension]" gui')
|
||||||
win.tk.eval( netgen.libngpy._meshing._ngscript)
|
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:
|
if not netgen.libngpy._meshing._netgen_executable_started:
|
||||||
StartGUI()
|
StartGUI()
|
||||||
|
Loading…
Reference in New Issue
Block a user