Getting pygmt running in Jupyter

Okay that was premature - I must have misunderstood what ctypes does, because pygmt will only successfully import when I precede it with:

import ctypes
ctypes.CDLL(r"C:\Users\taschaap\Anaconda3\envs\pygmt\Library\bin\gmt.dll")
import pygmt

What has ctypes done to make pygmt work?

pygmt calls ctypes.CDLL to load the shared library. If ctypes.CDLL can load the gmt library, pygmt should also be able to do that. As your pygmt now works, could your post the output of pygmt.show_versions()?

GMT or PyGMT needs Ghostscript (gswin64c) to convert PS format to other image formats. Perhaps you don’t have Ghostscript installed? You should already have installed it in your pygmt environment, but it’s unclear to me why GMT can’t find it.

Maybe you can download the Ghostscript installer from https://www.ghostscript.com?

Sorry, I don’t have a Windows machine, so can’t test it.