You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
I have been using "Code Emitter" in Obsidian to execute Python code and visualize graphs. While the graphs render correctly in the note view within Obsidian, they are not included when exporting the note to a PDF. This issue occurs with several visualization libraries, such as matplotlib, plotly, seaborn, bokeh, altair, and pygal.
Problem Details:
Rendered graphs are not exported to PDF: When exporting notes containing Python-generated graphs, the resulting PDF includes only the code and text, but the visualized graphs are missing. This happens with all of the mentioned libraries.
Code Example: Here's an example using matplotlib. The graph is displayed correctly in Obsidian but is not present in the exported PDF:
importmatplotlib.pyplotaspltimportnumpyasnpx=np.linspace(0, 2*np.pi, 100)
y=np.sin(x)
plt.plot(x, y)
plt.xlabel('x axis')
plt.ylabel('sin(x)')
plt.title('Graph of the Sine Function')
plt.show()
System Information:
Operating System: Darwin (MacOS)
System Version: 24.0.0
Architecture: arm64
Obsidian Environment Details:
Obsidian Version: v1.6.7
Code Emitter Version: 0.3.2
Python Details:
Python Version: 3.12.4 (packaged by Anaconda, Inc.)
Request
Is it possible to add support for including the generated graphs when exporting notes to PDF? This would greatly help with documentation and exporting notes containing visual content generated by code.
The text was updated successfully, but these errors were encountered:
Description:
I have been using "Code Emitter" in Obsidian to execute Python code and visualize graphs. While the graphs render correctly in the note view within Obsidian, they are not included when exporting the note to a PDF. This issue occurs with several visualization libraries, such as
matplotlib
,plotly
,seaborn
,bokeh
,altair
, andpygal
.Problem Details:
Rendered graphs are not exported to PDF: When exporting notes containing Python-generated graphs, the resulting PDF includes only the code and text, but the visualized graphs are missing. This happens with all of the mentioned libraries.
Code Example: Here's an example using
matplotlib
. The graph is displayed correctly in Obsidian but is not present in the exported PDF:System Information:
Obsidian Environment Details:
Python Details:
Request
Is it possible to add support for including the generated graphs when exporting notes to PDF? This would greatly help with documentation and exporting notes containing visual content generated by code.
The text was updated successfully, but these errors were encountered: