From 4865b47b193f1eb8b7920e0161dbe889a096558e Mon Sep 17 00:00:00 2001 From: suluyan Date: Thu, 16 Jul 2026 15:26:20 +0800 Subject: [PATCH] feat(docker): add notebook deps for stable and latest images Install ipywidgets, ipykernel, jupyter_core, nbconvert, and nbclient outside the INSTALL_MS_DEPS gate so latest GPU images also support python -m jupyter nbconvert for agent notebook debugging. Co-authored-by: Cursor --- docker/Dockerfile.ubuntu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile.ubuntu b/docker/Dockerfile.ubuntu index 7ebb7725..2f18a3a3 100644 --- a/docker/Dockerfile.ubuntu +++ b/docker/Dockerfile.ubuntu @@ -33,8 +33,7 @@ if [ "$INSTALL_MS_DEPS" = "True" ]; then \ pip install --no-cache-dir https://modelscope.oss-cn-beijing.aliyuncs.com/packages/imageio_ffmpeg-0.4.9-py3-none-any.whl --no-dependencies --force && \ pip install --no-cache-dir 'scipy' && \ pip install --no-cache-dir funtextprocessing typeguard==2.13.3 scikit-learn -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html && \ - pip install --no-cache-dir 'decord>=0.6.0' mpi4py paint_ldm ipykernel fasttext -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html && \ - pip install --no-cache-dir ipywidgets && \ + pip install --no-cache-dir 'decord>=0.6.0' mpi4py paint_ldm fasttext -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html && \ pip install --no-cache-dir 'blobfile>=1.0.5' && \ pip uninstall MinDAEC -y && \ pip install https://modelscope.oss-cn-beijing.aliyuncs.com/releases/dependencies/MinDAEC-0.0.2-py3-none-any.whl && \ @@ -42,7 +41,8 @@ if [ "$INSTALL_MS_DEPS" = "True" ]; then \ else \ pip install --no-cache-dir -r /var/modelscope/framework.txt && \ pip cache purge; \ -fi +fi && \ +pip install --no-cache-dir ipywidgets ipykernel jupyter_core nbconvert nbclient ARG CUR_TIME={cur_time} RUN echo $CUR_TIME