We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
arviz-darkgrid not working in example from quickstart
This command is not being recognized.
I installed the program from github on Mac OS 10.13 using macports Python3.5 

az.style.use('arviz-darkgrid')

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `setup.py`
Content:
```
1 import codecs
2 import shutil
3 import os
4 import re
5 
6 import setuptools
7 from setuptools import setup, find_packages
8 from setuptools.command.install import install
9 from setuptools.command.develop import develop
10 
11 
12 PROJECT_ROOT = os.path.dirname(os.path.realpath(__file__))
13 REQUIREMENTS_FILE = os.path.join(PROJECT_ROOT, 'requirements.txt')
14 README_FILE = os.path.join(PROJECT_ROOT, 'README.md')
15 VERSION_FILE = os.path.join(PROJECT_ROOT, 'arviz', '__init__.py')
16 
17 
18 # Ensure matplotlib dependencies are available to copy
19 # styles over
20 setuptools.dist.Distribution().fetch_build_eggs(['matplotlib>=3.0'])
21 
22 def get_requirements():
23     with codecs.open(REQUIREMENTS_FILE) as buff:
24         return buff.read().splitlines()
25 
26 
27 def get_long_description():
28     with codecs.open(README_FILE, 'rt') as buff:
29         return buff.read()
30 
31 
32 def copy_styles():
33     from matplotlib import get_configdir
34     sd = os.path.join(get_configdir(), "stylelib")
35     source = os.path.dirname(os.path.realpath(__file__))
36     lsd = os.path.join(source, 'arviz', 'plots', 'styles')
37     styles = [f for f in os.listdir(lsd)]
38     if not os.path.isdir(sd):
39         os.makedirs(sd)
40     for s in styles:
41         shutil.copy(os.path.join(lsd, s), os.path.join(sd, s))
42 
43 
44 class DevelopStyles(develop):
45     def run(self):
46         copy_styles()
47         develop.run(self)
48 
49 class InstallStyles(install):
50     def run(self):
51         copy_styles()
52         install.run(self)
53 
54 def get_version():
55     lines = open(VERSION_FILE, 'rt').readlines()
56     version_regex = r"^__version__ = ['\"]([^'\"]*)['\"]"
57     for line in lines:
58         mo = re.search(version_regex, line, re.M)
59         if mo:
60             return mo.group(1)
61     raise RuntimeError('Unable to find version in %s.' % (VERSION_FILE,))
62 
63 setup(
64     name='arviz',
65     version=get_version(),
66     description='Exploratory analysis of Bayesian models',
67     author='ArviZ Developers',
68     url="http://github.com/arviz-devs/arviz",
69     packages=find_packages(),
70     install_requires=get_requirements(),
71     long_description=get_long_description(),
72     long_description_content_type='text/markdown',
73     include_package_data=True,
74     cmdclass={
75         'develop': DevelopStyles,
76         'install': InstallStyles,
77     },
78 )
79
```

