Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Distilled backend for Nengo.

Project Description

A distilled Nengo backend

This is an example backend implementation for Nengo.

It does not require any additional dependencies; instead, this backend is the reference backend distilled into the essential parts. As such, it is designed to be simpler, easier to understand, and easier to debug. If you’re interested in writing your own Nengo backend, then this implementation is likely a better starting point than the reference backend.

nengo_distilled takes a neural model described using the Nengo framework, builds it into an actual neural simulation, and runs the simulation. For example:

import numpy as np
import nengo

# define the model
model = nengo.Network()
with model:
    stim = nengo.Node(np.sin)
    a = nengo.Ensemble(n_neurons=100, dimensions=1)
    b = nengo.Ensemble(n_neurons=100, dimensions=1)
    nengo.Connection(stim, a)
    nengo.Connection(a, b, function=lambda x: x**2, synapse=0.01)

    probe_a = nengo.Probe(a, synapse=0.01)
    probe_b = nengo.Probe(b, synapse=0.01)

import nengo_distilled
# build the model
sim = nengo_distilled.Simulator(model)
# run the model

# plot the results
import matplotlib.pyplot as plt


The easiest way to install is to use pip.

pip install nengo_distilled

If that doesn’t work, then try installing nengo manually, using the instructions at nengo/nengo. Then, try pip install nengo_distilled again. If that doesn’t work, try a develop installation.

Developer installation

If you want to make changes to nengo_distilled, then do the following.

git clone
cd nengo_distilled
python develop --user

If you’re using a virtualenv (recommended!) then you can omit the --user flag.

Release History

0.1.0 (April 29, 2015)

Initial release of Nengo Distilled! Supports Nengo 2.0.x on Python 2.6+ and 3.3+.

Release History

Release History

This version
History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
nengo_distilled-0.1.0.tar.gz (21.7 kB) Copy SHA256 Checksum SHA256 Source Apr 29, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting