Dear Matthias,
now I can import properly ngsolve.
I still have an issue with the first problem of the tutorial, the Poisson example. I modified the Jupyter notebook as follows:
import netgen,os
netgen_dir = os.path.dirname(netgen.__file__)
os.add_dll_directory(netgen_dir)
os.environ["PATH"] += os.pathsep + netgen_dir
from ngsolve import *
#from netgen.geom2d import unit_square
from netgen.occ import unit_square
from ngsolve.webgui import Draw
but executing Draw (gfu, mesh) I get the following error:
TypeError Traceback (most recent call last)
Cell In [7], line 1 ----> 1 Draw (gfu, mesh)
TypeError: Draw(): incompatible function arguments. The following argument types are supported:
1. (cf: ngsolve.fem.CoefficientFunction, mesh: ngsolve.comp.Mesh, name: str, sd: int = 2, autoscale: bool = True, min: float = 0.0, max: float = 1.0, draw_vol: bool = True, draw_surf: bool = True, reset: bool = False, **kwargs) -> None
2. (gf: ngsolve.comp.GridFunction, sd: int = 2, autoscale: bool = True, min: float = 0.0, max: float = 1.0, **kwargs) -> None
3. (mesh: ngsolve.comp.Mesh, **kwargs) -> None
4. (arg0: object) -> None
Invoked with: <ngsolve.comp.GridFunction object at 0x000001ECA9D6D860>, <ngsolve.comp.Mesh object at 0x000001ECA9C3CDB0>
So essentially I cannot plot the solution.
Thanks a lot in advance and best regards,
Mauro.