From mboxrd@z Thu Jan 1 00:00:00 1970 From: Federico Beffa Subject: Re: [PATCH] Add python-statsmodels. Date: Mon, 19 Oct 2015 18:15:54 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37319) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoD6K-000671-PC for guix-devel@gnu.org; Mon, 19 Oct 2015 12:15:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZoD6J-0005Ne-G1 for guix-devel@gnu.org; Mon, 19 Oct 2015 12:15:56 -0400 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Cc: Guix-devel ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Ricardo Wurmus skribis: >> + (add-after 'unpack 'set-matplotlib-backend-to-agg >> + (lambda _ >> + ;; Set the matplotlib backend to Agg to avoid problems usin= g the >> + ;; GTK backend without a display. >> + (substitute* (find-files "statsmodels/graphics/tests" "\\.p= y") >> + (("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=E2=80=99s at stake exactly? I don't think so. This back-end is only usable to produce files, it can't be used for interactive sessions (which is the key appeal of the numpy/scipy/matplotlib work-flow over C/C++). IMO we should switch to the TkInter back-end which is part of the standard Python Library. It was not available in our python when I did package matplotlib. Regards, Fede