Dynamic Forms
Table of Contents
Teragrep and Apache Zeppelin allow creating dynamically input forms in notebooks. These forms can have a paragraph or a notebook scope.
Interpreter name | Paragraph scope | Notebook scope |
---|---|---|
Angular |
✖ |
✖ |
DPL |
supported |
supported |
Java |
supported |
supported |
Markdown |
supported |
✖ |
PySpark |
supported |
supported |
Python |
✖ |
✖ |
Scala |
supported |
supported |
Shell |
supported |
supported |
Spark SQL |
supported |
supported |
Paragraph Scope
Forms with a paragraph scope are available only in the same paragraph where the form is executed. Paragraph scope forms can be created with Markdown, Shell or Spark SQL, for example.
Notebook Scope
Forms with a notebook scope are available in all paragraphs. These forms can be created either by using markdown form templates or creating forms programmatically.
Interpolated Variable
Use ${variable}
to interpolate a variable. It will fail fast if that variable doesn’t exist.
%dpl
index=audit username="${username}"