Skip to content

Commit 7622ec1

Browse files
author
Zerline
committed
Building ipywidgets and jupyter lab building in Dockerfile.
1 parent b3fc39a commit 7622ec1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Dockerfile

+8-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ USER sage
88
ENV HOME /home/sage
99
COPY --chown=sage:sage . ${HOME}/sage-combinat-widgets
1010
WORKDIR ${HOME}/sage-combinat-widgets
11+
RUN sage -pip install --upgrade ipywidgets
1112
RUN sage -pip install jupyterlab
12-
RUN cd ./js && npm run build:labextension && cd ..
13+
RUN cd ./js \
14+
&& npm install \
15+
&& npm run build:labextension \
16+
&& cd ..
1317
RUN sage -pip install .
18+
RUN jupyter labextension install --no-build @jupyter-widgets/jupyterlab-manager \
19+
&& sage -n jupyterlab build \
20+
&& sage -n jupyterlab clean

0 commit comments

Comments
 (0)