latexipy
latexipy copied to clipboard
Use in Google Colab - RuntimeError: No suitable pdf to png renderer found.
- LaTeXiPy version:1.0.1
- Python version: 3.7.10
- Operating System: Linux (Google Colab)
Description
Trying to use the base function of creating layout that matches Latex
What I Did
import latexipy as lp
lp.latexify()
figure = shap.plots.bar(shap_values=shap_values,max_display=20,show=False) (figure element from the Shap package)
figure.
**Error**:
RuntimeError: No suitable pdf to png renderer found.
It looks like shap.plots.bar()
doesn't return anything?
Some questions:
- Can you give me a minimally working example?
- Does your code work without latexipy?
- What does the expected figure look like?
- Does Google Colab have LaTeX? (I've never used it.)
- Are you able to use the PGF backend on its own on Google Colab?
- What is the output of:
import matplotlib.pyplot as plt
fig = plt.figure()
print(fig.canvas.get_supported_filetypes())