Is there a way to set global preferences in altair?

Viewed 66

Is there a way to do something like a rc file with Altair?

I currently create an Altair theme at the beginning of my notebooks (to set up plot size and font size, etc.) and then register and enable it.

alt.themes.register('my-chart', my_theme)
alt.themes.enable('my-chart')

What is the best way to refactor this away to a global config file of some sort?

1 Answers
Related