guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: python-matplotlib: should it propagate numpy?


From: Ludovic Courtès
Subject: Re: python-matplotlib: should it propagate numpy?
Date: Tue, 08 Dec 2015 18:08:55 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Federico Beffa <address@hidden> skribis:

> On Sun, Dec 6, 2015 at 11:22 PM, Ludovic Courtès <address@hidden> wrote:
>> Federico Beffa <address@hidden> skribis:
>>
>>> Ricardo Wurmus <address@hidden> writes:
>>>
>>>> Hi Guix,
>>>>
>>>> with a profile containing python-2.7.10 and python2-matplotlib I did
>>>> this:
>>>>
>>>> ~~~~~~~~~~~~~~~~~~~~~~~~
>>>> address@hidden:~] $ export
>>>> GI_TYPELIB_PATH="$HOME/.guix-profile/lib/girepository-1.0"
>>>> address@hidden:~] $ export
>>>> PYTHONPATH=$HOME/.guix-profile/lib/python2.7/site-packages
>>>> address@hidden:~] $ python
>>>> Python 2.7.10 (default, Oct  9 2015, 22:48:33)
>>>> [GCC 4.9.3] on linux2
>>>> Type "help", "copyright", "credits" or "license" for more information.
>>>>>>> import matplotlib.pyplot as plt
>>>> Traceback (most recent call last):
>>>>   File "<stdin>", line 1, in <module>
>>>>   File 
>>>> "/home/rwurmus/.guix-profile/lib/python2.7/site-packages/matplotlib-1.4.2-py2.7-linux-x86_64.egg/matplotlib/__init__.py",
>>>>  line 180, in <module>
>>>>     from matplotlib.cbook import is_string_like
>>>>   File 
>>>> "/home/rwurmus/.guix-profile/lib/python2.7/site-packages/matplotlib-1.4.2-py2.7-linux-x86_64.egg/matplotlib/cbook.py",
>>>>  line 33, in <module>
>>>>     import numpy as np
>>>> ImportError: No module named numpy
>>>>>>>
>>>> ~~~~~~~~~~~~~~~~~~~~~~~~
>>>
>>> Yeah, we should propagate numpy really.
>>
>> So, what’s the status of this discussion?  To propagate or not to
>> propagate?  :-)
>
> I just tried out using matplotlib without numpy and it actually works:
>
> --------------------------------------------------
> $ ipython
> Python 3.4.3 (default, Jan  1 1970, 00:00:01)
> Type "copyright", "credits" or "license" for more information.
>
> IPython 3.2.1 -- An enhanced Interactive Python.
> ?         -> Introduction and overview of IPython's features.
> %quickref -> Quick reference.
> help      -> Python's own help system.
> object?   -> Details about 'object', use 'object??' for extra details.
>
> In [1]: import matplotlib.pyplot as plt
>
> In [2]: t = range(5)
>
> In [3]: plt.plot(t, t)
> Out[3]: [<matplotlib.lines.Line2D at 0x7f17b930ccf8>]
>
> In [4]: plt.show()
>
> --------------------------------------------------
>
> Therefore, despite numpy being the standard data crunching base
> format, I don't think we need to propagate it.

OK, sounds reasonable.  Thanks for checking!

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]