Changes for page Co-Simulation The Virtual Brain Multiscale
Last modified by ldomide on 2024/04/08 12:55
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -26,75 +26,19 @@ 26 26 27 27 TVB-multiscale is made available at [[EBRAINS JupyterLab>>https://lab.ebrains.eu/]]. 28 28 29 -All the user has to do is login with their EBRAINS credentials, and start a Python console or a Jupyter notebook, TVB-multiscale beingavailableforimporting(e.g., via "import tvb_multiscale").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. 30 30 31 - All necessaryTVB-multiscaledependencies(NEST,ANNarchy,NetPyNE(NEURON), Elephant,Pyspike)arealso installed and available.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: 32 32 33 - Wesuggest theuserstoupload[[documentednotebooks>>https://github.com/the-virtual-brain/tvb-multiscale/tree/master/docs/notebooks]] and/or [[examples' scriptsand notebooks>>https://github.com/the-virtual-brain/tvb-multiscale/tree/master/examples]]from TVB-multiscale Github repository, and run them there(pleasenote that the user's driveoffers persistentstorage, i.e., users will findtheir filesafter logging out and in again).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"]]). 34 34 35 - Alternatively,users can sparse checkoutthedocs and examples folders of TVB-multiscaleGithub repo, viathefollowing sequenceofcommandsinaterminalor inJupyternotebook'scells(fornotebooks you needto use"!" beforeeach command!):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). 36 36 37 - ~1.Getinto theuser'sMyLibrariesfolder:37 +3. Select `Lab` (on the left), and navigate to the destination where you just copied the folder. 38 38 39 - {{{cd/mnt/user/drive/MyLibraries}}}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) 40 40 41 -2. Create a folder, e.g., "tvb-multiscale-collab" 42 42 43 -{{{mkdir tvb-multiscale-collab}}} 44 - 45 -3. Create an empty git repository: 46 - 47 -{{{git init 48 - 49 -3. Add tvb-multiscale remote: 50 -git remote add -f origin }}} 51 - 52 -This fetches all objects but doesn't check them out. 53 - 54 -4. Allow for sparse checkout in git config: 55 - 56 -{{{git config core.sparseCheckout true 57 -}}} 58 - 59 -5. Add the docs and examples folders to the ones to be checked out: 60 - 61 -{{{echo "docs" >> .git/info/sparse-checkout 62 - 63 -echo "examples" >> .git/info/sparse-checkout}}} 64 - 65 -6. Finally, pull the master from the remote: 66 - 67 -{{{git pull origin master}}} 68 - 69 -which will download the specified folders. 70 - 71 -All these steps can of course be made from any user initiated fork of the TVB-multiscale repository. 72 - 73 -Last but not least, users will also have to modify the attribute config.DEFAULT_CONNECTIVITY_ZIP of the base configuration class Config in all cases of examples and notebooks, to be able to load a default TVB connectivity for the simulations to run. For instance, in the case of the above folder structure after sparse checkout, and for the example of the [[documented TVB-NEST_WilsonCowan.ipynb notebook>>https://github.com/the-virtual-brain/tvb-multiscale/blob/master/docs/notebooks/TVB-NEST_WilsonCowan.ipynb]], the correct path would be: 74 - 75 -config.DEFAULT_CONNECTIVITY_ZIP = "/mnt/user/drive/My Libraries/tvb-multiscale-examples/examples/data/tvb_data/berlinSubjects/QL_20120814/QL_20120814_Connectivity.zip" 76 - 77 - 78 - 79 -== Use our Jupyter Hub setup online ((% style="color:#c0392b" %)DEPRECATED(%%)) == 80 - 81 -(% style="color:#c0392b" %)**TVB-multiscale app is deprecated and will stop being available after the end of 2023!** 82 - 83 -We have setup a Jupyter Hub service with tvb-multiscale as backed already prepared. You will only need an HBP account for accessing this: [[https:~~/~~/tvb-multiscale.apps.hbp.eu/>>https://tvb-multiscale.apps.hbp.eu/]] 84 - 85 -This JupyterHub installation works smoothly with HBP Collab user credentials (login only once at HBP and get access here too). We use a custom Docker Hub tvb-multiscale image as a backend, and thus a ready to use environment is available immediately, without the need of any local installation or download. This should be the ideal env for demos, presentations or even workshops with tvb-multiscale. 86 - 87 -**[[image:https://lh6.googleusercontent.com/ytx9eYpMcL3cCScX2_Sxm4CeBW0xbKW3xKsfO2zSId10bW0gw1kiN2_SkexyYBCsF-sKsu0MaJC4cZvGVfQPjMoPBLiePbkvXOZd8BgY3Q0kFzSkRCqQ183lgDQv_6PYoqS3s7uJ||height="149" width="614"]]** 88 - 89 -Currently, the users can access 2 folders: //TVB-*-Examples// and //Contributed-Notebooks//. 90 - 91 -The notebooks under **TVB-*-Examples** are public, shared by everyone accessing the instance. Periodically, we will clean all changes under TVB-*-Examples folder (by redeploying the pod image), and show the original example notebooks submitted on our Github repo. If users intend to contribute here, they are encouraged to submit changes through Pull Requests ([[https:~~/~~/github.com/the-virtual-brain/tvb-multiscale>>url:https://github.com/the-virtual-brain/tvb-multiscale]]) 92 - 93 -**[[image:https://lh6.googleusercontent.com/nnsM0mhXQinmQsJwZwwwe5Sx7f-tZc8t4ELnCh9DwksyVEPUE-jixJTkhoP4l25VKwlDGoXACWtnuxQM9NMOCYbQOzDesgMDlT3sntow___vsEqRVd4OwqMY4BPyBiLJ32BnUbmM||height="267" width="614"]]** 94 - 95 -Folder **Contributed-Notebooks** is not shared. Here, users can experiment with their own private examples. This folder is persisted on restarts in the user HBP Collab personal space. Thus, users will be able to access their work even after a redeploy. (e.g. during a workshop every participant could have in here his own exercise solution) 96 - 97 - 98 98 == Running TVB-MULTISCALE locally == 99 99 100 100 See more on Github [[https:~~/~~/github.com/the-virtual-brain/tvb-multiscale>>url:https://github.com/the-virtual-brain/tvb-multiscale]] .