You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@zeppelin.apache.org by Aaron Li <aa...@glowing.com> on 2015/09/22 10:18:04 UTC

Hi, can I write python code in zeppelin

hi, thanks for build such an amazing project, especially for the flexible
visulization solution, since I like python, I want to ask can I write
python code in zeppelin, and what's more, can zeppelin render matplotlib
graph object if I use plot functions in matplotlib?

thanks a lot

Re: Hi, can I write python code in zeppelin

Posted by moon soo Lee <mo...@apache.org>.
Here's one example how you can render matplotlib graph

https://www.zeppelinhub.com/viewer/notebooks/aHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL0xlZW1vb25zb28vemVwcGVsaW4tZXhhbXBsZXMvbWFzdGVyLzJBSEhIRkZVOS9ub3RlLmpzb24

On Wed, Sep 23, 2015 at 5:06 PM Aaron Li <aa...@glowing.com> wrote:

> ok, thanks a lot, please let me know if you figure out how to enable
> matplotlib plot in zeppelin, thanks
>
> *---*
>  | *Aaron Li *| Backend Developer | *aaron@glowing.com
> <aa...@glowing.com> *| +86-182-0217-1279
>
> Download Glow from the App Store
> <https://itunes.apple.com/us/app/glow-period-fertility-ovulation/id638021335?mt=8>
> ,  Google Play
> <https://play.google.com/store/apps/details?id=com.glow.android>, or the Amazon
> App Store <http://www.amazon.com/gp/mas/dl/android?p=com.glow.android>
> Download Glow Nurture from the App Store
> <https://itunes.apple.com/us/app/glow-nurture-pregnancy-health/id882398397?mt=8>
>  or
> <https://play.google.com/store/apps/details?id=com.glow.android.nurture>Google
> Play
> <https://play.google.com/store/apps/details?id=com.glow.android.nurture>
>
> On Wed, Sep 23, 2015 at 10:49 AM, Felix Cheung <fe...@hotmail.com>
> wrote:
>
>> I think he meant
>>
>> %pyspark
>>
>> It doesn't support embedded matplotlib plot by itself but it should work
>> with a handy helper function to do some conversion. You can follow up with
>> me directly, should be able to dig this up in git somewhere.
>>
>> _____________________________
>> From: IT CTO <go...@gmail.com>
>> Sent: Tuesday, September 22, 2015 1:21 AM
>> Subject: Re: Hi, can I write python code in zeppelin
>> To: <us...@zeppelin.incubator.apache.org>
>>
>>
>>
>> If it does not work build the code with -Ppyspark option.
>>
>> בתאריך יום ג׳, 22 בספט׳ 2015, 11:20 מאת IT CTO < goi.cto@gmail.com>:
>>
>>> Yes sure try %pysprak and type your vode'
>>>
>>> בתאריך יום ג׳, 22 בספט׳ 2015, 11:18 מאת Aaron Li < aaron@glowing.com>:
>>>
>>>> hi, thanks for build such an amazing project, especially for the
>>>> flexible visulization solution, since I like python, I want to ask can I
>>>> write python code in zeppelin, and what's more, can zeppelin render
>>>> matplotlib graph object if I use plot functions in matplotlib?
>>>>
>>>> thanks a lot
>>>>
>>>> --
>>> Eran | "You don't need eyes to see, you need vision" (Faithless)
>>>
>> --
>> Eran | "You don't need eyes to see, you need vision" (Faithless)
>>
>>
>>
>

Re: Hi, can I write python code in zeppelin

Posted by Aaron Li <aa...@glowing.com>.
ok, thanks a lot, please let me know if you figure out how to enable
matplotlib plot in zeppelin, thanks

*---*
 | *Aaron Li *| Backend Developer | *aaron@glowing.com <aa...@glowing.com> *|
+86-182-0217-1279

Download Glow from the App Store
<https://itunes.apple.com/us/app/glow-period-fertility-ovulation/id638021335?mt=8>
,  Google Play
<https://play.google.com/store/apps/details?id=com.glow.android>, or the Amazon
App Store <http://www.amazon.com/gp/mas/dl/android?p=com.glow.android>
Download Glow Nurture from the App Store
<https://itunes.apple.com/us/app/glow-nurture-pregnancy-health/id882398397?mt=8>
 or
<https://play.google.com/store/apps/details?id=com.glow.android.nurture>Google
Play
<https://play.google.com/store/apps/details?id=com.glow.android.nurture>

