From 0c85798f7703f29a2a3f8068d266cbe2a0addb51 Mon Sep 17 00:00:00 2001 From: philcarmona <47579183+philcarmona@users.noreply.github.com> Date: Thu, 2 Apr 2020 11:45:14 +0200 Subject: [PATCH] Add files via upload --- apt.txt | 7 +++++++ postBuild | 9 +++++++++ 2 files changed, 16 insertions(+) create mode 100644 apt.txt create mode 100644 postBuild diff --git a/apt.txt b/apt.txt new file mode 100644 index 0000000..64aabeb --- /dev/null +++ b/apt.txt @@ -0,0 +1,7 @@ +texlive-latex-base +texlive-latex-recommended +texlive-science +texlive-latex-extra +texlive-fonts-recommended +dvipng +ghostscript diff --git a/postBuild b/postBuild new file mode 100644 index 0000000..00477e1 --- /dev/null +++ b/postBuild @@ -0,0 +1,9 @@ +#!/bin/bash + +# run matplotlib once to generate the font cache +python -c "import matplotlib as mpl; mpl.use('Agg'); import pylab as plt; fig, ax = plt.subplots(); fig.savefig('test.png')" + +test -e test.png && rm test.png + +jupyter labextension install @jupyterlab/latex +jupyter lab build