Changes for page 02. Installing PyNN - Linux
Last modified by adavison on 2022/10/04 13:53
From version 50.1
edited by shailesh
on 2021/12/09 17:19
on 2021/12/09 17:19
Change comment:
There is no comment for this version
To version 42.1
edited by annedevismes
on 2021/10/19 08:59
on 2021/10/19 08:59
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. shailesh1 +XWiki.annedevismes - Content
-
... ... @@ -1,6 +1,6 @@ 1 1 == Learning objectives == 2 2 3 -In this tutorial, you will learn how to install PyNN, together with the Brian 2,NESTandNEURON simulators, on Linux.3 +In this tutorial, you will learn how to install PyNN, together with the NEST, NEURON, and Brian 2 simulators, on Linux. 4 4 5 5 (% class="box infomessage" %) 6 6 ((( ... ... @@ -37,7 +37,7 @@ 37 37 **Slide** listing learning objectives 38 38 ))) 39 39 40 -In this tutorial, I will guide you through setting up PyNN, together with the Brian 2, NEST, and NEURON simulators, on a Linux environment. Note that we have a dedicated version of this tutorial for other environments, such as Mac OS, Windows, and EBRAINS Jupyter Lab. 40 +In this tutorial, I will guide you through setting up PyNN, together with the Brian 2, NEST, and NEURON, and simulators, on a Linux environment. Note that we have a dedicated version of this tutorial for other environments, such as Mac OS, Windows, and EBRAINS Jupyter Lab. 41 41 42 42 (% class="box successmessage" %) 43 43 ((( ... ... @@ -123,16 +123,6 @@ 123 123 You might be required to run the above command every time you open a new terminal window. Check that the terminal command prompt indicates the name of your virtual environment to confirm that you have indeed activated it. 124 124 ))) 125 125 126 -Before we proceed, let us run the following commands to ensure that our environment is setup as required: 127 - 128 - 129 -(% class="box infomessage" %) 130 -((( 131 -**Screencast** - terminal 132 -\\(% style="color:#000000" %)pip install ~-~-upgrade pip 133 -sudo apt install make 134 -))) 135 - 136 136 Now that we have our project's virtual environment setup, we are ready to install PyNN and other simulators. In general, it is advisable to install the various simulators (especially NEURON and NEST) prior to installing PyNN, because PyNN will then auto compile NEURON's NMODL fles and NEST's extensions during installation. In this tutorial, we will adopt this approach and begin by installing the simulators. For the purposes of this tutorial, we will demonstrate the installation of Brian2, NEST, and NEURON simulators. 137 137 138 138 (% class="box errormessage" %) ... ... @@ -178,7 +178,7 @@ 178 178 179 179 We will 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. 180 180 181 -At the time of creating this tutorial, the latest version of NEST is v3.1. This is currently supported by PyNN v0.10, and it is likely that other versions of NEST arepotentially 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.171 +At the time of creating this tutorial, the latest version of NEST is v3.1. This is currently supported by PyNN v0.10, and it is likely that other versions of NEST will 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. 182 182 183 183 (% class="box infomessage" %) 184 184 ((( ... ... @@ -194,11 +194,9 @@ 194 194 ((( 195 195 **Screencast** - terminal 196 196 \\(% style="color:#000000" %)nest 197 - 198 -(% style="color:#000000" %)exit 199 199 ))) 200 200 201 -This will display the NEST banner, which mentions the version amongst other info. Here, as we can see, we have now installed NEST v3.1 on our system. Next,let'sverify that this is indeed accessible via Python.189 +This will display the NEST banner, which mentions the version amongst other info. Here, as we can see, we have now installed NEST v3.1 on our system. Let us next verify that this is indeed accessible via Python. 202 202 203 203 (% class="box infomessage" %) 204 204 ((( ... ... @@ -273,7 +273,7 @@ 273 273 (% style="color:#000000" %)sim.end() 274 274 ))) 275 275 276 -This confirms that PyNN has been properly setup and also that it is able to employ Brian 2. To verify that PyNN is also able to communicate with NE STand NEURONsimulators, we can do the following:264 +This confirms that PyNN has been properly setup and also that it is able to employ Brian 2. To verify that PyNN is also able to communicate with NEURON and NEST simulators, we can do the following: 277 277 278 278 (% class="box infomessage" %) 279 279 ((( ... ... @@ -297,14 +297,6 @@ 297 297 298 298 This confirms that all the required software packages have been successfully completed and are functioning as expected. 299 299 300 -As a last step, we will install a Python package named 'matplotlib' that would come in handy in the tutorials ahead. 301 - 302 -(% class="box infomessage" %) 303 -((( 304 -**Screencast** - terminal 305 -\\(% style="color:#000000" %)pip install matplotlib 306 -))) 307 - 308 308 (% class="box successmessage" %) 309 309 ((( 310 310 **Slide** recap of learning objectives