[Numpy-discussion] NumPy-Discussion Digest, Vol 65, Issue 165

Jeffrey Starn jjstarn@usgs....
Wed Feb 22 07:56:04 CST 2012


Good for us Feds!  (But I'm sure some people will think it's a waste of 
money)  Not sure how that impacts our building here, but actually the 
landscaping is not too bad considering where we are.  I don't know what's 
native in our front planting. 

---------------------------------------------------------------------------------------------------------

Jeff Starn, Groundwater Specialist
U.S. Geological Survey
101 Pitkin Street
East Hartford, CT 06108
(860) 291-6746
jjstarn@usgs.gov

"Our observation of the planets' regular motion was the first triumph of 
empirical science over irrational dogma.  We named them after the gods 
just to be safe."
--Jon Stewart

---------------------------------------------------------------------------------------------------------



From:
numpy-discussion-request@scipy.org
To:
numpy-discussion@scipy.org
Date:
02/22/2012 08:52 AM
Subject:
NumPy-Discussion Digest, Vol 65, Issue 165
Sent by:
numpy-discussion-bounces@scipy.org



Send NumPy-Discussion mailing list submissions to
                 numpy-discussion@scipy.org

To subscribe or unsubscribe via the World Wide Web, visit
                 http://mail.scipy.org/mailman/listinfo/numpy-discussion
or, via email, send a message with subject or body 'help' to
                 numpy-discussion-request@scipy.org

You can reach the person managing the list at
                 numpy-discussion-owner@scipy.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of NumPy-Discussion digest..."


Today's Topics:

   1. Where is arrayobject.h? (Neal Becker)
   2. Re: Where is arrayobject.h? (V. Armando Sol?)
   3. Re: Proposed Roadmap Overview (Gael Varoquaux)
   4. Live coding demonstration (alan@ajackson.org)
   5. Re: Live coding demonstration (Flavio Coelho)
   6. Re: Proposed Roadmap Overview (Neal Becker)
   7. Re: Proposed Roadmap Overview (Perry Greenfield)
   8. Re: Live coding demonstration (Fahredd?n Basegmez)


----------------------------------------------------------------------

Message: 1
Date: Tue, 21 Feb 2012 13:26:17 -0500
From: Neal Becker <ndbecker2@gmail.com>
Subject: [Numpy-discussion] Where is arrayobject.h?
To: numpy-discussion@scipy.org
Message-ID: <ji0nka$doe$1@dough.gmane.org>
Content-Type: text/plain; charset="ISO-8859-1"

What is the correct way to find the installed location of arrayobject.h?

On fedora, I had been using:
(via scons):

import distutils.sysconfig
PYTHONINC = distutils.sysconfig.get_python_inc()
PYTHONLIB = distutils.sysconfig.get_python_lib(1)

NUMPYINC = PYTHONLIB + '/numpy/core/include'

But on ubuntu, this fails.  It seems numpy was installed into 
/usr/local/lib/..., while PYTHONLIB expands to 
/usr/lib/python2.7/dist-packages.

Is there a universal method?



------------------------------

Message: 2
Date: Tue, 21 Feb 2012 19:31:55 +0100
From: "V. Armando Sol?" <sole@esrf.fr>
Subject: Re: [Numpy-discussion] Where is arrayobject.h?
To: Discussion of Numerical Python <numpy-discussion@scipy.org>
Message-ID: <4F43E31B.3000802@esrf.fr>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 21/02/2012 19:26, Neal Becker wrote:
> What is the correct way to find the installed location of arrayobject.h?
>
> On fedora, I had been using:
> (via scons):
>
> import distutils.sysconfig
> PYTHONINC = distutils.sysconfig.get_python_inc()
> PYTHONLIB = distutils.sysconfig.get_python_lib(1)
>
> NUMPYINC = PYTHONLIB + '/numpy/core/include'
>
> But on ubuntu, this fails.  It seems numpy was installed into
> /usr/local/lib/..., while PYTHONLIB expands to 
/usr/lib/python2.7/dist-packages.
>
> Is there a universal method?
>
>

I use:

import numpy
numpy.get_include()

If that is universal I cannot tell.

Armando




------------------------------

