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 <cursoragent@cursor.com>
This commit is contained in:
suluyan
2026-07-16 15:26:20 +08:00
parent d06f6912d0
commit 4865b47b19

View File

@@ -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