Forum Message

 

 

We have moved the forum to https://forum.ngsolve.org . This is an archived version of the topics until 05/05/23. All the topics were moved to the new forum and conversations can be continued there. This forum is just kept as legacy to not invalidate old links. If you want to continue a conversation just look for the topic in the new forum.

Notice

The forum is in read only mode.

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

More
2 years 8 months ago - 2 years 8 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: 2 years 8 months ago by Younghigh.
More
2 years 8 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
2 years 8 months ago #3883 by Younghigh
Thank you very much. It works indeed.
Time to create page: 0.123 seconds