Here is a list of Python resources with NEURON.
Our Sage server equipped with NEURON is a nice resource for example code and recipes. It is a place to try NEURON and Python without installing either on your local machine. To use, visit https://nn.med.yale.edu:8000 and log in with a user id and password. Once on, visit the "Published" worksheets and click on the "Edit a copy" link to interact with them. In particular, the NEURON + Python Basics is a great place to start, and the Ball-and-stick examples describe many core methods and concepts. These worksheets also demonstrate some Matplotlib drawing routines. Feel free to publish your own useful examples!
The group at http://neuralensemble.org/ has many links including http://neuralensemble.org/trac/NeuroTools, http://neuralensemble.org/trac/PyNN and http://neuralensemble.org/trac/sumatra.
Visualization tools are also forthcoming. For 3D visualization, there are http://mattions.github.com/neuronvisio/ and https://github.com/tfoutz99/Neuron3D. The https://bitbucket.org/tommctavish/neuronpy or (easy_install neuronpy) library also contains a nice spike raster plotting class with cumulative histograms. A demo of this class is also available in the "SpikePlot demo" Sage worksheet.
In addition to Sumatra, the https://bitbucket.org/tommctavish/nrnproject is a template for new projects and wrapper for existing projects to put them under Mercurial source control. This template contains nice facilities to document your sources and create nice html or pdf documents of your project using Sphinx.
More NEURON + Python resources
Moderator: hines
Re: More NEURON + Python resources
Have you released a NEURON spkg for Sage?
-
- Posts: 41
- Joined: Thu May 03, 2007 4:04 pm
- Location: Institute of Science and Technology (IST Austria)
- Contact:
Re: More NEURON + Python resources
To build the Neuron shared Python library in Sage you can:Have you released a NEURON spkg for Sage?
1.- call the python scritp in /nrn/src/nrnpython/setup.py with the sage interpreter, like:
Code: Select all
# sage setup.py install
Code: Select all
nrnpython_exec = "/usr/bin/python
Code: Select all
nrnpython_exec = "/usr/local/sage-version/local/lib/python/"
Code: Select all
# python setup.py install
That should work!
Re: More NEURON + Python resources
Quite simple. Thanks!