Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ for Binder. This repository also makes use of [JupyterLab Latex](https://github.

* `apt.txt` for apt-installing the latex components
* `environment.yml` for installing the python dependencies
* `postBuild` for forcing matplotlib to build the font cache and for installing JupyterLab Latex.
* `postBuild` for forcing matplotlib to build the font cache

Thanks to [m-weigand](https://github.com/m-weigand) for giving
[inspiration for this repo](https://github.com/m-weigand/binder-example-latex-mpl/blob/master/index.ipynb)!
2 changes: 1 addition & 1 deletion apt.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dvipng
ghostscript
texlive-fonts-recommended
texlive-generic-recommended
texlive-plain-generic
texlive-latex-base
texlive-latex-extra
texlive-latex-recommended
Expand Down
2 changes: 1 addition & 1 deletion index.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
],
"source": [
"fig, ax = plt.subplots()\n",
"ax.text(.5, .5, \"\\LaTeX $r_{ez}^{ul}$!!!!!!\", fontsize=30, horizontalalignment='center')\n",
"ax.text(.5, .5, r\"\\LaTeX $r_{ez}^{ul}$!!!!!!\", fontsize=30, horizontalalignment='center')\n",
"ax.set_axis_off()"
]
},
Expand Down
3 changes: 0 additions & 3 deletions postBuild
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,3 @@
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

# install JupyterLab extension
jupyter labextension install @jupyterlab/latex