You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by hafizur-rahman <gi...@git.apache.org> on 2016/09/09 16:55:47 UTC

[GitHub] zeppelin pull request #1422: Allow matplotlib plot display in pyspark contex...

GitHub user hafizur-rahman opened a pull request:

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

    Allow matplotlib plot display in pyspark context

    ### What is this PR for?
    Similar to %python context, allow matplotlib plot display in %pyspark context
    
    ### What type of PR is it?
    Improvement
    
    ### How should this be tested?
    The following code should display a graph:
    
    ```
    %pyspark
    
    import numpy as np
    import matplotlib
    
    matplotlib.use('Agg')
    
    import matplotlib.pyplot as plt
    
    x = np.linspace(0, 1)
    y = np.sin(4 * np.pi * x) * np.exp(-5 * x)
    
    plt.figure()
    
    plt.fill(x, y, 'r')
    plt.grid(True)
    
    z.show(plt, fmt="svg")
    plt.close()
    ```

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

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

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

    https://github.com/apache/zeppelin/pull/1422.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 #1422
    
----
commit 36ea45b277aadc3e06b11c3713af5a19e9e7b32c
Author: Hafizur Rahman <bi...@gmail.com>
Date:   2016-09-09T16:51:26Z

    Allow matplotlib plot display in pyspark context

----


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #1422: Allow matplotlib plot display in pyspark context

Posted by hafizur-rahman <gi...@git.apache.org>.
Github user hafizur-rahman commented on the issue:

    https://github.com/apache/zeppelin/pull/1422
  
    Ok, please merge


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #1422: Allow matplotlib plot display in pyspark context

Posted by FRosner <gi...@git.apache.org>.
Github user FRosner commented on the issue:

    https://github.com/apache/zeppelin/pull/1422
  
    Can we have some integration test to verify this one?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #1422: Allow matplotlib plot display in pyspark context

Posted by bzz <gi...@git.apache.org>.
Github user bzz commented on the issue:

    https://github.com/apache/zeppelin/pull/1422
  
    This code looks very similar to the one we have in [python interpreter](https://github.com/apache/zeppelin/blob/master/python/src/main/resources/bootstrap.py#L167), contributed by @bustios and @agoodm


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #1422: Allow matplotlib plot display in pyspark context

Posted by Leemoonsoo <gi...@git.apache.org>.
Github user Leemoonsoo commented on the issue:

    https://github.com/apache/zeppelin/pull/1422
  
    Could you try indent code with 2 spaces like other part of codes do?



---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin pull request #1422: Allow matplotlib plot display in pyspark contex...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

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


---

[GitHub] zeppelin issue #1422: Allow matplotlib plot display in pyspark context

Posted by Leemoonsoo <gi...@git.apache.org>.
Github user Leemoonsoo commented on the issue:

    https://github.com/apache/zeppelin/pull/1422
  
    LGTM and merge if there're no more discussions.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #1422: Allow matplotlib plot display in pyspark context

Posted by hafizur-rahman <gi...@git.apache.org>.
Github user hafizur-rahman commented on the issue:

    https://github.com/apache/zeppelin/pull/1422
  
    Ok, giving a try...


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #1422: Allow matplotlib plot display in pyspark context

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on the issue:

    https://github.com/apache/zeppelin/pull/1422
  
    where are we on this?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---