Changes for page Co-Simulation The Virtual Brain Multiscale
Last modified by ldomide on 2024/04/08 12:55
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Objects (1 modified, 3 added, 2 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. ldomide1 +XWiki.dionperd - Content
-
... ... @@ -2,11 +2,12 @@ 2 2 ((( 3 3 (% class="container" %) 4 4 ((( 5 -= (% style="color:inherit" %)TVB Co-Simulation [[image:https://github.com/the-virtual-brain/tvb-multiscale/blob/master/docs/documented_example_notebook/ConceptGraph.png?raw=true||alt="ConceptGraph.png" height="197"width="255"]](%%) =5 += (% style="color:inherit" %)TVB Co-Simulation {{html}}<iframe width="302" height="170" src="https://www.youtube.com/embed/6hEuvxD7IDk?list=PLVtblERyzDeLcVv4BbW3BvmO8D-qVZxKf" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>{{/html}} (%%) = 6 6 7 -(% style="color:inherit" %)Multiscale: TVB - NEST 8 8 9 -(% style="color:inherit" %)Authors: (%%)D. Perdikis, L. Domide, J. Mersmann, M. Schirner, P. Ritter(% style="color:inherit" %) 8 +(% style="color:inherit" %)Multiscale: TVB, NEST, (%%)ANNarchy, NetPyNE , Elephant, PySpike 9 + 10 +(% style="color:inherit" %)Authors: (%%)D. Perdikis, A. Blickensdörfer, V. Bragin, L. Domide, J. Mersmann, M. Schirner, P. Ritter(% style="color:inherit" %) 10 10 ))) 11 11 ))) 12 12 ... ... @@ -14,40 +14,48 @@ 14 14 ((( 15 15 (% class="col-xs-12 col-sm-8" %) 16 16 ((( 17 -For more details on TVB itself, check this:[[https:~~/~~/wiki.ebrains.eu/bin/view/Collabs/the-virtual-brain/>>url:https://wiki.ebrains.eu/bin/view/Collabs/the-virtual-brain/]]18 +For more details on TVB see: 18 18 19 -== Use our Jupyter Hub setup online == 20 +* TVB Dedicated Wiki [[https:~~/~~/wiki.ebrains.eu/bin/view/Collabs/the-virtual-brain/>>url:https://wiki.ebrains.eu/bin/view/Collabs/the-virtual-brain/]] 21 +* TVB in HBP User Story [[https:~~/~~/wiki.ebrains.eu/bin/view/Collabs/user-story-tvb/>>url:https://wiki.ebrains.eu/bin/view/Collabs/user-story-tvb/]] 20 20 21 - Wehavesetupa Jupyter Hub service with tvb-nest as backed already prepared. You will only need an HBP account for accessing this: [[https:~~/~~/tvb-nest.apps.hbp.eu/>>url:https://tvb-nest.apps.hbp.eu/]]23 +== == 22 22 23 - This JupyterHubinstallationworks smoothly with HBP Collab user credentials (loginonly once at HBP and get access here too). We use a custom Docker Hub tvb-nestimage as a backend, andthusaready touse environment is available immediately, without theneed of any local installation ordownload. This shouldbethe ideal env for demos, presentations or even workshops with tvb-nest.25 +== Running TVB-MULTISCALE at EBRAINS JupyterLab == 24 24 25 - **[[image:https://lh6.googleusercontent.com/ytx9eYpMcL3cCScX2_Sxm4CeBW0xbKW3xKsfO2zSId10bW0gw1kiN2_SkexyYBCsF-sKsu0MaJC4cZvGVfQPjMoPBLiePbkvXOZd8BgY3Q0kFzSkRCqQ183lgDQv_6PYoqS3s7uJ||height="149" width="614"]]**27 +TVB-multiscale is made available at [[EBRAINS JupyterLab>>https://lab.ebrains.eu/]]. 26 26 27 - Currently, the userscan access2folders://TVB-NEST-Examples//and//Contributed-Notebooks//.29 +All the user has to do is log in with their EBRAINS credentials, and start a Python console or a Jupyter notebook using the kernel "EBRAINS-23.09" (or a more recent version), where TVB-multiscale can be imported (e.g., via "import tvb_multiscale"). All necessary TVB-multiscale dependencies (NEST, ANNarchy, NetPyNE (NEURON), Elephant, Pyspike) are also installed and available. 28 28 29 -Th enotebooksunder**TVB-NEST-Examples**arepublic,shared by everyone accessing theinstance. Periodically, we willclean allchangesunderTVB-NEST-Examplesfolder(by redeploying thepod image), andshowtheoriginalexample notebookssubmittedonourGithub repo.Ifusersintendtocontribute here,theyareencouragedto submitchangesthroughPull Requests([[https:~~/~~/github.com/the-virtual-brain/tvb-multiscale>>url:https://github.com/the-virtual-brain/tvb-multiscale]])31 +This collab contains various examples of using TVB-Multiscale with all three supported spiking simulators. We suggest copying the contents of this collab to your Library or to any collab owned by you, and running them there (note that the user's drive offers persistent storage, i.e. users will find their files after logging out and in again), as follows: 30 30 31 - **[[image:https://lh6.googleusercontent.com/nnsM0mhXQinmQsJwZwwwe5Sx7f-tZc8t4ELnCh9DwksyVEPUE-jixJTkhoP4l25VKwlDGoXACWtnuxQM9NMOCYbQOzDesgMDlT3sntow___vsEqRVd4OwqMY4BPyBiLJ32BnUbmM||height="267"width="614"]]**33 +~1. Select `Drive` on the left of the current page (or use [[this link>>https://wiki.ebrains.eu/bin/view/Collabs/the-virtual-brain-multiscale/Drive||rel="noopener noreferrer" target="_blank"]]). 32 32 33 - Folder**Contributed-Notebooks**is notshared.Here,userscanexperiment with theirown privateexamples. Thisfolderis persistedonrestarts inthe user HBP Collabpersonalspace. Thus, users willbe abletoaccess their workevenafteredeploy.(e.g. during a workshopeveryparticipantcouldhaveinherehiswnexercisesolution).35 +2. Check the `tvb-multiscale-collab` folder checkbox, and copy it to your `My Library` ("copy" icon will appear above the files/folders list). 34 34 35 - ==RunningTVB-NEST locally==37 +3. Select `Lab` (on the left), and navigate to the destination where you just copied the folder. 36 36 37 - Seemore onGithub[[https:~~/~~/github.com/the-virtual-brain/tvb-multiscale>>url:https://github.com/the-virtual-brain/tvb-multiscale]]andcheckthisnotebookexample: [[https:~~/~~/drive.ebrains.eu/f/b3ea5740fcc34f12af7a/?dl=1>>url:https://drive.ebrains.eu/f/b3ea5740fcc34f12af7a/?dl=1]]39 +4. Enter the `tvb-multiscale-collab` folder, and open either of example notebooks. Ensure you select the appropriate ipykernel (EBRAINS-23.09 or a more recent one) 38 38 39 -This notebook will be ok to download and try yourself locally, after you have also prepared and launched locally a Docker env: [[https:~~/~~/hub.docker.com/r/thevirtualbrain/tvb-nest>>url:https://hub.docker.com/r/thevirtualbrain/tvb-nest]] 40 40 41 - Thisis the path recommended for people workingclosely with tvb-nest.Theyare able todownload it in their localwork env and code freelyand fast with it.42 +== Running TVB-MULTISCALE locally == 42 42 43 - == Running TVB-NESTjobsonCSCSinfrastructurefrom HBPcollab==44 +See more on Github [[https:~~/~~/github.com/the-virtual-brain/tvb-multiscale>>url:https://github.com/the-virtual-brain/tvb-multiscale]] . 44 44 45 - The CSCS and HBP Collab deployment oftvb-nest is a good example toshowhow tvb-nest canrun with an HPC backend.This will be efficientwhen the simulation jobs arevery large. Fromour experience,with smalljobs, thestage-in/outtimeis considerable,and thentheusermight be better with just alocalrun. Also, this deploymentrequiresthat **theuserhave anactive CSCSpersonal account**. Moreetailsonhow touse this deploymentcanbefound in this movie: [[https:~~/~~/drive.google.com/open?id=1osF263FK_NjhZcBJfpSy-F7qkbYs3Q-E>>url:https://drive.google.com/open?id=1osF263FK_NjhZcBJfpSy-F7qkbYs3Q-E]]46 +Documented notebooks and other examples will be ok to download and try yourself locally, after you have also prepared and launched locally a Docker env: [[https:~~/~~/hub.docker.com/r/thevirtualbrain/tvb-multiscale>>https://hub.docker.com/r/thevirtualbrain/tvb-multiscale]] 46 46 48 +This is the path recommended for people working closely with tvb-multiscale. They are able to download it in their local work env and code freely and fast with it. 49 + 50 +== == 51 + 52 +== Running TVB-MULTISCALE jobs on CSCS infrastructure from HBP collab == 53 + 54 +The CSCS and HBP Collab deployment of tvb-multiscale is a good example to show how tvb-multiscale can run with an HPC backend. This will be efficient when the simulation jobs are very large. From our experience, with small jobs, the stage-in/out time is considerable, and then the user might be better with just a local run. Also, this deployment requires that **the user have an active CSCS personal account**. More details on how to use this deployment can be found in this movie: [[https:~~/~~/drive.google.com/open?id=1osF263FK_NjhZcBJfpSy-F7qkbYs3Q-E>>url:https://drive.google.com/open?id=1osF263FK_NjhZcBJfpSy-F7qkbYs3Q-E]] 55 + 47 47 * Create a collab space of your own 48 48 * Clone and run in your HBP Collab Hub ([[https:~~/~~/lab.ebrains.eu/>>url:https://lab.ebrains.eu/]]) the notebooks from here: [[https:~~/~~/drive.ebrains.eu/d/245e6c13082f45bcacfa/>>url:https://drive.ebrains.eu/d/245e6c13082f45bcacfa/]] 49 49 ** test_tvb-nest_installation.ipynb Run the cosimulate_tvb_nest.sh script on the CSCS Daint supercomputer. In this example, basically we are running the //installation_test.py// file which is in the docker folder. 50 -** run_custom_cosimulation.ipynb For this example we are using the //cosimulate_with_staging.sh// script in order to pull the tvb- nest docker image and we are using a custom simulation script (from Github page) which will be uploaded in the staging in phase59 +** run_custom_cosimulation.ipynb For this example we are using the //cosimulate_with_staging.sh// script in order to pull the tvb-multiscale docker image and we are using a custom simulation script (from Github page) which will be uploaded in the staging in phase 51 51 ** run_custom_cosimulation_from_notebook.ipynb This example is running the same simulation as the example above but instead of using an external file with the simulation code we will build a simulation file from a few notebook cells and we will pass this file to the CSCS server. 52 52 53 53 Few technical details about what we do in these notebooks:
- Collaboratory.Apps.Collab.Code.CollabClass[0]
-
- owner
-
... ... @@ -1,0 +1,1 @@ 1 +ldomide
- XWiki.XWikiRights[3]
-
- Allow/Deny
-
... ... @@ -1,1 +1,0 @@ 1 -Allow - Levels
-
... ... @@ -1,1 +1,0 @@ 1 -view - Users
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.XWikiGuest
- XWiki.XWikiRights[4]
-
- Allow/Deny
-
... ... @@ -1,1 +1,0 @@ 1 -Allow - Groups
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.XWikiAllGroup - Levels
-
... ... @@ -1,1 +1,0 @@ 1 -view
- XWiki.XWikiComments[0]
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.ldomide - Comment
-
... ... @@ -1,0 +1,1 @@ 1 +Check this movie on tvb-multiscale https://www.youtube.com/watch?v=6hEuvxD7IDk&feature=youtu.be - Date
-
... ... @@ -1,0 +1,1 @@ 1 +2020-07-27 21:56:05.0
- XWiki.XWikiRights[7]
-
- Allow/Deny
-
... ... @@ -1,0 +1,1 @@ 1 +Allow - Levels
-
... ... @@ -1,0 +1,1 @@ 1 +view - Users
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.XWikiGuest
- XWiki.XWikiRights[8]
-
- Allow/Deny
-
... ... @@ -1,0 +1,1 @@ 1 +Allow - Groups
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.XWikiAllGroup - Levels
-
... ... @@ -1,0 +1,1 @@ 1 +view