Closed RedHeartSecretMan closed 1 year ago
Hi @RedHeartSecretMan it looks like this particular issue (rendering a "sqrt{}" with nothing inside) is an edge case that is missed by matplotlib's LaTeX rendering engine. This can be confirmed by trying to use LaTeX with some matplotlib code:
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
fruits = ['apple', 'blueberry', 'cherry', 'orange']
counts = [40, 100, 30, 55]
bar_labels = ['red', 'blue', '_red', 'orange']
bar_colors = ['tab:red', 'tab:blue', 'tab:red', 'tab:orange']
ax.bar(fruits, counts, label=bar_labels, color=bar_colors)
ax.set_ylabel('Test: $\sqrt{}$')
plt.show()
which is what Gradio uses to render the LaTeX. I would suggest opening an issue here so that all users of matplotlib can benefit: https://github.com/matplotlib/matplotlib/issues
thanks!
Describe the bug
Hello gradio developers:
I have noticed a serious bug with the gradio3.19.1 version I use. When I use the gradio.Markdown() component, any gradio.Markdown () that contains "$\sqrt{}$" in the string, even though I updated the matplotlib version, I hope you can improve as soon as possible
Is there an existing issue for this?
Reproduction
https://github.com/RedHeartSecretMan/PythonScript/blob/main/%E9%A1%B9%E7%9B%AE/OpenAIAPI/ChatGPT/WebChatGPT/Gradio/app.py
Screenshot
No response
Logs
System Info
Severity
blocking all usage of gradio