pygmt.set_display

pygmt.set_display(mode, dpi=200)[source]

Set the display mode.

Parameters
  • mode (str) – Choose from “notebook” (for inline display in Jupyter notebook) or “external” (for displaying preview using the external viewer).

  • dpi (int) – Set the default DPI (dots-per-inch) used for PNG image previews that are inserted into the notebook.