Can global variables be set in a Zeppelin Notebook?

I am trying to create a panel with several paragraphs using a Zeppelin notepad. I would like people using the toolbar to enter certain parameters only once. For example, if I create an information panel with information about various websites, the user of the information panel only needs to select a specific website about which he wants to receive information, and the entire panel of several paragraphs will be updated. Is it possible? How do I set global variables in notepad?

To clarify, the input parameter that I intend to use for Zeppelin is called "dynamic form" .

+5
source share
2 answers

Use z.putand z.getcan share the variable on different laptops.

z.put("name", "zeppelin")
z.get("name")

Perhaps you can combine with z.angularBindand z.angularto use it in the control panel. ref How to put a variable in z ZeppelinContext in javascript in Zeppelin?

+4
source

You can use global variables in SQL using the syntax $${variableName}instead ${variableName}. [Link] .

When you start one of the paragraphs that uses global variables, the input fields for global variables will appear above all paragraphs.

0
source

Source: https://habr.com/ru/post/1659139/


All Articles