Hi Eran,
I’m not set up to build but I can do that if you really need me to.  I’m just 
testing with a local Zeppelin setup at the moment but I will need to talk to a 
remote Spark cluster on Hadoop at some point.
Was your working example from a build of the latest code running locally?
Thanks,
Lucas.


From: IT CTO [mailto:goi....@gmail.com]
Sent: 07 October 2015 13:13
To: users@zeppelin.incubator.apache.org
Subject: Re: Can the %html directive not print variables defined in the same 
paragraph?

I think release 0.5.0 does not include this fix.
Can you build from latest?
Which configuration are you interested in? local? CDH?
Eran

On Wed, Oct 7, 2015 at 1:19 PM Partridge, Lucas (GE Aviation) 
<lucas.partri...@ge.com<mailto:lucas.partri...@ge.com>> wrote:
Thanks Eran.  It was unzipped from a downloaded copy of 
zeppelin-0.5.0-incubating.tgz.

Was the bug fixed before or after zeppelin-0.5.0-incubating.tgz was released?  
(BTW To doublecheck I preceded the 2 lines with %spark like you did but I still 
get the same result.)
Thanks,
Lucas.

From: IT CTO [mailto:goi....@gmail.com<mailto:goi....@gmail.com>]
Sent: 07 October 2015 10:12
To: 
users@zeppelin.incubator.apache.org<mailto:users@zeppelin.incubator.apache.org>
Subject: Re: Can the %html directive not print variables defined in the same 
paragraph?

Which version of zeppelin are you using?
older version had an issue with the display system showing only the first 
output and then handling the rest as text. Newer version should work fine.
[Selection_023.png]
Eran

On Wed, Oct 7, 2015 at 11:53 AM Partridge, Lucas (GE Aviation) 
<lucas.partri...@ge.com<mailto:lucas.partri...@ge.com>> wrote:
Hi,

If I do this in one paragraph:

val name = “Bob”
println(s”%html <h3>Hello $name</h3>”)

I get this result:
name: String = Bob
%html <h3>Hello $name</h3>

I wasn’t expecting that!  But if I move the println statement to a second 
paragraph and run it then I get the heading “Hello Bob” that I intended.

It appears that variables defined in the same paragraph as the %html directive 
are not visible to %html.  Is this by design or a bug please?
Thanks,
Lucas.

--
Eran | "You don't need eyes to see, you need vision" (Faithless)
--
Eran | "You don't need eyes to see, you need vision" (Faithless)

Reply via email to