Using this <https://nixtlaverse.nixtla.io/statsfor...
# general
d
Using this https://nixtlaverse.nixtla.io/statsforecast/docs/getting-started/getting_started_short.html to try it out. Can someone help get the plot instead of just "<Figure size 1600x350 with 1 Axes>" ? If I plot something else works great. Thanks!
j
Can you try running
%matplotlib inline
?
d
Thank you, I already did that and nothing. And if I do this:
%matplotlib inline
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
fig= plt.figure()
ax= fig.add_subplot(111)
ax.plot([1, 2, 3, 4], [10, 20, 25, 30], color= "lightblue", linewidth= 3)
ax.scatter([0.3, 3.8, 1.2, 2.5], [11, 25, 9, 26], color= "darkgreen", marker= "^")
ax.set_xlim(0.5, 4.5)
plt.show()
I do get a plot, so I know the library is working fine.
j
How about running plt.show() after sf.plot?
d
Thank you, but that did not work!
j
In the same cell?
d
Yes! Please keep in mind this is PySpark running in a Jupyter NB on an AWS EMR cluster.
Works great if I select the 'Python 3'. With the PySpark kernel, which means the calculations were done by the nodes, it just displays the <Figure size...> message.