Alexander Rodin created ZEPPELIN-2511:
-----------------------------------------
Summary: Matplotlib angular backend doesn't update plot with
%python backend
Key: ZEPPELIN-2511
URL: https://issues.apache.org/jira/browse/ZEPPELIN-2511
Project: Zeppelin
Issue Type: Bug
Components: zeppelin-interpreter
Affects Versions: 0.7.1
Environment: Python 3.6 and Matplotlib from Anaconda
Ubuntu 16.04
Reporter: Alexander Rodin
I'm trying to run the following code with `%python` interpreter:
First cell:
```python
%python
import numpy as np
import matplotlib.pyplot as plt
plt.close()
z.configure_mpl(close=False, angular=True)
x = np.linspace(0, 50, 100)
plt.plot(x, x)
```
Second cell:
```python
%python
plt.plot(x, x)
```
However the second cell just outputs a string `[<matplotlib.lines.Line2D object
at 0x7fd225dee2e8>]` and doesn't update the plot.
I followed ZEPPELIN-1345 and the PR
https://github.com/apache/zeppelin/pull/1534 and one of the comments confirms
that it should work in %python interpreter as well as in a %pyspark one.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)