arviz-devs / preliz

A tool-box for prior elicitation.
https://preliz.readthedocs.io
Apache License 2.0
73 stars 9 forks source link

Dependencies list for documentation incomplete #462

Closed drsimonmartin closed 1 month ago

drsimonmartin commented 1 month ago

Some of the examples on this page: https://preliz.readthedocs.io/en/latest/examples/observed_space_examples.html fail when using the myBinder.org functionality. It appears to be because pymc and Bambi are not included in the requirements list for the page.

ModuleNotFoundError                       Traceback (most recent call last)
Cell In[2], line 3
      1 import arviz as az
      2 import preliz as pz
----> 3 import pymc as pm
      4 import bambi as bmb
      5 import numpy as np

ModuleNotFoundError: No module named 'pymc'

Suggested fix: add the relevant versions of pymc and Bambi to the requirements list. I'm not sure what the minimum version numbers are for these so have not created a PR

aloctavodia commented 1 month ago

Hi @drsimonmartin thanks for reporting this issue. PyMC and Bambi are optional dependencies we should clarify that in the examples and allow optional imports