From 3cfce0e97d1fb00b64a9dda278b0fec8c8c25298 Mon Sep 17 00:00:00 2001 From: philcarmona <47579183+philcarmona@users.noreply.github.com> Date: Wed, 27 May 2020 23:54:38 +0200 Subject: [PATCH] Create postBuild --- postBuild | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 postBuild 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