[Numpy-discussion] Which NumPy/Numpy/numpy spelling?

Benjamin Root ben.v.root at gmail.com
Mon Aug 29 13:47:46 EDT 2016


There was similar discussion almost two years ago with respect to
capitalization of matplotlib in prose. Most of the time, it was lower-case
in our documentation, but then the question was if it should be upper-case
at the beginning of the sentence... or should it always be upper-cased like
a proper noun. I don't think a clear consensus was reached, but I ended up
treating it as a proper noun in my book.

I am also pretty sure I used "NumPy" in most places, even for "NumPy
arrays", which still looks weird to me when I go back over my book.

Ben Root


On Mon, Aug 29, 2016 at 12:56 PM, <josef.pktd at gmail.com> wrote:

> https://mail.scipy.org/pipermail/scipy-user/2010-June/025756.html
>
> "NumPy and SciPy to refer to the projects. numpy and scipy to refer to
> the packages, specifically. When in doubt, use the former."
>
> I thought there was also another discussion about capital letters, but
> I don't find it.
>
> Josef
>
>
> On Mon, Aug 29, 2016 at 9:22 AM, Bartosz Telenczuk <mail at telenczuk.pl>
> wrote:
> > Hi,
> >
> > I would not mind any choice as long as it's consistent.
> >
> > I agree that using all-lowercase spelling may avoid some common errors.
> However,
> > PEP8 requires all module/package names to be lower case [1].  If we
> force the
> > name of the library and the corresponding package to be the same, all
> Python
> > libraries would be named in lowercase. This would not be the best choice
> for
> > libraries, which have multi-component names (like NumPy = Numerical
> Python).
> >
> > Note also that both the Wikipedia page [2] and the official NumPy logo
> [3] use
> > "NumPy" spelling.
> >
> > Some other popular [4] libraries use similar dichotomies:
> >
> > - Django - import django
> > - Cython - import cython
> > - PyYAML - import yaml
> > - scikit-learn - import sklearn
> >
> > On the other hand all standard Python libraries are lower-case named.
> >
> > Cheers,
> >
> > Bartosz
> >
> > [1] https://www.python.org/dev/peps/pep-0008/#package-and-module-names
> > [2] https://en.wikipedia.org/wiki/NumPy
> > [3] http://www.numpy.org/_static/numpy_logo.png
> > [4] http://pypi-ranking.info/alltime
> >
> >> On 08/29/2016 07:43 AM, mail at telenczuk.pl wrote:
> >> > What is the official spelling of NumPy/Numpy/numpy?
> >>
> >> IMHO it should be written numpy, because ...
> >>
> >>  >>> import NumPy
> >> Traceback (most recent call last):
> >>    File "<stdin>", line 1, in <module>
> >> ImportError: No module named NumPy
> >>  >>> import Numpy
> >> Traceback (most recent call last):
> >>    File "<stdin>", line 1, in <module>
> >> ImportError: No module named Numpy
> >>  >>> import numpy
> >>  >>>
> >>
> >> Phil
> >> _______________________________________________
> >> NumPy-Discussion mailing list
> >> NumPy-Discussion at scipy.org
> >> https://mail.scipy.org/mailman/listinfo/numpy-discussion
> >
> >
> > _______________________________________________
> > NumPy-Discussion mailing list
> > NumPy-Discussion at scipy.org
> > https://mail.scipy.org/mailman/listinfo/numpy-discussion
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> https://mail.scipy.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20160829/9b15087f/attachment.html>


More information about the NumPy-Discussion mailing list