[nengo-user] using numpy/scipy

Trevor Bekolay tbekolay at gmail.com
Wed Jun 11 11:54:19 EDT 2014


Hi Brian,

Unfortunately within Nengo 1.4 it is not possible to use the NumPy / SciPy
libraries because Nengo 1.4 is Java based. We are able to use Python syntax
by utilizing the Jython library, but in the end, it's all Java.

We have a restricted subset of NumPy (really, it's a Jython port of Numeric
called JNumeric) so you can do some NumPy-like stuff. If you import
numeric, you can do some things; see
https://github.com/ctn-waterloo/nengo_1.4/blob/master/simulator-ui/python/numeric.py
for some example usages.

If you're using NumPy/SciPy for analysis, you can have Nengo 1.4 spit out
data to a file and then analyze it later. If you want to use it for
functions in a SimpleNode, for example, you can try numeric. If that's not
sufficient, then we are currently close to releasing Nengo 2.0, which is
new version of Nengo which uses NumPy for a lot of the number crunching,
and targets the CPython interpreter, so you can use any Python library for
defining functions and nodes and whatnot.

You can check it out now at https://github.com/ctn-waterloo/nengo, or when
we make the 2.0 release, we will make an announcement on this mailing list!

- Trevor


On Mon, Jun 9, 2014 at 1:23 PM, Brian Krainer <bkrainer731 at gmail.com> wrote:

> Hello,
>
> I'd like to use the numpy and scipy libraries in my code to help define my
> own functions. When I try to import numpy or scipy Nengo gives me an error
> saying that those modules don't exist. How can I use outside modules?
>
> Thanks,
> Brian
>
> _______________________________________________
> nengo-user mailing list
> nengo-user at ctnsrv.uwaterloo.ca
> http://ctnsrv.uwaterloo.ca/mailman/listinfo/nengo-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://artsservices.uwaterloo.ca/pipermail/nengo-user/attachments/20140611/c4150c92/attachment-0002.html>


More information about the nengo-user mailing list