I want to distribute a custom matplotlib style sheet, but right now the only way I can think of is uploading it to Gist or some other website and tell my users to manually download it to some configuration directory.
Is there a way to distribute a style sheet as if it were a Python package, or as part of a module? Something easy like pip install mpl_fancy
.
After reading the link from @aloctavodia and consulting the massmutual/mmviz-python GitHub repo, this is what I came up with.
setup.py
Into
my_style.py
I just put a basic example script. Now, my users can install this style withpip install git+https://github.com/me/my-style
!