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> 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] > *Sent:* 07 October 2015 10:12 > *To:* 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. > > [image: Selection_023.png] > > Eran > > > > On Wed, Oct 7, 2015 at 11:53 AM Partridge, Lucas (GE Aviation) < > 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)