Message: 3
Date: Tue, 21 Feb 2012 23:18:53 +0100
From: Gael Varoquaux <gael.varoquaux@normalesup.org>
Subject: Re: [Numpy-discussion] Proposed Roadmap Overview
To: Discussion of Numerical Python <numpy-discussion@scipy.org>
Message-ID: <20120221221853.GB13483@phare.normalesup.org>
Content-Type: text/plain; charset=us-ascii

On Sun, Feb 19, 2012 at 05:44:27AM -0500, David Warde-Farley wrote:
> I think the comments about the developer audience NumPy will attract are 
important. There may be lots of C++ developers out there, but the 
intersection of (truly competent in C++) and (likely to involve oneself in 
NumPy development) may well be quite small.

That's a very valid concern. It is reminiscent of a possible cause to our
lack of contributors to Mayavi: contributing to Mayavi requires knowing
VTK. One of the major benefits of Mayavi is that it makes it is to use
the power of VTK without understanding it well. The intersection of the
people interested in using Mayavi and able to contribute to it is almost
empty.

This is stricking to me, because I know a lot of who know VTK well. Most
of them couldn't care less for Mayavi: they are happy coding directly in
VTK in C++. This is also a reason why I don't code UIs any more: I simply
cannot find the resource to maintain them in proportion with the number
of users that they garner. A sad statement.

Gael


------------------------------

Message: 4
Date: Tue, 21 Feb 2012 20:31:27 -0600
From: <alan@ajackson.org>
Subject: [Numpy-discussion] Live coding demonstration
To: numpy-discussion@scipy.org
Message-ID: <20120221203127.3b7d845d@ajackson.org>
Content-Type: text/plain; charset=US-ASCII

This is the sort of programming environment I would love to have in
python.


http://flowingdata.com/2012/02/20/live-coding-and-inventing-on-principle/

-- 
-----------------------------------------------------------------------
| Alan K. Jackson            | To see a World in a Grain of Sand      |
| alan@ajackson.org          | And a Heaven in a Wild Flower,         |
| www.ajackson.org           | Hold Infinity in the palm of your hand |
| Houston, Texas             | And Eternity in an hour. - Blake       |
-----------------------------------------------------------------------


------------------------------

Message: 5
Date: Wed, 22 Feb 2012 09:34:27 -0200
From: Flavio Coelho <fccoelho@gmail.com>
Subject: Re: [Numpy-discussion] Live coding demonstration
To: Discussion of Numerical Python <numpy-discussion@scipy.org>
Message-ID:
 <CAAbyzbQRGg1ukD9aBBBshPJx-rTnc1dagFiYTkSofBFe=MHTVw@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Shouldn't be hard to implement as a set of plugins to an editor.
Hope someone starts such a project.



On Wed, Feb 22, 2012 at 00:31, <alan@ajackson.org> wrote:

> This is the sort of programming environment I would love to have in
> python.
>
>
> 
http://flowingdata.com/2012/02/20/live-coding-and-inventing-on-principle/
>
> --
> -----------------------------------------------------------------------
> | Alan K. Jackson            | To see a World in a Grain of Sand      |
> | alan@ajackson.org          | And a Heaven in a Wild Flower,         |
> | www.ajackson.org           | Hold Infinity in the palm of your hand |
> | Houston, Texas             | And Eternity in an hour. - Blake       |
> -----------------------------------------------------------------------
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>



-- 
Fl?vio Code?o Coelho
================
+55(21) 3799-5567
Professor
Escola de Matem?tica Aplicada
Funda??o Get?lio Vargas
Rio de Janeiro - RJ
Brasil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://mail.scipy.org/pipermail/numpy-discussion/attachments/20120222/46382d84/attachment-0001.html 


------------------------------

Message: 6
Date: Wed, 22 Feb 2012 07:25:10 -0500
From: Neal Becker <ndbecker2@gmail.com>
Subject: Re: [Numpy-discussion] Proposed Roadmap Overview
To: numpy-discussion@scipy.org
Message-ID: <ji2mr7$9tq$1@dough.gmane.org>
Content-Type: text/plain; charset="ISO-8859-1"

It's great advice to say 

avoid using new

instead rely on scope and classes such as std::vector.

I just want to point out, that sometimes objects must outlive scope.

For those cases, std::shared_ptr can be helpful.



------------------------------

