10 lines
		
	
	
		
			287 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			287 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/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
 |