Docker file for the Pystan library to be used easly with a Jupyter Notebook when using Windows.
251
To use directly this image follow the steps below after installing Docker Desktop on your computer :
To use the image directly from Docker Hub, you first need to pull it. Run the following command to pull the image from Docker Hub:
docker pull arannentriki/pystan_env:latest
Once the image is pulled, you can run a container using the following command:
docker run -d -p 2222:22 -p 8080:8080 -p 8888:8888 --name pystan_env arannentriki/pystan_env:latest
This command will start a container and map the necessary ports for SSH, VSCode, and Jupyter Notebook:
2222 for SSH access8080 for VSCode (code-server) access8888 for Jupyter Notebook accessTo connect to the container via SSH, use the following command:
ssh root@localhost -p 2222
Use the password rootpassword.
Open your browser and navigate to:
http://localhost:8080
You should see the VSCode (code-server) interface.
Open your browser and navigate to:
http://localhost:8888
You should see the Jupyter Notebook interface.
This Docker image is based on python:3.10.0-bullseye and is designed to provide a comprehensive development environment with the following features:
Notesbook directory in the root user's home directory, allowing you to start with pre-defined Jupyter Notebooks.SSH Server:
22.rootpassword (this should be changed for security purposes).VSCode (code-server):
8080.Jupyter Notebook:
8888.Pre-installed Python Packages:
pytan and other dependencies specified in requirements.txt are pre-installed.Pre-loaded Notebooks:
Notesbook directory is copied to /root/Notesbook, ready for your use.Building the Image:
docker build -t python-pytan-ssh-vscode-jupyter .
Running the Container:
docker run -d -p 2222:22 -p 8080:8080 -p 8888:8888 --name dev-container python-pytan-ssh-vscode-jupyter
Connecting via SSH:
ssh root@localhost -p 2222
rootpassword.Accessing VSCode:
http://localhost:8080.Accessing Jupyter Notebook:
http://localhost:8888.Changing the Root Password:
Adding Additional Python Packages:
requirements.txt file to include any additional packages you need.Pre-loading More Files:
This Docker image is ideal for developers looking for a ready-to-use, flexible environment for using PyStan package when working on windows
Content type
Image
Digest
sha256:443adfe59…
Size
717.3 MB
Last updated
over 2 years ago
docker pull arannentriki/pystan_env