- Thank you received: 0
In the lastest version, "from ngsolve.webgui import Draw" is invalid
3 years 4 months ago - 3 years 4 months ago #3881
by Younghigh
Dear all,
I have updated my NGSolve to the lastest version, v6.2.2104, but I also found that "from ngsolve.webgui import Draw" is invalid if using jupyter notebook to run my programs. How to fix it?
PS: If I run "from ngsolve.webgui import Draw", the followings will appear:
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-1-d9f4e5d8a8c9> in <module>
1 # import netgen.gui
2 from ngsolve import *
----> 3 from ngsolve.webgui import Draw
4 from netgen.geom2d import SplineGeometry
C:\Program Files\ngsolve-v6.2.2104\lib\site-packages\ngsolve\webgui.py in <module>
5 import os
6
----> 7 from webgui_jupyter_widgets import BaseWebGuiScene, encodeData, WebGuiDocuWidget
8 import webgui_jupyter_widgets.widget as wg
9
ModuleNotFoundError: No module named 'webgui_jupyter_widgets'
Best,
Di Yang
I have updated my NGSolve to the lastest version, v6.2.2104, but I also found that "from ngsolve.webgui import Draw" is invalid if using jupyter notebook to run my programs. How to fix it?
PS: If I run "from ngsolve.webgui import Draw", the followings will appear:
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-1-d9f4e5d8a8c9> in <module>
1 # import netgen.gui
2 from ngsolve import *
----> 3 from ngsolve.webgui import Draw
4 from netgen.geom2d import SplineGeometry
C:\Program Files\ngsolve-v6.2.2104\lib\site-packages\ngsolve\webgui.py in <module>
5 import os
6
----> 7 from webgui_jupyter_widgets import BaseWebGuiScene, encodeData, WebGuiDocuWidget
8 import webgui_jupyter_widgets.widget as wg
9
ModuleNotFoundError: No module named 'webgui_jupyter_widgets'
Best,
Di Yang
Last edit: 3 years 4 months ago by Younghigh.
3 years 4 months ago #3882
by matthiash
Replied by matthiash on topic In the lastest version, "from ngsolve.webgui import Draw" is invalid
Hi Di Yang,
The webgui was outsourced into a separate repository. Thus, the installation instructions to use it changed slightly, have a look here:
docu.ngsolve.org/latest/i-tutorials/index.html#installation
Best,
Matthias
The webgui was outsourced into a separate repository. Thus, the installation instructions to use it changed slightly, have a look here:
docu.ngsolve.org/latest/i-tutorials/index.html#installation
Best,
Matthias
The following user(s) said Thank You: Younghigh
Time to create page: 0.099 seconds