Prabhjyot Singh created ZEPPELIN-3449:
-----------------------------------------
Summary: 'PyZeppelinContext' object has no attribute
'configure_mpl'
Key: ZEPPELIN-3449
URL: https://issues.apache.org/jira/browse/ZEPPELIN-3449
Project: Zeppelin
Issue Type: Bug
Components: Interpreters
Affects Versions: 0.8.0
Reporter: Prabhjyot Singh
The example below (from one of default notebook - Zeppelin Tutorial/Matplotlib
(Python • PySpark))
{code:java}
%python
z.configure_mpl(width=400, height=300, fmt='svg')
plt.plot([1, 2, 3]){code}
fails with this exception
{code:java}
AttributeErrorTraceback (most recent call last)
<ipython-input-4-503d602b8174> in <module>()
----> 1 z.configure_mpl(width=400, height=300, fmt='svg')
2 plt.plot([1, 2, 3])
AttributeError: 'PyZeppelinContext' object has no attribute
'configure_mpl'{code}
Apart from the above this
{code:java}
%python
import matplotlib.pyplot as plt
plt.plot([1, 2, 3]){code}
also fails to render the image and gives out this message
{code:java}
/tmp/zeppelin_pyspark-7531534346725004203.py:179: UserWarning: Unable to load
inline matplotlib backend, falling back to Agg warnings.warn("Unable to load
inline matplotlib backend, " [<matplotlib.lines.Line2D object at
0x307df90>]{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)