Skip to content

Update Docker image to v4 #5323

@michaelosthege

Description

@michaelosthege

As discussed in the meeting earlier today, it is now time to update the Docker image: https://hub.docker.com/u/pymc

Short-term goals

with pymc.Model() as pmodel:
    pymc.Normal()
fp = pathlib.Path("model.pdf")
graph = pymc.model_to_graphviz(pmodel)
graph.render(format="pdf", filename=str(fp))
assert fp.exists()

Simplifications/Constraints

  • Python minor versions don't matter much these days, shall we build it for just 3.9 for now?
  • We'll want a "latest" build and one per release? For 4.0.0b1 that'll be a manually built one, but for upcoming ones we can automate it?

Tagging @canyon289 @AustinRochford @bwengals who have relevant insight.

I can also contribute a (stripped-down) environment.yml to start from 👇

Known limitations:

  • Suffers from NumPy C-API warning
  • Graphviz/pydot install to the degree that pm.model_to_graphviz() doesn't raise, but rendering to fixes crashes.
channels:
- defaults
- conda-forge
dependencies:
- conda-build
- libblas
- mkl-service
- numpy>=1.15.0
- pip
# To fix pydot/graphviz (?)
- pango
- pydot
# Limit graphviz upper version because of https://stackoverflow.com/a/69997168/4473230
- python-graphviz<=0.18
- scipy>=1.2.0
# To be discussed:
- jupyterlab
- statsmodels
- watermark
- pip:
  - matplotlib>=3.*
  - pandas>=1.*
  # PyMC installs more reliably with pip
  # as long as important dependencies are installed with conda already
  - git+https://github.com/pymc-devs/pymc@9d4691c4ceaa18dd50081db32f38fd1310359d48
  # To be discussed:
  - scikit-learn
  - openpyxl

When this issue is dealt with we can also close #3160 + #4386 as fixed and wontfix respectively.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions