Files
docker-jupyterhub/spawnerdockerfile
2024-02-22 17:38:41 +08:00
..
2024-01-28 19:12:10 +08:00
2024-01-28 19:12:10 +08:00
2024-02-22 17:38:41 +08:00
2024-02-22 16:55:08 +08:00
2023-12-27 10:27:23 +08:00
2023-12-26 22:36:39 +08:00
2023-12-26 22:36:39 +08:00
2023-12-26 22:36:39 +08:00
2023-12-26 22:36:39 +08:00

Base Jupyter Notebook Stack

Images hosted on Docker Hub are no longer updated. Please, use quay.io image

docker pulls docker stars image size

GitHub Actions in the https://github.com/jupyter/docker-stacks project builds and pushes this image to the Registry.

Please visit the project documentation site for help to use and contribute to this image and others.

构建docker-compose spawner镜像的Dockerfile

构建基础镜像参考

cp docker-stacks/images/base-notebook/* ./spawnerdockerfile/
cd spawnerdockerfile
docker buildx build -t hotwa/notebook:latest . -f Dockerfile.base-notebook --load

添加虚拟环境到jupyterhub

# 创建新的虚拟环境
micromamba create -n plot -c conda-forge scienceplots autopep8 python=3 ipykernel pandas numpy matplotlib scipy seaborn orange3 -y
micromamba run -n plot python -m pip install bamboolib
# 激活需要添加的虚拟环境
micromamba activate plot
# 环境中安装ipykernel
micromamba install -c conda-forge ipykernel -y
# 将新的虚拟环境添加为一个jupyter的内核
micromamba run -n plot python -m ipykernel install --user --name="sciplot" --display-name="SCIPlot Environment"

micromamba 提示需要初始化 解决方法

eval "$(micromamba shell hook --shell bash)"

或者使用

miromamba init
source ~/.bashrc

这个操作会激活micromamba(mamba, conda)的安装目录etc/profile.d/micromamba.sh激活添加到bash初始化文件.bashrc里面