When putting code inside of a function, embedding is throwing an error of <code block>:11: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.
For some reason if it is out of a function, it works nominally. If I do matplotlib.use('Tkagg') or any other interactive back end. It will open a separate window and not embed regardless of the embed or notebook setting
On MacOS 13.4.1 Obsidian 1.4.16 execute-code 1.9.0 Python 3.10 Matplotlib 3.6.0
When putting code inside of a function, embedding is throwing an error of
<code block>:11: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.
For some reason if it is out of a function, it works nominally. If I do
matplotlib.use('Tkagg')
or any other interactive back end. It will open a separate window and not embed regardless of the embed or notebook settingWould greatly appreciate a patch or some guidance. Let me know if there is anything I can do