[Numpy-discussion] [SciPy-Dev] Good-bye, sort of (John Hunter)

Joshua Holbrook josh.holbrook at gmail.com
Sat Aug 14 16:02:52 EDT 2010


On Fri, Aug 13, 2010 at 3:48 PM,  <josef.pktd at gmail.com> wrote:
> On Fri, Aug 13, 2010 at 5:11 PM, Joshua Holbrook
> <josh.holbrook at gmail.com> wrote:
>>> Cause honestly, If I could dump everything in one file and be able to
>>> use it everywhere.
>>
>> ...I could.
>>
>> Sorry.
>
> The main thing I was missing in matlab are namespaces, everything the
> equivalent of
> form numpy import *
> form pylab import *
> from scipy import *
> from all_my_other_packages import *
>
> So, for a while I put many functions in one file and imported them as
> function handles.
>
> I liked that I could edit a plot interactively and save as script.
> This saved me a lot of time reading and figuring out the docs.
> The new style classes in matlab look almost like python, but I haven't
> worked with them yet.
>
> Josef
>
>
>>
>> --Josh
>>
>> On Fri, Aug 13, 2010 at 1:09 PM, Joshua Holbrook
>> <josh.holbrook at gmail.com> wrote:
>>> Yeah, I don't really like it either. Is there a good way to put
>>> multiple global functions in a file without matlab getting upset?
>>> Cause honestly, If I could dump everything in one file and be able to
>>> use it everywhere.
>>>
>>> --Josh
>>>
>>> On Fri, Aug 13, 2010 at 12:59 PM, John Hunter <jdh2358 at gmail.com> wrote:
>>>> On Fri, Aug 13, 2010 at 3:41 PM, Benjamin Root <ben.root at ou.edu> wrote:
>>>>> @Josh: Awesome name.  Very fitting...
>>>>>
>>>>> Another thing that I really love about matplotlib that drove me nuts in
>>>>> Matlab was being unable to use multiple colormaps in the same figure.
>>>>
>>>> Funny -- this was one of the *first* things I thought about when
>>>> writing mpl.  That limitation drove me nuts too.
>>>>
>>>> And while we're dissing matlab, the one-function-per-file development
>>>> process that matlab seems to inspire (I did it too) is hard to fathom
>>>> in retrospect.
>>>>
>>>> http://github.com/jesusabdullah/methlabs/blob/master/modules/extra/elemsof.m
>>>>
>>>> JDH
>>>> _______________________________________________
>>>> NumPy-Discussion mailing list
>>>> NumPy-Discussion at scipy.org
>>>> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>>>>
>>>
>> _______________________________________________
>> NumPy-Discussion mailing list
>> NumPy-Discussion at scipy.org
>> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>

> So, for a while I put many functions in one file and imported them as
function handles.

Ooh! How do you do that?

--Josh



More information about the NumPy-Discussion mailing list