Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 255
Resetting default GMT parameters - pygmt.config #486
Copy link
Copy link
Open
Labels
feature requestNew feature wantedNew feature wantedhelp wantedHelping hands are appreciatedHelping hands are appreciatedlongtermLong standing issues that need to be resolvedLong standing issues that need to be resolvedupstreamBug or missing feature of upstream core GMTBug or missing feature of upstream core GMT
Description
Activity
Metadata
Metadata
Assignees
Labels
feature requestNew feature wantedNew feature wantedhelp wantedHelping hands are appreciatedHelping hands are appreciatedlongtermLong standing issues that need to be resolvedLong standing issues that need to be resolvedupstreamBug or missing feature of upstream core GMTBug or missing feature of upstream core GMT
Description of the desired feature
The
pygmt.configclass/context manager allows the user to permanently or temporarily override default GMT config parameters. If a parameter is set permanently (particularly in a notebook), it would be useful to be able to reset back to the default without having to reset the kernel / usepygmt.configas a context manager. Motivated by #482 (comment)Are you willing to help implement and maintain this feature? Yes
I've been able to override and reset everything myself by terminating and restarting the global session:
but this is obviously not ideal, and I fear this may have unintended consequences of which I'm ignorant. I see this feature more as something to facilitate figure development in a notebook, but not so much for finalised figure scripts/notebooks, so it's perhaps not a huge issue?
Ideal usage would be something like:
I'm still familiarising myself with the inner workings, so I apologise if I've missed/misunderstood something important.