Hi Lucas, You can get current paragraph Id by calling
%spark z.getInterpreterContext().getParagraphId() I'm not quite sure i understand your question correctly, but hope this helps. Thanks, moon On Mon, Oct 12, 2015 at 5:29 PM Partridge, Lucas (GE Aviation) < lucas.partri...@ge.com> wrote: > Does anyone please know how to find out what paragraph your Scala code is > running in at runtime? I’m using the standalone distribution of Zeppelin, > zeppelin-0.5.0-incubating.tgz. > > > > I want to write some Scala code that does one thing if it’s being executed > in the same paragraph as another call to my code, but another if it’s > executing in a different paragraph to the other call. (Specifically I want > to create a new figure or chart if it’s running in a new paragraph, or add > to an existing figure if it’s running in the same paragraph.) > > > > Many thanks, Lucas. > > > > >