This repository provides Docker image with pre-compiled computational neuroscience software and usage instructions for the OIST Computational Neuroscience Course (OCNC). For more information of the course, please visit https://groups.oist.jp/ocnc.
Links for Tutorials
-
For Python tutorial
-
For Brian2 Tutorial
-
For STEPS tutorial
-
For SPM tutorial
-
For NEURON tutorial
-
For DeepLabCut tutorial
-
For Optinist tutorial docker image installation, please follow the instructions in
Download and install Docker Desktop https://www.docker.com/products/docker-desktop/. For Mac users, please note that Docker provides different installers for Intel and Apple silicon cpu.
-
start the Docker Desktop application.
-
Open a Terminal/Command prompt/PowerShell.
-
In the Terminal, prepare a directory for storing your exercise files, and
cdto this directory. e.g.:mkdir ocnc_tutorial cd ocnc_tutorial -
In the Terminal, execute the following command to fetch and start the OCNC docker container, note that
-v `pwd`/:/workmount your current directory (in the above case,ocnc_tutorial) as/workin your Docker container system, and--rmset the container to be destroyed automatically after use (i.e. any change to the docker system will not be saved except the files stored in/work). For more information about the Docker commands, please visit https://docs.docker.com/engine/reference/commandline/run/.For Windows/Linux/Mac machine with x86 cpu:
docker pull cnsoist/ocnc:2025 docker run -p 6080:80 --rm -v `pwd`:/work cnsoist/ocnc:2025For Mac machine with Apple Silicon cpu:
docker pull cnsoist/ocnc:2025_apple_silicon docker run -p 6080:80 --rm -v `pwd`:/work cnsoist/ocnc:2025_apple_siliconfor Windows, you may need to specify the path of your directory, e.g.
docker run -p 6080:80 --rm -v C:\Users\YOUR_USER_NAME\ocnc_tutorial:/work cnsoist/ocnc:2025You should see similar information as below from the Terminal.
-
Open a web browser and enter: http://127.0.0.1:6080/. The following interface should be shown in the browser.
-
Double click the
LXTerminalicon to open a terminal in the docker system. You can also double click theocncicon to access this repository page for future references. -
In the
LXTerminal,cdto\work.cd /workYou can store and exchange files between your host system and the docker system here.
Then clone the ocnc github repository.
git clone https://github.com/CNS-OIST/ocnc.gitGo into the directory, and start Jupyter notebook
cd ocnc jupyter notebook --allow-rootA Jupyter notebook interface should pop up, within it, open the
simulator_tests.ipynb, and from the top menu selectCell->Run All. Jupyter may ask for the password you've just set from time to time. Please check the default behaviors of this test from the video below, if yours behave differently, please contact w.chen@oist.jp. -
At the tutorial sessions, start the computational neuroscience software according to your tutorial instructions from the
LXTerminal. Here are some general commands for different software.- update the ocnc github repository.
cd /work/ocnc git pull - Copying and Pasting
- Starting Jupyter notebook
jupyter notebook --allow-root - Starting Jupyterlab
jupyter lab --allow-root - Python3
and with in Python
python- NEURON https://neuron.yale.edu/neuron/
import neuron - NEST https://nest-simulator.readthedocs.io/
import nest - STEPS http://steps.sourceforge.net/
import steps - Brian2 https://brian2.readthedocs.io/en/stable/
import brian2 - pystan https://pystan.readthedocs.io/en/latest/
import stan
- NEURON https://neuron.yale.edu/neuron/
- NEURON with GUI and hoc interpreter
nrngui
- update the ocnc github repository.
-
Once you finish your work, make sure your files have been saved to
/work(akaocnc_tutorialin your host system), then go back to the Terminal/Command prompt/PowerShell of your host system, and pressctrl + cto stop the docker container. -
A miniforge distribution has been pre-isntalled and can be activated with the following command
conda activate basePlease note that the above neuroscience applications are not available under the conda environment. You can deactivate conda environment with
conda deactivate
If you want to connect to the docker system using a vnc viewer such as https://www.realvnc.com/en/connect/download/viewer/ instead of the browser, start the docker with
docker run -p 6080:80 -p 5900:5900 --rm -v `pwd`:/work cnsoist/ocnc:2025
Open your vnc viewer and enter 127.0.0.1:5900 as the address
a vnc connection to the docker system should then be displayed.





