https://github.com/bdevans/brian_tutorial
Scripts and configuration files for building a Docker image for Brian tutorials
https://github.com/bdevans/brian_tutorial
Last synced: 4 days ago
JSON representation
Scripts and configuration files for building a Docker image for Brian tutorials
- Host: GitHub
- URL: https://github.com/bdevans/brian_tutorial
- Owner: bdevans
- Created: 2020-08-07T11:36:28.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-07T13:23:52.000Z (over 5 years ago)
- Last Synced: 2025-08-16T23:50:15.045Z (6 months ago)
- Language: Dockerfile
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Brian Tutorial Docker Image
This repository contains the files necessary for building a Docker image containing Brian2, JupyterLab and several useful libraries.
## Build
`docker build -t brian_tutorial -f .devcontainer/Dockerfile .`
## Run
`docker run -it --init --rm -p 8888:8888 -v $(pwd):/home/vscode brian_tutorial`
## VSCode
Alternatively if you have VSCode with the remote development extension installed, the cloning this repository and opening the parent directory in VSCode will prompt VSCode to offer to build the image and run the container. This allows you to transparently edit and run code within the Docker container.
## Anaconda
The environment may be built without Docker if you have Anaconda (or Miniconda) installed by using the supplied `environment.yml` file as follows:
`conda env create -f environment.yml`
## Binder
This environment may be launched as a temporary Jupyter notebook in a browser (without installing anything) courtesy of the [binder service](https://mybinder.org) by clicking the button below:
[](https://mybinder.org/v2/gh/bdevans/brian_tutorial/master?urlpath=lab)