Message: 7
Date: Wed, 22 Feb 2012 08:44:27 -0500
From: Perry Greenfield <perry@stsci.edu>
Subject: Re: [Numpy-discussion] Proposed Roadmap Overview
To: Discussion of Numerical Python <numpy-discussion@scipy.org>
Message-ID: <4F2D80E8-6534-4997-A216-3BB3C338F506@stsci.edu>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

I, like Travis, have my worries about C++. But if those actually doing 
the work (and particularly the subsequent support) feel it is the best 
language for implementation, I can live with that.

I particularly like the incremental and conservative approach to 
introducing C++ that was proposed by Mark. What I would like to stress 
in doing this that all along that process, extensive testing is 
performed (preferably with some build-bot process) to ensure that 
whatever C++ features are being introduced are fully portable and 
don't present intractable distribution issues. Whatever we do, we 
don't want to go far down that road only to find out that there is no 
good solution in that regard with certain platforms.

We are particularly sensitive to this issue since we distribute our 
software, and anything that makes installation of numpy problematic is 
a very serious issue for us. It has to be an easy install on all 
common platforms. That is one thing C allowed, despite all its flaws, 
which is near universal installation advantages over any other 
language available. If the appropriate subset of C++ can achieve that, 
great. But it has to be proved continuously as it is incrementally 
adopted. (I'm not much persuaded by comments like "my experience has 
shown it not to be a problem")

Is there any disagreement with this?

It's less clear to me what to do about more unusual platforms. It 
seems to me that some sort of testing against those that may prove 
important in the future (e.g., gpus?) will be needed, but how to do 
this is not clear to me.

Perry


------------------------------

Message: 8
Date: Wed, 22 Feb 2012 08:51:51 -0500
From: Fahredd?n Basegmez <mangabasi@gmail.com>
Subject: Re: [Numpy-discussion] Live coding demonstration
To: Discussion of Numerical Python <numpy-discussion@scipy.org>
Message-ID:
 <CAE5NFOLeTi+FaPtZy+yCDdtQ1miH6LUY6pX3dMq2oP1QA4yK6g@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

I have been working on an application somehow similar to his approach.
Instead of trying to explain what it is I will let you see it yourselves.

http://www.youtube.com/watch?v=rQUW5BvdIkc&list=UUiomLkTUHKpZohYYfj1WsMg&index=7&feature=plcp

http://www.youtube.com/watch?v=NjpUmSfo3mY&list=UUiomLkTUHKpZohYYfj1WsMg&index=6&feature=plcp

http://www.youtube.com/watch?v=K1pdoLi6UPc&list=UUiomLkTUHKpZohYYfj1WsMg&index=9&feature=plcp

http://www.youtube.com/watch?v=_y1nWiIoKk8&list=UUiomLkTUHKpZohYYfj1WsMg&index=3&feature=plcp


Fahri



On Wed, Feb 22, 2012 at 6:34 AM, Flavio Coelho <fccoelho@gmail.com> wrote:

> Shouldn't be hard to implement as a set of plugins to an editor.
> Hope someone starts such a project.
>
>
>
>
> On Wed, Feb 22, 2012 at 00:31, <alan@ajackson.org> wrote:
>
>> This is the sort of programming environment I would love to have in
>> python.
>>
>>
>> 
http://flowingdata.com/2012/02/20/live-coding-and-inventing-on-principle/
>>
>> --
>> -----------------------------------------------------------------------
>> | Alan K. Jackson            | To see a World in a Grain of Sand      |
>> | alan@ajackson.org          | And a Heaven in a Wild Flower,         |
>> | www.ajackson.org           | Hold Infinity in the palm of your hand |
>> | Houston, Texas             | And Eternity in an hour. - Blake       |
>> -----------------------------------------------------------------------
>> _______________________________________________
>> NumPy-Discussion mailing list
>> NumPy-Discussion@scipy.org
>> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>>
>
>
>
> --
> Fl?vio Code?o Coelho
> ================
> +55(21) 3799-5567
> Professor
> Escola de Matem?tica Aplicada
> Funda??o Get?lio Vargas
> Rio de Janeiro - RJ
> Brasil
>
>
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://mail.scipy.org/pipermail/numpy-discussion/attachments/20120222/619a2ee2/attachment.html 


------------------------------

_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


End of NumPy-Discussion Digest, Vol 65, Issue 165
*************************************************


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20120222/7ecea990/attachment-0001.html 


More information about the NumPy-Discussion mailing list