In the lastest version, "from ngsolve.webgui import Draw" is invalid

More
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
Last edit: 3 years 4 months ago by Younghigh.
More
3 years 4 months ago #3882 by matthiash
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 following user(s) said Thank You: Younghigh
More
3 years 4 months ago #3883 by Younghigh
Thank you very much. It works indeed.
Time to create page: 0.099 seconds