<div dir="ltr">Hi Brian,<div><br></div><div>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.</div>
<div><br></div><div>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Ā <a href="https://github.com/ctn-waterloo/nengo_1.4/blob/master/simulator-ui/python/numeric.py">https://github.com/ctn-waterloo/nengo_1.4/blob/master/simulator-ui/python/numeric.py</a> for some example usages.</div>
<div><br></div><div>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.</div>
<div><br></div><div>You can check it out now at <a href="https://github.com/ctn-waterloo/nengo">https://github.com/ctn-waterloo/nengo</a>, or when we make the 2.0 release, we will make an announcement on this mailing list!</div>
<div><br></div><div>- Trevor</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 9, 2014 at 1:23 PM, Brian Krainer <span dir="ltr"><<a href="mailto:bkrainer731@gmail.com" target="_blank">bkrainer731@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hello,<br><br>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?<br>
<br></div>Thanks,<br></div>Brian<br></div>
<br>_______________________________________________<br>
nengo-user mailing list<br>
<a href="mailto:nengo-user@ctnsrv.uwaterloo.ca">nengo-user@ctnsrv.uwaterloo.ca</a><br>
<a href="http://ctnsrv.uwaterloo.ca/mailman/listinfo/nengo-user" target="_blank">http://ctnsrv.uwaterloo.ca/mailman/listinfo/nengo-user</a><br>
<br></blockquote></div><br></div>