Setting SimNIBS up in Spyder (Advanced)¶
It is also possible to set up SimNIBS in the Spyder environment.
If you don’t have Spyder installed yet, download it and follow the installation instructions.
In Spyder Tools–>Preferences go to the Python interpreter tab to select the python interpreter of SimNIBS.

It is located in the simnibs_env subdirectory of the SimNIBS installation folder:

Afterwards, start a new console in Spyder. This will now invoke the python interpreter of SimNIBS, and create an error message that states which packages need to be added to the SimNIBS installation:

As last step, add these packages to the SimNIBS installation by running the following in a terminal window (the stated version numbers may need to be updated):
simnibs_python -m pip install spyder-kernels==3.0.*
Starting again a new console in Spyder and importing SimNIBS should now work without errors:
import simnibs print(simnibs.__version__)