Changes for page 02. Installing PyNN - Linux
Last modified by adavison on 2022/10/04 13:53
From version 48.1
edited by shailesh
on 2021/12/09 17:18
on 2021/12/09 17:18
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,18 +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 - 137 - 138 138 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. 139 139 140 140 (% class="box errormessage" %) ... ... @@ -180,7 +180,7 @@ 180 180 181 181 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. 182 182 183 -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. 184 184 185 185 (% class="box infomessage" %) 186 186 ((( ... ... @@ -196,11 +196,9 @@ 196 196 ((( 197 197 **Screencast** - terminal 198 198 \\(% style="color:#000000" %)nest 199 - 200 -(% style="color:#000000" %)exit 201 201 ))) 202 202 203 -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. 204 204 205 205 (% class="box infomessage" %) 206 206 ((( ... ... @@ -275,7 +275,7 @@ 275 275 (% style="color:#000000" %)sim.end() 276 276 ))) 277 277 278 -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: 279 279 280 280 (% class="box infomessage" %) 281 281 ((( ... ... @@ -299,14 +299,6 @@ 299 299 300 300 This confirms that all the required software packages have been successfully completed and are functioning as expected. 301 301 302 -As a last step, we will install a Python package named 'matplotlib' that would come in handy in the tutorials ahead. 303 - 304 -(% class="box infomessage" %) 305 -((( 306 -**Screencast** - terminal 307 -\\(% style="color:#000000" %)pip install matplotlib 308 -))) 309 - 310 310 (% class="box successmessage" %) 311 311 ((( 312 312 **Slide** recap of learning objectives