On Wed, Sep 23, 2015 at 10:49 AM, Felix Cheung <fe...@hotmail.com>
wrote:

> I think he meant
>
> %pyspark
>
> It doesn't support embedded matplotlib plot by itself but it should work
> with a handy helper function to do some conversion. You can follow up with
> me directly, should be able to dig this up in git somewhere.
>
> _____________________________
> From: IT CTO <go...@gmail.com>
> Sent: Tuesday, September 22, 2015 1:21 AM
> Subject: Re: Hi, can I write python code in zeppelin
> To: <us...@zeppelin.incubator.apache.org>
>
>
>
> If it does not work build the code with -Ppyspark option.
>
> בתאריך יום ג׳, 22 בספט׳ 2015, 11:20 מאת IT CTO < goi.cto@gmail.com>:
>
>> Yes sure try %pysprak and type your vode'
>>
>> בתאריך יום ג׳, 22 בספט׳ 2015, 11:18 מאת Aaron Li < aaron@glowing.com>:
>>
>>> hi, thanks for build such an amazing project, especially for the
>>> flexible visulization solution, since I like python, I want to ask can I
>>> write python code in zeppelin, and what's more, can zeppelin render
>>> matplotlib graph object if I use plot functions in matplotlib?
>>>
>>> thanks a lot
>>>
>>> --
>> Eran | "You don't need eyes to see, you need vision" (Faithless)
>>
> --
> Eran | "You don't need eyes to see, you need vision" (Faithless)
>
>
>

Re: Hi, can I write python code in zeppelin

Posted by Felix Cheung <fe...@hotmail.com>.
I think he meant
%pyspark
It doesn't support embedded matplotlib plot by itself but it should work with a handy helper function to do some conversion. You can follow up with me directly, should be able to dig this up in git somewhere.


    _____________________________
From: IT CTO <go...@gmail.com>
Sent: Tuesday, September 22, 2015 1:21 AM
Subject: Re: Hi, can I write python code in zeppelin
To:  <us...@zeppelin.incubator.apache.org>


    

If it does not work build the code with -Ppyspark option.   
         בתאריך יום ג׳, 22 בספט׳ 2015, 11:20 מאת IT CTO <    goi.cto@gmail.com>:    
          

Yes sure try %pysprak and type your vode'     
               בתאריך יום ג׳, 22 בספט׳ 2015, 11:18 מאת Aaron Li <      aaron@glowing.com>:      
                                       hi, thanks for build such an amazing project, especially for the flexible visulization solution, since I like python, I want to ask can I write python code in zeppelin, and what's more, can zeppelin render matplotlib graph object if I use plot functions in matplotlib?                      
                      thanks a lot                      
                                 --      
             Eran | "You don't need eyes to see, you need vision" (Faithless)              --    
       Eran | "You don't need eyes to see, you need vision" (Faithless)

Re: Hi, can I write python code in zeppelin

Posted by IT CTO <go...@gmail.com>.
If it does not work build the code with -Ppyspark option.

בתאריך יום ג׳, 22 בספט׳ 2015, 11:20 מאת IT CTO <go...@gmail.com>:

> Yes sure try %pysprak and type your vode'
>
> בתאריך יום ג׳, 22 בספט׳ 2015, 11:18 מאת Aaron Li <aa...@glowing.com>:
>
>> hi, thanks for build such an amazing project, especially for the flexible
>> visulization solution, since I like python, I want to ask can I write
>> python code in zeppelin, and what's more, can zeppelin render matplotlib
>> graph object if I use plot functions in matplotlib?
>>
>> thanks a lot
>>
>> --
> Eran | "You don't need eyes to see, you need vision" (Faithless)
>
-- 
Eran | "You don't need eyes to see, you need vision" (Faithless)

Re: Hi, can I write python code in zeppelin

Posted by IT CTO <go...@gmail.com>.
Yes sure try %pysprak and type your vode'

בתאריך יום ג׳, 22 בספט׳ 2015, 11:18 מאת Aaron Li <aa...@glowing.com>:

> hi, thanks for build such an amazing project, especially for the flexible
> visulization solution, since I like python, I want to ask can I write
> python code in zeppelin, and what's more, can zeppelin render matplotlib
> graph object if I use plot functions in matplotlib?
>
> thanks a lot
>
> --
Eran | "You don't need eyes to see, you need vision" (Faithless)