You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by "Andreas Weise (Jira)" <ji...@apache.org> on 2020/08/26 20:21:00 UTC

[jira] [Created] (ZEPPELIN-5019) Enable configurable HTML addons, e.g. 3rd Party JS Libs

Andreas Weise created ZEPPELIN-5019:
---------------------------------------

             Summary: Enable configurable HTML addons, e.g. 3rd Party JS Libs
                 Key: ZEPPELIN-5019
                 URL: https://issues.apache.org/jira/browse/ZEPPELIN-5019
             Project: Zeppelin
          Issue Type: Improvement
          Components: zeppelin-server
    Affects Versions: 0.9.0
            Reporter: Andreas Weise


see the original thread here

[https://lists.apache.org/thread.html/cdb6b87516629093695f5699869942a4bc92c97a2fc93156dc0baf86%40%3Cusers.zeppelin.apache.org%3E]

 

Currently its hard to integrate certain plotting libraries efficiently in one single zeppelin notebook. efficiently here mean  in sense of how often library code needs to be embedded into a single notebook. while few plotting libraries provide APIs to properly enable lazy loading of their JS library (e.g. bokeh), others do not (e.g. plotly), which results in large overhead in notebooks with couple of plots, where each plot embeds the library code again and again. attempts to only embed library code in the first paragraph is not feasible, as its not guaranteed, that the this paragraph will loaded at first by the browser. Any attempt to load libraries via paragraph code will end up in such synchronization issues when the library does not support synchronization on its own.

A general solution for that problem is to enable the loading of 3rd party JS libraries within the root HTML.

Hence this issue will introduce a new optional zeppelin configuration that allows administrators to add global addons to the zeppelin root HTML, so analysts can rely on that the JS library is already loaded for every paragraph.

As there exist two places in HTML where initial loading may be placed, the issue will introduce the following configuration property:
 * zeppelin.server.html.head.addon > addon html code to be placed at the end of the html->head section 
 * zeppelin.server.html.body.addon > addon html code to be placed at the end of the html->body section

 



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