I am using PySpark
kernel installed through Apache Toree
in Jupyter Notebook
using Anaconda v4.0.0
(Python 2.7.11
). After getting a table from Hive
, use matplotlib/panda
to plot some graph in Jupyter notebook, following the tutorial as below:
%matplotlib inline
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
# Set some Pandas options
pd.set_option('display.notebook_repr_html', False)
pd.set_option('display.max_columns', 20)
pd.set_option('display.max_rows', 25)
normals = pd.Series(np.random.normal(size=10))
normals.plot()
I was stuck at the first link when I tried to use %matplotlib inline which shows
Name: Error parsing magics!
Message: Magics [matplotlib] do not exist!
StackTrace:
Looking at Toree Magic and MagicManager, I realised that %matplotlib
is calling MagicManager
instead of the iPython
in-build magic command.
Is it possible for Apache Toree - PySpark
to use iPython in-build magic command instead?