zeppelin/python/src/main/resources
Alex Goodman 582981677c ZEPPELIN-1328 - z.show in python interpreter does not display PNG images in python 3
### What is this PR for?
Support for plotting PNG images via matplotlib inline for the python interpreter was recently added (#1329). However, these changes did not work for python3 since it handles strings differently. This PR aims to make the inline plotting compatible with both python 2 and 3.

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

### What is the Jira issue?
* [ZEPPELIN-1328](https://issues.apache.org/jira/browse/ZEPPELIN-1328)

### How should this be tested?
In a python interpreteter cell, make sure the following produce an image:
```python
%python
import matplotlib.pyplot as plt
import numpy as np

x = np.arange(5)
plt.plot(x)
z.show(plt, fmt='png') # Repeat for fmt='svg'
```
This should be tested for both python2 and 3 interpreters (via the interpreter settings page).

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

Author: Alex Goodman <agoodm@users.noreply.github.com>

Closes #1343 from agoodm/ZEPPELIN-1328 and squashes the following commits:

772313f [Alex Goodman] Redo io import structure to make z.show() work for both matplotlib plots and pandas dataframes in python2/3
6a8f3ab [Alex Goodman] Add python3 support for matplotlib inline plotting in python interpreter
2016-08-22 22:37:43 +09:00
..
__init__.py [HOTFXI] Fix python test case and resolve rat license issue 2016-06-23 18:43:49 -07:00
bootstrap.py ZEPPELIN-1328 - z.show in python interpreter does not display PNG images in python 3 2016-08-22 22:37:43 +09:00
bootstrap_input.py Small refactoring of Python interpreter 2016-08-05 12:09:35 +09:00
bootstrap_sql.py ZEPPELIN-1115: Python - interpreter for SQL over DataFrame 2016-07-15 18:37:18 +09:00
interpreter-setting.json ZEPPELIN-1115: add correct %python.sql interpreter name to configuration 2016-07-28 19:50:11 +09:00