David Webber created ZEPPELIN-2107: -------------------------------------- Summary: matplotlib broken under zeppelin 0.7.0, matplotlib 2.0.0, python3 Key: ZEPPELIN-2107 URL: https://issues.apache.org/jira/browse/ZEPPELIN-2107 Project: Zeppelin Issue Type: Bug Reporter: David Webber
Long time lurker first time poster. Sorry if this is the wrong place or if this bug is due to user error. I installed zeppelin 0.7.0 from binaries and attempted to use a python3-based venv, but I find that matplotlib appears to be broken. input cell: %python import matplotlib import sys print(sys.version) print(sys.executable) print(matplotlib.__version__) import matplotlib.pyplot as plt plt.plot([1,2,3]) output cell: 3.4.2 (default, Oct 8 2014, 10:45:20) [GCC 4.9.1] /app/zeppelin/zeppelin_venv/bin/python 2.0.0 [<matplotlib.lines.Line2D object at 0x7fcf669d79b0>] Traceback (most recent call last): File "", line 1, in File "/app/zeppelin/zeppelin/interpreter/lib/python/backend_zinline.py", line 299, in displayhook show() File "/app/zeppelin/zeppelin/interpreter/lib/python/backend_zinline.py", line 71, in __call__ manager.show(**kwargs) File "/app/zeppelin/zeppelin/interpreter/lib/python/backend_zinline.py", line 204, in show zdisplay(self.canvas.figure, **kwargs) File "/app/zeppelin/zeppelin/interpreter/lib/python/backend_zinline.py", line 286, in zdisplay src = fig.canvas.manager.angular_bind(**kwargs) File "/app/zeppelin/zeppelin/interpreter/lib/python/backend_zinline.py", line 158, in angular_bind src = self.canvas.get_bytes(**kwargs) File "/app/zeppelin/zeppelin/interpreter/lib/python/backend_zinline.py", line 97, in get_bytes byte_str = b"data:image/%s;base64," %fmt TypeError: unsupported operand type(s) for %: 'bytes' and 'bytes' -- This message was sent by Atlassian JIRA (v6.3.15#6346)