Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #86678 > unrolled thread

Question about python package numpy

Started byfl <rxjwg98@gmail.com>
First post2015-03-01 12:32 -0800
Last post2015-03-02 08:48 +0000
Articles 4 — 3 participants

Back to article view | Back to comp.lang.python


Contents

  Question about python package numpy fl <rxjwg98@gmail.com> - 2015-03-01 12:32 -0800
    Re: Question about python package numpy Andrea D'Amore <anddam+NOSPAM@brapi.net> - 2015-03-01 22:25 +0100
      Re: Question about python package numpy fl <rxjwg98@gmail.com> - 2015-03-01 14:23 -0800
    Re: Question about python package numpy Robert Kern <robert.kern@gmail.com> - 2015-03-02 08:48 +0000

#86678 — Question about python package numpy

Fromfl <rxjwg98@gmail.com>
Date2015-03-01 12:32 -0800
SubjectQuestion about python package numpy
Message-ID<ae1f0473-e499-4a41-8d2d-38800feacfa7@googlegroups.com>
Hi,

It is difficult to install numpy package for my PC Windows 7, 64-bit OS. In
the end, I install Enthought Canopy, which is recommended on line because it 
does install numpy automatically. Now, I can test it with

import numpy

it succeeds. On http://wiki.scipy.org/Cookbook, it shows some interesting
code example snippet, such as Cookbook / ParticleFilter, Markov chain etc.

I don't know how I can access these code examples, because I don't know where
Enthought Canopy installs these package.

Could you help me on using numpy examples?


Thanks,

[toc] | [next] | [standalone]


#86682

FromAndrea D'Amore <anddam+NOSPAM@brapi.net>
Date2015-03-01 22:25 +0100
Message-ID<md004b$9vg$1@virtdiesel.mng.cu.mi.it>
In reply to#86678
On 2015-03-01 20:32:34 +0000, fl said:

> import numpy
> it succeeds. On http://wiki.scipy.org/Cookbook, it shows some interesting
> code example snippet, such as Cookbook / ParticleFilter, Markov chain etc.

> I don't know how I can access these code examples, because I don't know where
> Enthought Canopy installs these package.

Did you check Canopy's documentation?

Are you sure the examples in cookbook are installed with the package?
You can print numpy.__file__ to know where the package is installed.

At [1] I see "You can get the source code for this tutorial here: 
tandemqueue.py" with link to the file, why don't you get the source 
files for the example from their pages?


[1] http://wiki.scipy.org/Cookbook/Solving_Large_Markov_Chains

-- 
Andrea

[toc] | [prev] | [next] | [standalone]


#86687

Fromfl <rxjwg98@gmail.com>
Date2015-03-01 14:23 -0800
Message-ID<fcc0936d-3132-4273-9473-1a5de98838c2@googlegroups.com>
In reply to#86682
On Sunday, March 1, 2015 at 1:25:59 PM UTC-8, Andrea D'Amore wrote:
> On 2015-03-01 20:32:34 +0000, fl said:
> 
> > import numpy
> > it succeeds. On http://wiki.scipy.org/Cookbook, it shows some interesting
> > code example snippet, such as Cookbook / ParticleFilter, Markov chain etc.
> 
> > I don't know how I can access these code examples, because I don't know where
> > Enthought Canopy installs these package.
> 
> Did you check Canopy's documentation?
> 
> Are you sure the examples in cookbook are installed with the package?
> You can print numpy.__file__ to know where the package is installed.
> 
> At [1] I see "You can get the source code for this tutorial here: 
> tandemqueue.py" with link to the file, why don't you get the source 
> files for the example from their pages?
> 
> 
> [1] http://wiki.scipy.org/Cookbook/Solving_Large_Markov_Chains
> 
> -- 
> Andrea

Thanks for your reply. I learned Python for about one week ago. The link 
in your reply does look like executable. But the second snippet about 
particle filter, see below please, looks award. i.e. I do not see the 
connection between the first and the second code snippet. I should save
them to one .py file? Or save to two files? What name should be for the
second file?


Thanks again.



...............
http://wiki.scipy.org/Cookbook/ParticleFilter

The following code shows the tracker operating on a test sequence featuring 
a moving square against a uniform background.
Toggle line numbers
   1 if __name__ == "__main__":
   2   from pylab import *
   3   from itertools import izip
   4   import time
   5   ion()

[toc] | [prev] | [next] | [standalone]


#86705

FromRobert Kern <robert.kern@gmail.com>
Date2015-03-02 08:48 +0000
Message-ID<mailman.17.1425286089.13471.python-list@python.org>
In reply to#86678
On 2015-03-01 20:32, fl wrote:
> Hi,
>
> It is difficult to install numpy package for my PC Windows 7, 64-bit OS. In
> the end, I install Enthought Canopy, which is recommended on line because it
> does install numpy automatically. Now, I can test it with
>
> import numpy
>
> it succeeds. On http://wiki.scipy.org/Cookbook, it shows some interesting
> code example snippet, such as Cookbook / ParticleFilter, Markov chain etc.
>
> I don't know how I can access these code examples, because I don't know where
> Enthought Canopy installs these package.
>
> Could you help me on using numpy examples?

None of these examples come prepackaged in any distribution I am aware of. You 
are intended to copy-and-paste them from the wiki if you want to use them.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web