Netgen/NGSolve is a high performance multiphysics finite element software. It is widely used to analyze models from solid mechanics, fluid dynamics and electromagnetics. Due to its flexible Python interface new physical equations and solution algorithms can be implemented easily.
After performing pip install ngsolve jupyter on a fresh venv based on python 3.11.2, running from ngsolve.webgui import Draw on a jupyter notebook fails with message ModuleNotFoundError: No module named 'numpy'.
If I then install numpy with pip install numpy, the same import fails now with ModuleNotFoundError: No module named 'webgui_jupyter_widgets'.
Finally, I do a pip install webgui-jupyter-widgets and everything works.
It would be nice if pip install ngsolve took care of these dependencies.
Both of these are optional dependencies of ngsolve, and are not needed for the core package. If you want webgui visualization, you need to install these 2 packages though as outlined in the docu.
After performing
pip install ngsolve jupyter
on a fresh venv based on python 3.11.2, runningfrom ngsolve.webgui import Draw
on a jupyter notebook fails with messageModuleNotFoundError: No module named 'numpy'
.If I then install numpy with
pip install numpy
, the same import fails now withModuleNotFoundError: No module named 'webgui_jupyter_widgets'
.Finally, I do a
pip install webgui-jupyter-widgets
and everything works.It would be nice if
pip install ngsolve
took care of these dependencies.