File tree Expand file tree Collapse file tree 4 files changed +18
-2
lines changed Expand file tree Collapse file tree 4 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,13 @@ Or via conda-forge:
78
78
79
79
conda install -c conda-forge pymc3
80
80
81
+ Plotting is done using `ArviZ <https://arviz-devs.github.io/arviz/ >`__
82
+ which may be installed separately, or along with PyMC3:
83
+
84
+ ::
85
+
86
+ pip install pymc3[plots]
87
+
81
88
The current development branch of PyMC3 can be installed from GitHub, also using ``pip ``:
82
89
83
90
::
Original file line number Diff line number Diff line change
1
+ """PyMC3 Plotting.
2
+
3
+ Plots are delegated to the ArviZ library, a general purpose library for
4
+ "exploratory analysis of Bayesian models." See https://arviz-devs.github.io/arviz/
5
+ for details on plots.
6
+ """
1
7
try :
2
8
import arviz as az
3
9
except ImportError : # arviz is optional, throw exception when used
@@ -8,7 +14,7 @@ def __init__(self, attr):
8
14
9
15
def __call__ (self , * args , ** kwargs ):
10
16
raise ImportError (
11
- f "ArviZ is not installed. In order to use `{ self .attr } `:\n pip install arviz"
17
+ "ArviZ is not installed. In order to use `{0 .attr}`:\n pip install arviz" . format ( self )
12
18
)
13
19
14
20
class _ArviZ :
Original file line number Diff line number Diff line change
1
+ arviz
1
2
bokeh >= 0.12.13
2
3
CommonMark == 0.5.4
3
4
graphviz >= 0.8.3
4
5
h5py >= 2.7.0
5
6
ipython
6
7
Keras >= 2.0.8
7
- matplotlib >= 1.5.0
8
8
nbsphinx >= 0.2.13
9
9
nose >= 1.3.7
10
10
nose-parameterized == 0.6.0
Original file line number Diff line number Diff line change @@ -60,5 +60,8 @@ def get_version():
60
60
include_package_data = True ,
61
61
classifiers = classifiers ,
62
62
install_requires = install_reqs ,
63
+ extras_require = {
64
+ "plots" : ["arviz" ],
65
+ }
63
66
tests_require = test_reqs ,
64
67
test_suite = 'nose.collector' )
You can’t perform that action at this time.
0 commit comments