Last modified by adavison on 2022/10/04 13:53

From version 31.1
edited by shailesh
on 2021/10/11 09:33
Change comment: There is no comment for this version
To version 37.2
edited by shailesh
on 2021/10/14 17:21
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,9 +7,3 @@
1 -(% class="box warningmessage" %)
2 -(((
3 -tutorials under development for Linux, Mac OS, Windows, Jupyter Lab.
4 -)))
5 -
6 -
7 7  == Learning objectives ==
8 8  
9 9  In this tutorial, you will learn how to install PyNN, together with the NEST, NEURON and Brian 2 simulators, on Linux.
... ... @@ -102,7 +102,7 @@
102 102  (% class="box infomessage" %)
103 103  (((
104 104  **Screencast** - file explorer
105 -\\(% style="color:#000000" %)<< show directory contents; especially lib/python3.9/site-packages >>
99 +\\(% style="color:#000000" %)<< show directory contents; especially lib/python3.8/site-packages >>
106 106  )))
107 107  
108 108  As you see here, only a limited number of basic packages have currently been installed in this virtual environment. In the steps ahead, we shall install various other packages, and you shall see that these would be reflected here.
... ... @@ -145,7 +145,7 @@
145 145  (% class="box infomessage" %)
146 146  (((
147 147  **Screencast** - file explorer
148 -\\(% style="color:#000000" %)<< show directory contents lib/python3.9/site-packages >>
142 +\\(% style="color:#000000" %)<< show directory contents lib/python3.8/site-packages >>
149 149  )))
150 150  
151 151  To confirm that we have properly installed Brian 2 on our computer, we can test as follows:
... ... @@ -217,7 +217,7 @@
217 217  (% class="box infomessage" %)
218 218  (((
219 219  **Screencast** - terminal
220 -\\(% style="color:#000000" %)nrngui
214 +\\(% style="color:#000000" %)nrniv
221 221  )))
222 222  
223 223  This will display the NEURON banner, which mentions the version amongst other info. Here, as we can see, we have now installed NEURON v8.0.0 on our system. Let us next verify that this is indeed accessible via Python.
... ... @@ -237,9 +237,15 @@
237 237  (% class="box infomessage" %)
238 238  (((
239 239  **Screencast** - terminal
240 -\\(% style="color:#000000" %)pip install pyNN
234 +\\(% style="color:#000000" %)pip install PyNN
241 241  )))
242 242  
237 +(% class="box warningmessage" %)
238 +(((
239 +**Note:**
240 +\\Note that PyNN project is spelt with a captial P, small y, and two captital N. The pip command is case-insensitive, so you may write it differently here. But the Python module, as we shall see ahead, is case-sensitive and is spelt starting with a small P. This is in line with general Python convention, whereby package names start with small alphabets. Thus, while importing PyNN module via Python, it needs to be written as 'pyNN'.
241 +)))
242 +
243 243  To verify that PyNN has been successfully installed on our system, and that it is indeed able to communicate with the other simulators that we installed earlier, we can try running:
244 244  
245 245  (% class="box infomessage" %)
... ... @@ -254,7 +254,7 @@
254 254  (% style="color:#000000" %)sim.end()
255 255  )))
256 256  
257 -This confirms that PyNN has been properly setup, and also that is able to employ Brian 2. To verify similary test that PyNN is also able to communicate with NEURON and NEST simulators:
257 +This confirms that PyNN has been properly setup, and also that is able to employ Brian 2. To verify similary that PyNN is also able to communicate with NEURON and NEST simulators:
258 258  
259 259  (% class="box infomessage" %)
260 260  (((