mirror of
https://github.com/modelscope/modelscope.git
synced 2026-08-29 10:08:40 +02:00
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:
@@ -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 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 '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 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 'decord>=0.6.0' mpi4py paint_ldm fasttext -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html && \
|
||||||
pip install --no-cache-dir ipywidgets && \
|
|
||||||
pip install --no-cache-dir 'blobfile>=1.0.5' && \
|
pip install --no-cache-dir 'blobfile>=1.0.5' && \
|
||||||
pip uninstall MinDAEC -y && \
|
pip uninstall MinDAEC -y && \
|
||||||
pip install https://modelscope.oss-cn-beijing.aliyuncs.com/releases/dependencies/MinDAEC-0.0.2-py3-none-any.whl && \
|
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 \
|
else \
|
||||||
pip install --no-cache-dir -r /var/modelscope/framework.txt && \
|
pip install --no-cache-dir -r /var/modelscope/framework.txt && \
|
||||||
pip cache purge; \
|
pip cache purge; \
|
||||||
fi
|
fi && \
|
||||||
|
pip install --no-cache-dir ipywidgets ipykernel jupyter_core nbconvert nbclient
|
||||||
|
|
||||||
ARG CUR_TIME={cur_time}
|
ARG CUR_TIME={cur_time}
|
||||||
RUN echo $CUR_TIME
|
RUN echo $CUR_TIME
|
||||||
|
|||||||
Reference in New Issue
Block a user