jupyter magic

This commit is contained in:
Joachim Schöberl 2018-10-02 11:50:26 +02:00
parent 28f26ae326
commit 9b62d636d9

View File

@ -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()