Changes for page 02. Installing PyNN - Linux
Last modified by adavison on 2022/10/04 13:53
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -81,7 +81,7 @@ 81 81 cd pynn_project 82 82 ))) 83 83 84 -Next we shall create a virtual environment within this directory. Python 3 provides intrinsic support for creating virtual environments. Since Python 3.6, the recommended method of creating a new virtual environment is as follows:84 +Next we shall create a virtual environment within this directory. Python 3 provides support for creating virtual environments. Since Python 3.6, the recommended method of creating a new virtual environment is as follows: 85 85 86 86 (% class="box errormessage" %) 87 87 ((( ... ... @@ -147,11 +147,10 @@ 147 147 148 148 If there are no error messages here, and the import is successful, then we have completed installing Brian 2. 149 149 150 +We shall now move on to install the NEST simulator. Unlike Brian 2, NEST is not a Python package and therefore it cannot be installed via the 'pip' command. 150 150 151 - Weshallnowmove ontoinstalltheNEST simulator. UnlikeBrian2,NEST is notaPythonpackage andtherefore itsonisa bitmorevolved.WeshallinstallheNESTmodule alongwith PyNEST,whichisaPythoninterface for controllingtheNESTkernel.152 +At the time of creating this tutorial, the lastest version of NEST is v3.1. This is currently supported by PyNN v0.10, and it is likely that other versions of NEST could potentially be incompatible with this version of PyNN. The installation is done by first adding the PPA repository for NEST and updating apt, followed by the installation of NEST itself. 152 152 153 -We first install the NEST module. At the time of creating this tutorial, the lastest version of NEST is 3.1. This is supported by is currently supported by PyNN, and it is likely that other versions of NEST might have issues when used with the current version of PyNN. The installation is done by first adding the PPA repository for NEST and updating apt, followed by the installation of NEST itself. 154 - 155 155 (% class="box infomessage" %) 156 156 ((( 157 157 **Screencast** - terminal ... ... @@ -160,10 +160,22 @@ 160 160 \\sudo apt-get install nest 161 161 ))) 162 162 163 - At thispoint, we have installedthe NEST module,butit isstill not usable via Python. Todoso,wenextinstallPyNEST.162 +This installs the NEST module along with PyNEST, which is a Python interface for controlling the NEST kernel. This allows us to use NEST via Python. To confirm that we have properly installed Brian 2 on our computer, we can test as follows: 164 164 164 +(% class="box infomessage" %) 165 +((( 166 +**Screencast** - terminal 167 +\\(% style="color:#000000" %)python3 168 +\\import nest 169 +\\exit() 170 +))) 165 165 172 +If there are no error messages here, and the import is successful, then we have completed installing NEST simulator. 166 166 174 +We next move on to the third simulation, NEURON. The installation for NEURON is a bit more involved. 175 + 176 +<< add more >> 177 + 167 167 (% class="box successmessage" %) 168 168 ((( 169 169 **Slide** recap of learning objectives