Jupyter Lab with Python math libraries on Arch Linux. Access at localhost:8888.
1.0K
A Docker container providing a Jupyter Lab environment with mathematical computing capabilities, built on Arch Linux. This container offers a ready-to-use environment for mathematical analysis, data science, and computational research.
This Docker image creates an isolated environment with:
The container attempts to install SageMath from the Arch User Repository (AUR) but gracefully falls back to a Python environment with mathematical libraries if SageMath installation fails.
# Pull and run the container
docker run -d -p 8888:8888 \
-v $(pwd)/notebooks:/home/sageuser/notebooks \
--name sage-container \
appalachianmounta1n/sage-math
# Access Jupyter Lab at http://localhost:8888
# Clone the repository
git clone https://github.com/AppalachianMounta1n/Docker-SageMath.git
cd Docker-SageMath
# Build the image
sudo docker build -t sage-math .
# Run the container
sudo docker run -d -p 8888:8888 \
-v $(pwd)/notebooks:/home/sageuser/notebooks \
--name sage-container \
sage-math
# Basic run command
sudo docker run -d -p 8888:8888 \
-v $(pwd)/notebooks:/home/sageuser/notebooks \
--name sage-container \
appalachianmounta1n/sage-math
http://localhost:8888# Stop the container
sudo docker stop sage-container
# Start the container
sudo docker start sage-container
# View logs
sudo docker logs sage-container
# Remove the container
sudo docker rm sage-container
# Access container shell (for debugging)
sudo docker exec -it sage-container /bin/bash
The container mounts a local notebooks directory to persist your work:
# Create notebooks directory
mkdir notebooks
# Run with volume mounting
sudo docker run -d -p 8888:8888 \
-v $(pwd)/notebooks:/home/sageuser/notebooks \
--name sage-container \
appalachianmounta1n/sage-math
Your notebooks and data will be saved in the local notebooks directory and persist between container restarts.
# Check container logs
sudo docker logs sage-container
# Check if port 8888 is already in use
sudo netstat -tlnp | grep 8888
# Remove conflicting container
sudo docker rm sage-container
# Check if container is running
sudo docker ps
# Check container logs for errors
sudo docker logs sage-container
# Restart the container
sudo docker restart sage-container
# Ensure notebooks directory has correct permissions
chmod 755 notebooks
# Run container with proper volume mounting
sudo docker run -d -p 8888:8888 \
-v $(pwd)/notebooks:/home/sageuser/notebooks \
--name sage-container \
appalachianmounta1n/sage-math
If you need additional packages, install them within Jupyter notebooks:
# Install packages in a notebook cell
!pip install package_name
# Or use conda if available
!conda install package_name
# Clone the repository
git clone https://github.com/AppalachianMounta1n/Docker-SageMath.git
cd Docker-SageMath
# Modify the Dockerfile as needed
# Build the image
sudo docker build -t my-sage-math .
# Run your custom image
sudo docker run -d -p 8888:8888 \
-v $(pwd)/notebooks:/home/sageuser/notebooks \
--name my-container \
my-sage-math
This project is open source. Please check the repository for specific licensing information.
For issues, questions, or contributions:
Content type
Image
Digest
sha256:e78d6a471…
Size
1.4 GB
Last updated
about 1 year ago
docker pull appalachianmounta1n/sage-math