Repository: zeppelin
Updated Branches:
  refs/heads/master 89e2e0246 -> f1c48e87e


[ZEPPELIN-2821] Fix Missing import

### What is this PR for?
The python interpreter has a bug when trying to render matplotlib images from 
the z.show() function.  Line 139 of 
`python/src/main/resources/python/zeppelin_python.py` references un-imported 
package `base64`.  `import base64` was added to the file to prevent this error 
in the future.

### What type of PR is it?
Bug Fix

### Todos
* [x] - Add missing `base64` module to 
`python/src/main/resources/python/zeppelin_python.py`

### What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-2821

* Open an issue on Jira https://issues.apache.org/jira/browse/ZEPPELIN/
* Put link here, and add [ZEPPELIN-*Jira number*] in PR title, eg. 
[ZEPPELIN-533]

### How should this be tested?
Display a matplotlib image with zeppelin:
```python
import matplotlib.pyplot as plt
plt.plot([1,2,3,4])
z.show(plt)
```

### Questions:
* Does the licenses files need update?
no
* Is there breaking changes for older versions?
no
* Does this needs documentation?
no

Author: Shiem Edelbrock <shiem.edelbr...@me.com>

Closes #2511 from Sdedelbrock/patch-1 and squashes the following commits:

2627e70 [Shiem Edelbrock] Fix Missing import


Project: http://git-wip-us.apache.org/repos/asf/zeppelin/repo
Commit: http://git-wip-us.apache.org/repos/asf/zeppelin/commit/f1c48e87
Tree: http://git-wip-us.apache.org/repos/asf/zeppelin/tree/f1c48e87
Diff: http://git-wip-us.apache.org/repos/asf/zeppelin/diff/f1c48e87

Branch: refs/heads/master
Commit: f1c48e87ee32888c2054d64dc50a883e8b4c78f6
Parents: 89e2e02
Author: Shiem Edelbrock <shiem.edelbr...@me.com>
Authored: Mon Jul 31 13:19:30 2017 -0700
Committer: Lee moon soo <m...@apache.org>
Committed: Wed Aug 9 09:35:17 2017 -0700

----------------------------------------------------------------------
 python/src/main/resources/python/zeppelin_python.py | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zeppelin/blob/f1c48e87/python/src/main/resources/python/zeppelin_python.py
----------------------------------------------------------------------
diff --git a/python/src/main/resources/python/zeppelin_python.py 
b/python/src/main/resources/python/zeppelin_python.py
index eff8824..446201d 100644
--- a/python/src/main/resources/python/zeppelin_python.py
+++ b/python/src/main/resources/python/zeppelin_python.py
@@ -24,6 +24,7 @@ import ast
 import traceback
 import warnings
 import signal
+import base64
 
 from io import BytesIO
 try:

Reply via email to