GitHub user Sdedelbrock opened a pull request:

    https://github.com/apache/zeppelin/pull/2522

    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


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/Sdedelbrock/zeppelin patch-1

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/zeppelin/pull/2522.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2522
    
----
commit 2627e709d54c3613d59b5f6d1d127fe0dabdc470
Author: Shiem Edelbrock <shiem.edelbr...@me.com>
Date:   2017-07-31T20:19:30Z

    Fix Missing import
    
    line 139 references un-imported package `base64`, added import statement

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to