%matplotlib inline magic command fails to read variables from previous cells in AWS-EMR Jupyterhub Notebook
问题 I'm trying to plot spark dataset using matplotlib after converting it to pandas dataframe in AWS EMR jupyterhub. I'm able to plot in a single cell using matplotlib like below: %matplotlib inline import matplotlib import matplotlib.pyplot as plt df = [1, 1.6, 3, 4.2, 5, 4, 2.5, 3, 1.5] plt.plot(df) Now the above code snippet works pretty neatly for me. After this sample example, I moved ahead to plot my pandas dataframe from a new/multiple cells in AWS-EMR Jupyterhub like this: -Cell 1-