-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce pm.config
or rcParams
for global & local config settings
#4657
Comments
What kind of things would go in here? |
|
|
I like it, I often use a default-dict for the |
Sounds like we are in favor of global config settings. Option 1:
|
I'd go with whatever is easier to add and maintain. ArviZ/matplotlib version has no dependencies because it has the reader and rcparams object as part of the codebase. Also not sure what you mean by always global in the matplotlib/arviz one, both can be configured temporarly with context managers. |
After looking at the size of the ArviZ
|
I like the idea. There should also be a way to make temporary changes in a context manager like done in matplotlib |
rcParams
for global config settingspm.config
or rcParams
for global & local config settings
Let me begin with saying that global variables are evil and nobody should be using them.
For things like #4372 it would be really useful to have a place where to make global config changes.
Matplotlib does it and ArviZ too.
Aesara also has a quite powerful
config
implementation that I refactored quite a bit a few months back.Or maybe we don't even need/want a place for global configuration settings?
Anyways it would be great to discuss and figure out what we want!
Update 2022-03-30 + ToDo
We have a general consensus that we want to do this. (I'm updating the title+labels in a second.)
Whoever wants to work on this should
The text was updated successfully, but these errors were encountered: