From e220aa9da67f160863ea46f396ce3d17513dc979 Mon Sep 17 00:00:00 2001 From: Moritz Maxeiner <mm@ucw.sh> Date: Fri, 25 Sep 2020 10:24:00 +0200 Subject: [PATCH] [jupyterlab] add tex support --- jupyterhub/base/Dockerfile | 8 ++++++++ jupyterhub/base/jupyter_notebook_config.py | 1 + 2 files changed, 9 insertions(+) diff --git a/jupyterhub/base/Dockerfile b/jupyterhub/base/Dockerfile index 2bceb11..b5d5d16 100755 --- a/jupyterhub/base/Dockerfile +++ b/jupyterhub/base/Dockerfile @@ -85,6 +85,14 @@ RUN mkdir -p /usr/local/venv && \ && \ ipython kernel install --name=default +RUN apt-get update && \ + apt-get install -y \ + texlive-full \ + && \ + apt-get clean && \ + python${PYTHON_VERSION} -m pip install jupyterlab_latex && \ + jupyter labextension install @jupyterlab/latex + RUN chmod -x /etc/update-motd.d/* WORKDIR "${HOME}" diff --git a/jupyterhub/base/jupyter_notebook_config.py b/jupyterhub/base/jupyter_notebook_config.py index 1578b97..79fd21f 100755 --- a/jupyterhub/base/jupyter_notebook_config.py +++ b/jupyterhub/base/jupyter_notebook_config.py @@ -2,3 +2,4 @@ c.NotebookApp.allow_root = True c.NotebookApp.terminado_settings = {"shell_command": ["/bin/bash", "-l"]} c.MultiKernelManager.default_kernel_name = "default" c.NotebookApp.notebook_dir = "/" +c.LatexConfig.latex_command = "pdflatex" -- GitLab