mirror of
https://github.com/NGSolve/netgen.git
synced 2025-04-12 16:17:29 +05:00
fix Tk gui from jupyter
This commit is contained in:
parent
ca3cee02c3
commit
b113ec48ed
@ -30,6 +30,13 @@ def StartGUI():
|
|||||||
|
|
||||||
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
|
||||||
|
|
||||||
def _Redraw(*args, **kwargs):
|
def _Redraw(*args, **kwargs):
|
||||||
if libngpy._meshing._Redraw(*args, **kwargs):
|
if libngpy._meshing._Redraw(*args, **kwargs):
|
||||||
import netgen
|
import netgen
|
||||||
|
Loading…
x
Reference in New Issue
Block a user