This repository provides Docker configurations for running Jupyter Notebook environments with support for multiple programming languages and R, facilitating flexible and interactive learning and teaching experiences. The images are available on Docker Hub.
Run the below command from the directory that you want to be mounted inside the container.
- Windows
docker run -p 8888:8888 -v ${PWD}:/home/jovyan/notebooks gprao7/jupyter:multi
- Linux/Unix
docker run -p 8888:8888 -v $(pwd):/home/jovyan/notebooks gprao7/jupyter:multi
- Windows
docker run -p 8888:8888 -v ${PWD}:/home/jovyan/notebooks gprao7/jupyter:r-notebook
- Linux/Unix
docker run -p 8888:8888 -v $(pwd):/home/jovyan/notebooks gprao7/jupyter:r-notebook
-
gprao7/jupyter:multi
Supports Jupyter kernels for:- Java (via Rapaio Jupyter Kernel)
- C (via Brendan Rius's C kernel)
- JavaScript (via IJavascript)
-
gprao7/jupyter:r-notebook
Includes the R kernel for running R in Jupyter Notebook.
You can pull the pre-built images from Docker Hub using the following commands:
docker pull gprao7/jupyter:multi
docker pull gprao7/jupyter:r-notebook
To run the images directly with Docker, map the host port and volume for persistent storage of your notebooks:
docker run -p <host_port>:8888 -v <host_directory>:/home/jovyan/notebooks gprao7/jupyter:multi
docker run -p <host_port>:8888 -v <host_directory>:/home/jovyan/notebooks gprao7/jupyter:r-notebook
Replace:
<host_port>
with the port number on your local machine (e.g.,8888
).<host_directory>
with the path on your local machine where you want to save notebooks.
Alternatively, you can use the included docker-compose.yml
file for easier setup. This file allows you to configure and run the images using a single command.
- Clone the repository:
git clone <repository_url>
cd <repository_folder>
-
Modify the
docker-compose.yml
file if needed to adjust port mappings or volume paths. -
Run the services:
docker-compose up
This will start the Jupyter Notebook environment, accessible at http://localhost:8888
.
- Dockerfile: Used to build the Docker images from scratch.
- docker-compose.yml: Used to define and run multi-container Docker applications.
Once the container is running, you can access the Jupyter Notebook interface by opening a web browser and navigating to http://localhost:<host_port>
. You will be prompted to enter a token, which can be found in the container logs.
Feel free to open issues or submit pull requests if you find any bugs or have suggestions for improvements.