Skip to content
Snippets Groups Projects
Commit b20a93af authored by Emmanuel Bruno's avatar Emmanuel Bruno
Browse files

simplifies latex installation.

parent a53a71ce
No related branches found
No related tags found
No related merge requests found
......@@ -6,9 +6,9 @@ RUN apt-get update && apt-get install -y \
curl \
less \
openssh-client \
texlive \
texlive-lang-french \
texlive-latex-extra \
# texlive \
# texlive-lang-french \
# texlive-latex-extra \
vim \
unzip \
zip && \
......@@ -33,6 +33,8 @@ ENV PATH=/opt/bin:$PATH
# RUN jupyter labextension install @jupyterlab/latex doesn't work with lab 3.0
# SO we test a fork. TODO: Multistage Build
COPY condarc /home/jovyan/.condarc
RUN echo -e "\e[93m***** Install Jupyter Lab Extensions ****\e[38;5;241m" && \
pip install --quiet --no-cache-dir --upgrade \
jupyter-book==0.10.2 \
......@@ -40,18 +42,35 @@ RUN echo -e "\e[93m***** Install Jupyter Lab Extensions ****\e[38;5;241m" && \
nbgitpuller==0.9.0 \
jupyterlab-git==0.30.1 \
jupyterlab-system-monitor==0.8.0 && \
# pip install jupyterlab_templates && \
# jupyter labextension install jupyterlab_templates && \
# jupyter serverextension enable --py jupyterlab_templates && \
conda install defaults::nb_conda_kernels && \
echo -e "\e[93m***** Install Jupyter LaTeX ****\e[38;5;241m" && \
cd /tmp && \
git clone https://github.com/joequant/jupyterlab-latex.git && \
cd jupyterlab-latex && \
pip3 install -e . && \
jlpm install && \
jlpm run build && \
jupyter labextension install . && \
jlpm cache clean && \
cd && \
rm -rf /tmp/jupyterlab-latex && \
conda install -c conda-forge jupyterlab-drawio==0.9.0 && \
conda install -c conda-forge jupyterlab_code_formatter && \
conda install black isort && \
pip install jupyterlab-lsp 'python-lsp-server[all]' && \
jlpm add --dev \
bash-language-server \
vscode-css-languageserver-bin \
dockerfile-language-server-nodejs \
vscode-html-languageserver-bin \
sql-language-server \
javascript-typescript-langserver \
vscode-json-languageserver-bin \
yaml-language-server && \
conda install -c conda-forge tectonic texlab chktex && \
# echo -e "\e[93m***** Install Jupyter LaTeX ****\e[38;5;241m" && \
# cd /tmp && \
# git clone https://github.com/joequant/jupyterlab-latex.git && \
# cd jupyterlab-latex && \
# pip3 install -e . && \
# jlpm install && \
# jlpm run build && \
# jupyter labextension install . && \
# jlpm cache clean && \
# cd && \
# rm -rf /tmp/jupyterlab-latex && \
echo -e "\e[93m**** Installs Code Server Web ****\e[38;5;241m" && \
curl -fsSL https://code-server.dev/install.sh | sh -s -- --prefix=/opt --method=standalone && \
mkdir -p $CODESERVEREXT_DIR && \
......@@ -83,4 +102,3 @@ RUN [[ ! -f /home/jovyan/.jupyter/jupyter_config.py ]] && touch /home/jovyan/.ju
USER $NB_USER
COPY condarc /home/jovyan/.condarc
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment