Ricardo Wurmus <ricardo.wur...@mdc-berlin.de> skribis: > the attached patch adds python{,2}-statsmodels to statistics.scm. Note > that this depends on my previous patch adding patsy to the same module.
Hmm I lost track of patsy in my inbox. I’ll check afterwards. > From 33ddc045065722a0bac9b28ad909e838b169d7cb Mon Sep 17 00:00:00 2001 > From: Ricardo Wurmus <ricardo.wur...@mdc-berlin.de> > Date: Tue, 13 Oct 2015 13:28:58 +0200 > Subject: [PATCH 1/2] gnu: Add python-statsmodels. > > * gnu/packages/statistics.scm (python-statsmodels, python2-statsmodels): > New variables. LGTM. > + (add-after 'unpack 'set-matplotlib-backend-to-agg > + (lambda _ > + ;; Set the matplotlib backend to Agg to avoid problems using the > + ;; GTK backend without a display. > + (substitute* (find-files "statsmodels/graphics/tests" "\\.py") > + (("import matplotlib\\.pyplot as plt" line) > + (string-append "import matplotlib;matplotlib.use('Agg');" > + line))) This looks good. Should we eventually change Matplotlib itself to use this back-end by default? What’s at stake exactly? Thanks! Ludo’.