From 9616151fc8198fcec7c83eb2a35682aceb571a08 Mon Sep 17 00:00:00 2001 From: hotwa Date: Wed, 27 Dec 2023 10:11:00 +0800 Subject: [PATCH] update add new kernel methond --- spawnerdockerfile/README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/spawnerdockerfile/README.md b/spawnerdockerfile/README.md index 3ea4824..9f101fa 100644 --- a/spawnerdockerfile/README.md +++ b/spawnerdockerfile/README.md @@ -21,4 +21,18 @@ Please visit the project documentation site for help to use and contribute to th cp docker-stacks/images/base-notebook/* ./spawnerdockerfile/ cd spawnerdockerfile docker buildx build -t hotwa/notebook:latest . -f Dockerfile.base-notebook --load +``` + +# 添加虚拟环境到jupyterhub + +```shell +# 创建新的虚拟环境 +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 plot --display-name "Plot Environment" ``` \ No newline at end of file