Using spinnaker in the notebook


#1

I’d like to import pyNN.spinnaker module in my Jupyter notebook.

I got an error since it is not present, whereas other modules as pyNN.nest or pyNN.neuron are present.
I checked the list of python modules installed in the collab (!pip list) and there is no spynnaker.

So, should I install manually wit pip? Using
!pip install sPyNNaker8
!python -m spynnaker9.setup-pynn

Thanks
Alberto


#2

Hi Alberto,

I am not a Spynnaker expert so I cannot give you an answer. Just wanted to point out that using pip directly can be misleading as there are two environments, Python 2.7 and 3.6, and it’s likely that by just invoking pip list you are listing the Python 3 libraries from a Python 2 kernel.

For this reason we provide two aliases pip2 and pip3 for Python 2.7 and 3.6 respectively to clarify which environment you can manipulate with them.

Best,
Akos


#3

Hi Akos,
thanks for the clarification, I was not aware about pip2 or pip3 aliases

Best
Alberto


#4

Hi Alberto,

Do you have your own SpiNNaker board that you want to connect to locally, or are you trying to access the big SpiNNaker system from a Collaboratory Jupyter notebook?

Regards,

Andrew


#5

Hi Andrew,

I have my 4-chips board, but from the Collaboratory Jupyter notebook I’d like to use the big SpiNNaker system

Best,
Alberto


#6

Hi Alberto,

The big SpiNNaker system is not directly connected to the Jupyter notebooks, instead you have to use the job queue system.

Here is an example notebook: https://collab.humanbrainproject.eu/#/collab/645/nav/330270

Documentation is here: https://electronicvisions.github.io/hbp-sp9-guidebook/using_the_platform.html#using-the-python-client

Regards,

Andrew


#7

Hi Andrew,
thanks for the links,
they will be very useful!

Best,
Alberto