Problem with jupyter notebook on mac

I am trying to install Netgen/NGSolve on my mac os 10.14, and read the tutorials in jupyter notebook. However, when I use the anaconda jupyter it cant find the modules (e.g. netgen). I have tried copying the netgen and ngsolve folders from the site-packages to the pkgs folder in anaconda. When I do that, the kernel dies as soon as I try to import any of the folders.

Do anyone of you have any tips? Have you had similar problems?

NGSolve and anaconda do not yet work well together, please use the NGSolve installer and install jupyter with pip as described here: Interactive NGSolve Tutorial — NGS-Py 6.2.2302 documentation

Best
Christopher

I have now done that, and when I e.g. try to rung poisson.py I get the error
ModuleNotFoundError Traceback (most recent call last)
in
----> 1 import netgen.gui
2 from ngsolve import *
3 from netgen.geom2d import unit_square

ModuleNotFoundError: No module named ‘netgen.gui’

How do I make sure that the packages can be used in jupyter?

You have to set your pythonpath, see here:

https://ngsolve.org/docu/latest/install/gettingstarted.html#mac-os-x

Best
Christopher

sI realized that I did not install using SDK 10.9. However, when I call the cmake step, I get a whole bunch of errors at the “scanning dependencies of target ngcore”, and eventually the message

fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[8]: *** [libsrc/core/CMakeFiles/ngcore.dir/archive.cpp.o] Error 1
make[7]: *** [libsrc/core/CMakeFiles/ngcore.dir/all] Error 2
make[6]: *** [all] Error 2
make[5]: *** [dependencies/src/netgen-stamp/netgen-build] Error 2
make[4]: *** [CMakeFiles/netgen.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [dependencies/Stamp/netgen_project/netgen_project-build] Error 2
make[1]: *** [CMakeFiles/netgen_project.dir/all] Error 2
make: *** [all] Error 2

They seem to all come from the error
“‘operator delete[]’ is unavailable: introduced in macOS 10.12”