You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by "Carlos Diogo (Jira)" <ji...@apache.org> on 2021/03/09 17:08:00 UTC

[jira] [Created] (ZEPPELIN-5281) Expose ZeppelinContext interpret(string) method

Carlos Diogo created ZEPPELIN-5281:
--------------------------------------

             Summary: Expose ZeppelinContext interpret(string) method
                 Key: ZEPPELIN-5281
                 URL: https://issues.apache.org/jira/browse/ZEPPELIN-5281
             Project: Zeppelin
          Issue Type: Improvement
            Reporter: Carlos Diogo


Making the Zeppelin context interpret() method available would allow for easy code injection from string in a notebook

For python there is the exec function , with which we can load some python code from file and then execute it as a pre-code for a note - like an include

For Java and Scala , such functionality does not exist. This is limiting our ability to re-use code within zeppelin - compiling to Jars and then adding them to Zeppelin is not very interactive

With the exposure of the interpret() one could inject from a file (or other source) any code - scala, python, sql(jdbc) - and execute it

Current workaround we have in place, is to use the restapi to inject the code to execute in a paragraph of the note.

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)