Path: `arviz/__init__.py`
Content:
```
1 # pylint: disable=wildcard-import,invalid-name,wrong-import-position
2 """ArviZ is a library for exploratory analysis of Bayesian models."""
3 __version__ = "0.2.1"
4 
5 import logging
6 from matplotlib.pyplot import style
7 
8 # Configure logging before importing arviz internals
9 _log = logging.getLogger("arviz")
10 
11 if not logging.root.handlers:
12     handler = logging.StreamHandler()
13     _log.setLevel(logging.INFO)
14     _log.addHandler(handler)
15 
16 from .data import *
17 from .plots import *
18 from .stats import *
19
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/arviz/__init__.py b/arviz/__init__.py
--- a/arviz/__init__.py
+++ b/arviz/__init__.py
@@ -2,9 +2,15 @@
 """ArviZ is a library for exploratory analysis of Bayesian models."""
 __version__ = "0.2.1"
 
+import os
 import logging
 from matplotlib.pyplot import style
 
+# add ArviZ's styles to matplotlib's styles
+arviz_style_path = os.path.join(os.path.dirname(__file__), "plots", "styles")
+style.core.USER_LIBRARY_PATHS.append(arviz_style_path)
+style.core.reload_library()
+
 # Configure logging before importing arviz internals
 _log = logging.getLogger("arviz")
 
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,4 @@
 import codecs
-import shutil
 import os
 import re
 
@@ -15,10 +14,6 @@
 VERSION_FILE = os.path.join(PROJECT_ROOT, 'arviz', '__init__.py')
 
 
-# Ensure matplotlib dependencies are available to copy
-# styles over
-setuptools.dist.Distribution().fetch_build_eggs(['matplotlib>=3.0'])
-
 def get_requirements():
     with codecs.open(REQUIREMENTS_FILE) as buff:
         return buff.read().splitlines()
@@ -28,29 +23,6 @@
     with codecs.open(README_FILE, 'rt') as buff:
         return buff.read()
 
-
-def copy_styles():
-    from matplotlib import get_configdir
-    sd = os.path.join(get_configdir(), "stylelib")
-    source = os.path.dirname(os.path.realpath(__file__))
-    lsd = os.path.join(source, 'arviz', 'plots', 'styles')
-    styles = [f for f in os.listdir(lsd)]
-    if not os.path.isdir(sd):
-        os.makedirs(sd)
-    for s in styles:
-        shutil.copy(os.path.join(lsd, s), os.path.join(sd, s))
-
-
-class DevelopStyles(develop):
-    def run(self):
-        copy_styles()
-        develop.run(self)
-
-class InstallStyles(install):
-    def run(self):
-        copy_styles()
-        install.run(self)
-
 def get_version():
     lines = open(VERSION_FILE, 'rt').readlines()
     version_regex = r"^__version__ = ['\"]([^'\"]*)['\"]"
@@ -71,8 +43,4 @@
     long_description=get_long_description(),
     long_description_content_type='text/markdown',
     include_package_data=True,
-    cmdclass={
-        'develop': DevelopStyles,
-        'install': InstallStyles,
-    },
 )

{"golden_diff": "diff --git a/arviz/__init__.py b/arviz/__init__.py\n--- a/arviz/__init__.py\n+++ b/arviz/__init__.py\n@@ -2,9 +2,15 @@\n \"\"\"ArviZ is a library for exploratory analysis of Bayesian models.\"\"\"\n __version__ = \"0.2.1\"\n \n+import os\n import logging\n from matplotlib.pyplot import style\n \n+# add ArviZ's styles to matplotlib's styles\n+arviz_style_path = os.path.join(os.path.dirname(__file__), \"plots\", \"styles\")\n+style.core.USER_LIBRARY_PATHS.append(arviz_style_path)\n+style.core.reload_library()\n+\n # Configure logging before importing arviz internals\n _log = logging.getLogger(\"arviz\")\n \ndiff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -1,5 +1,4 @@\n import codecs\n-import shutil\n import os\n import re\n \n@@ -15,10 +14,6 @@\n VERSION_FILE = os.path.join(PROJECT_ROOT, 'arviz', '__init__.py')\n \n \n-# Ensure matplotlib dependencies are available to copy\n-# styles over\n-setuptools.dist.Distribution().fetch_build_eggs(['matplotlib>=3.0'])\n-\n def get_requirements():\n     with codecs.open(REQUIREMENTS_FILE) as buff:\n         return buff.read().splitlines()\n@@ -28,29 +23,6 @@\n     with codecs.open(README_FILE, 'rt') as buff:\n         return buff.read()\n \n-\n-def copy_styles():\n-    from matplotlib import get_configdir\n-    sd = os.path.join(get_configdir(), \"stylelib\")\n-    source = os.path.dirname(os.path.realpath(__file__))\n-    lsd = os.path.join(source, 'arviz', 'plots', 'styles')\n-    styles = [f for f in os.listdir(lsd)]\n-    if not os.path.isdir(sd):\n-        os.makedirs(sd)\n-    for s in styles:\n-        shutil.copy(os.path.join(lsd, s), os.path.join(sd, s))\n-\n-\n-class DevelopStyles(develop):\n-    def run(self):\n-        copy_styles()\n-        develop.run(self)\n-\n-class InstallStyles(install):\n-    def run(self):\n-        copy_styles()\n-        install.run(self)\n-\n def get_version():\n     lines = open(VERSION_FILE, 'rt').readlines()\n     version_regex = r\"^__version__ = ['\\\"]([^'\\\"]*)['\\\"]\"\n@@ -71,8 +43,4 @@\n     long_description=get_long_description(),\n     long_description_content_type='text/markdown',\n     include_package_data=True,\n-    cmdclass={\n-        'develop': DevelopStyles,\n-        'install': InstallStyles,\n-    },\n )\n", "issue": "arviz-darkgrid not working in example from quickstart\nThis command is not being recognized.\r\nI installed the program from github on Mac OS 10.13 using macports Python3.5 \r\n\r\naz.style.use('arviz-darkgrid')\n", "before_files": [{"content": "import codecs\nimport shutil\nimport os\nimport re\n\nimport setuptools\nfrom setuptools import setup, find_packages\nfrom setuptools.command.install import install\nfrom setuptools.command.develop import develop\n\n\nPROJECT_ROOT = os.path.dirname(os.path.realpath(__file__))\nREQUIREMENTS_FILE = os.path.join(PROJECT_ROOT, 'requirements.txt')\nREADME_FILE = os.path.join(PROJECT_ROOT, 'README.md')\nVERSION_FILE = os.path.join(PROJECT_ROOT, 'arviz', '__init__.py')\n\n\n# Ensure matplotlib dependencies are available to copy\n# styles over\nsetuptools.dist.Distribution().fetch_build_eggs(['matplotlib>=3.0'])\n\ndef get_requirements():\n    with codecs.open(REQUIREMENTS_FILE) as buff:\n        return buff.read().splitlines()\n\n\ndef get_long_description():\n    with codecs.open(README_FILE, 'rt') as buff:\n        return buff.read()\n\n\ndef copy_styles():\n    from matplotlib import get_configdir\n    sd = os.path.join(get_configdir(), \"stylelib\")\n    source = os.path.dirname(os.path.realpath(__file__))\n    lsd = os.path.join(source, 'arviz', 'plots', 'styles')\n    styles = [f for f in os.listdir(lsd)]\n    if not os.path.isdir(sd):\n        os.makedirs(sd)\n    for s in styles:\n        shutil.copy(os.path.join(lsd, s), os.path.join(sd, s))\n\n\nclass DevelopStyles(develop):\n    def run(self):\n        copy_styles()\n        develop.run(self)\n\nclass InstallStyles(install):\n    def run(self):\n        copy_styles()\n        install.run(self)\n\ndef get_version():\n    lines = open(VERSION_FILE, 'rt').readlines()\n    version_regex = r\"^__version__ = ['\\\"]([^'\\\"]*)['\\\"]\"\n    for line in lines:\n        mo = re.search(version_regex, line, re.M)\n        if mo:\n            return mo.group(1)\n    raise RuntimeError('Unable to find version in %s.' % (VERSION_FILE,))\n\nsetup(\n    name='arviz',\n    version=get_version(),\n    description='Exploratory analysis of Bayesian models',\n    author='ArviZ Developers',\n    url=\"http://github.com/arviz-devs/arviz\",\n    packages=find_packages(),\n    install_requires=get_requirements(),\n    long_description=get_long_description(),\n    long_description_content_type='text/markdown',\n    include_package_data=True,\n    cmdclass={\n        'develop': DevelopStyles,\n        'install': InstallStyles,\n    },\n)\n", "path": "setup.py"}, {"content": "# pylint: disable=wildcard-import,invalid-name,wrong-import-position\n\"\"\"ArviZ is a library for exploratory analysis of Bayesian models.\"\"\"\n__version__ = \"0.2.1\"\n\nimport logging\nfrom matplotlib.pyplot import style\n\n# Configure logging before importing arviz internals\n_log = logging.getLogger(\"arviz\")\n\nif not logging.root.handlers:\n    handler = logging.StreamHandler()\n    _log.setLevel(logging.INFO)\n    _log.addHandler(handler)\n\nfrom .data import *\nfrom .plots import *\nfrom .stats import *\n", "path": "arviz/__init__.py"}], "after_files": [{"content": "import codecs\nimport os\nimport re\n\nimport setuptools\nfrom setuptools import setup, find_packages\nfrom setuptools.command.install import install\nfrom setuptools.command.develop import develop\n\n\nPROJECT_ROOT = os.path.dirname(os.path.realpath(__file__))\nREQUIREMENTS_FILE = os.path.join(PROJECT_ROOT, 'requirements.txt')\nREADME_FILE = os.path.join(PROJECT_ROOT, 'README.md')\nVERSION_FILE = os.path.join(PROJECT_ROOT, 'arviz', '__init__.py')\n\n\ndef get_requirements():\n    with codecs.open(REQUIREMENTS_FILE) as buff:\n        return buff.read().splitlines()\n\n\ndef get_long_description():\n    with codecs.open(README_FILE, 'rt') as buff:\n        return buff.read()\n\ndef get_version():\n    lines = open(VERSION_FILE, 'rt').readlines()\n    version_regex = r\"^__version__ = ['\\\"]([^'\\\"]*)['\\\"]\"\n    for line in lines:\n        mo = re.search(version_regex, line, re.M)\n        if mo:\n            return mo.group(1)\n    raise RuntimeError('Unable to find version in %s.' % (VERSION_FILE,))\n\nsetup(\n    name='arviz',\n    version=get_version(),\n    description='Exploratory analysis of Bayesian models',\n    author='ArviZ Developers',\n    url=\"http://github.com/arviz-devs/arviz\",\n    packages=find_packages(),\n    install_requires=get_requirements(),\n    long_description=get_long_description(),\n    long_description_content_type='text/markdown',\n    include_package_data=True,\n)\n", "path": "setup.py"}, {"content": "# pylint: disable=wildcard-import,invalid-name,wrong-import-position\n\"\"\"ArviZ is a library for exploratory analysis of Bayesian models.\"\"\"\n__version__ = \"0.2.1\"\n\nimport os\nimport logging\nfrom matplotlib.pyplot import style\n\n# add ArviZ's styles to matplotlib's styles\narviz_style_path = os.path.join(os.path.dirname(__file__), \"plots\", \"styles\")\nstyle.core.USER_LIBRARY_PATHS.append(arviz_style_path)\nstyle.core.reload_library()\n\n# Configure logging before importing arviz internals\n_log = logging.getLogger(\"arviz\")\n\nif not logging.root.handlers:\n    handler = logging.StreamHandler()\n    _log.setLevel(logging.INFO)\n    _log.addHandler(handler)\n\nfrom .data import *\nfrom .plots import *\nfrom .stats import *\n", "path": "arviz/__init__.py"}]}