Skip to content

Commit a14fe3a

Browse files
committed
add jupyterlab
1 parent 327aee1 commit a14fe3a

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

python-conda/Dockerfile

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,12 +215,11 @@ RUN /opt/conda/bin/python3 -m pip install --no-cache-dir \
215215
tornado==6.1 \
216216
pystan==3.0.1 \
217217
pycairo==1.20.0 \
218-
numpy==1.20.2 \
218+
numpy==1.19.2 \
219219
tensorflow==2.3.2 \
220220
tensorboard==2.3.0 \
221-
scipy==1.6.3 \
221+
scipy==1.5.3 \
222222
scikit-learn==0.24.2 \
223-
jupyter==1.0.0 \
224223
typeguard==2.11.1 \
225224
python-language-server[all] \
226225
matplotlib==3.4.1
@@ -234,9 +233,29 @@ RUN /opt/conda/bin/python3 -m pip install --no-cache-dir --ignore-installed -r r
234233
RUN jupyter nbextensions_configurator enable && \
235234
jupyter contrib nbextension install && \
236235
jupyter nbextension enable --py --sys-prefix widgetsnbextension && \
236+
jupyter serverextension enable --py jupyterlab --sys-prefix && \
237+
jupyter labextension install --no-build @jupyter-widgets/jupyterlab-manager && \
238+
jupyter labextension install --no-build @krassowski/jupyterlab-lsp && \
237239
jupyter serverextension enable --py jupyter_lsp && \
240+
jupyter labextension install --no-build @jupyterlab/toc && \
238241
jupyter nbextension enable execute_time/ExecuteTime && \
239242
jupyter nbextension enable toc2/main
243+
RUN jupyter labextension install \
244+
@hokyjack/jupyterlab-monokai-plus \
245+
@ryantam626/jupyterlab_code_formatter \
246+
@jupyterlab/toc \
247+
@axlair/jupyterlab_vim \
248+
@pyviz/jupyterlab_pyviz && \
249+
@bokeh/jupyter_bokeh && \
250+
jupyter labextension install --no-build jupyterlab-nvdashboard && \
251+
# jupyter serverextension enable --py jupyterlab_code_formatter && \
252+
jupyter lab build --dev-build=False --minimize=False
253+
WORKDIR /tmp
254+
RUN wget https://linux.kite.com/dls/linux/current && \
255+
chmod 777 current && \
256+
sed -i 's/"--no-launch"//g' current > /dev/null && \
257+
./current --install ./kite-installer
258+
240259

241260
# Copy Backend.Ai multi-node support
242261
COPY ./runner-scripts/bootstrap.sh /opt/container/
@@ -249,7 +268,7 @@ Run /opt/conda/bin/python3 -m ipykernel install --display-name "Conda python 3.8
249268
LABEL ai.backend.kernelspec="1" \
250269
ai.backend.envs.corecount="OPENBLAS_NUM_THREADS,OMP_NUM_THREADS,NPROC" \
251270
ai.backend.features="batch query uid-match user-input" \
252-
ai.backend.base-distro="ubuntu16.04" \
271+
ai.backend.base-distro="centos7.6" \
253272
ai.backend.resource.min.cpu="1" \
254273
ai.backend.resource.min.mem="1g" \
255274
ai.backend.resource.min.cuda.device=0 \

0 commit comments

Comments
 (0)