Can you throw a screenshot of the code where fig is defined?
I meant the object instance itself so we can see what class it is and if its initialised. Also that looks like a matplotlib plot, not a plotly plot which you logging call indicates
LudicrousParrot69 its strange, I get the plot but the type in None
Can you print out fig to verify it at all? The logger should call to_plotly_json on the figure, so Im guessing its None
So Im guessing either return_fig is False when you ran this, or plt.cdf is having issues (which it can). Id always recommend explicitly creating the figure instead of using the plt shortcuts.
fix, ax = plt.subplots()
ax.plot(…)
etc
LudicrousParrot69 here is the plot type, but I still get an error.AttributeError: 'Figure' object has no attribute 'to_plotly_json'
Yes, this is expected, because you are trying to log a matplotlib figure as if it was a plotly figure. Try using report_matplotlib_figure