forked from apache/zeppelin
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request apache#115 from NFLabs/gh-pages-notebook
Update homepage for next release
- Loading branch information
Showing
30 changed files
with
294 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
layout: page | ||
title: "Display" | ||
description: "" | ||
group: manual | ||
--- | ||
{% include JB/setup %} | ||
|
||
|
||
### Display | ||
|
||
Zeppelin prints output of langauge backend in text, default. | ||
However, if output contains some magic keyword, Zeppelin automatically formatting the output as Table, Chart, Image, Html. | ||
|
||
<br /> | ||
#### Display as Text | ||
|
||
If output has no magic keyword provided Zeppelin print the output in text. | ||
|
||
<img src="../assets/themes/zeppelin/img/screenshots/display_text.png" /> | ||
|
||
<br /> | ||
#### Display as Html | ||
|
||
If ouput starts with %html, it interpreted as a html code. | ||
|
||
<img src="../assets/themes/zeppelin/img/screenshots/display_html.png" /> | ||
|
||
<br /> | ||
#### Display as Table, Chart | ||
|
||
If ouput starts with %table, it interpreted as a table. Table can be seen as chart. | ||
|
||
Output's format should be, row separated by '\n' (newline) and column separated by '\t' (tab). First row is header. | ||
|
||
<img src="../assets/themes/zeppelin/img/screenshots/display_table.png" /> | ||
|
||
If table contents start with %html, it is interpreted as a HTML. | ||
|
||
<img src="../assets/themes/zeppelin/img/screenshots/display_table_html.png" /> | ||
|
||
<br /> | ||
#### Display as Image | ||
|
||
If output starts with %img, it is interpreted as base64 encoded image. | ||
|
||
<img src="../assets/themes/zeppelin/img/screenshots/display_image.png" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
--- | ||
layout: page | ||
title: "Dynamic Form" | ||
description: "" | ||
group: manual | ||
--- | ||
{% include JB/setup %} | ||
|
||
|
||
## Dynamic Form | ||
|
||
Zeppelin dynamically creates input forms. Depend on language backend, there're two different way to create dynamic form. | ||
Custom lanaugage backend can select which type of form creation he want to use. | ||
|
||
<br /> | ||
### Using form Templates | ||
|
||
This mode creates form using simple template language. It's simple and easy to use. For example Markdown, Shell, SparkSql language backend uses it. | ||
|
||
<br /> | ||
#### Text input form | ||
|
||
To create text input form, use _${formName}_ templates. | ||
|
||
for example | ||
|
||
<img src="../assets/themes/zeppelin/img/screenshots/form_input.png" /> | ||
|
||
|
||
Also you can provide default value, using _${formName=defaultValue}_. | ||
|
||
<img src="../assets/themes/zeppelin/img/screenshots/form_input_default.png" /> | ||
|
||
|
||
<br /> | ||
#### Select form | ||
|
||
To create select form, use _${formName=defaultValue,option1|option2...}_ | ||
|
||
for example | ||
|
||
<img src="../assets/themes/zeppelin/img/screenshots/form_select.png" /> | ||
|
||
Also you can separate option's display name and value, using _${formName=defaultValue,option1(DisplayName)|option2(DisplayName)...}_ | ||
|
||
<img src="../assets/themes/zeppelin/img/screenshots/form_select_displayname.png" /> | ||
|
||
<br /> | ||
### Creates Programatically | ||
|
||
Some language backend use programtic way to create form. for example, scala language backend. Function to create form is provided by [ZeppelinContext](./zeppelincontext.html). | ||
|
||
Here're some examples. | ||
|
||
Text input form | ||
|
||
<img src="../assets/themes/zeppelin/img/screenshots/form_input_prog.png" /> | ||
|
||
Text input form with default value | ||
|
||
<img src="../assets/themes/zeppelin/img/screenshots/form_input_default_prog.png" /> | ||
|
||
Select form | ||
|
||
<img src="../assets/themes/zeppelin/img/screenshots/form_select_prog.png" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
--- | ||
layout: page | ||
title: "ZeppelinContext" | ||
description: "" | ||
group: manual | ||
--- | ||
{% include JB/setup %} | ||
|
||
|
||
### Zeppelin Context | ||
|
||
ZeppelinContext is automatically created and injected into Scala language backend. | ||
It provies following function and references. | ||
|
||
<br /> | ||
#### SparkContext, SQLContext | ||
|
||
ZeppelinContext provides reference to SparkContext and SQLContext with some shortcut function. | ||
|
||
``` | ||
/* reference to SparkContext */ | ||
z.sc | ||
/* reference to SQLContext */ | ||
z.sqlContext | ||
/* Shortcut to z.sqlContext.sql() */ | ||
z.sql("select * from ...") | ||
``` | ||
|
||
|
||
<br /> | ||
#### Dependency loader (Experimental) | ||
|
||
ZeppelinContext provides series of functions that loads jar library from local FS or Remote Maven repository. Loaded library is automatically added into Scala interpreter and SparkContext. | ||
|
||
``` | ||
/* Load a library from local FS */ | ||
z.load("/path/to/your.jar") | ||
/* Load a library from Maven repository */ | ||
z.load("groupId:artifactId:version") | ||
/* Load library from Maven repository with dependencies */ | ||
z.load("groupId:artifactId:version", true) | ||
/* Load a library from Local FS and add it into SparkContext */ | ||
z.loadAndDist("/path/to/your.jar") | ||
/* Load a library with dependencies from Maven repository and add it into SparkContext*/ | ||
z.loadAndDist("groupId:artifactId:version") | ||
/* Load library with dependencies from maven repository and add it into SparkContext*/ | ||
z.loadAndDist("groupId:artifactId:version", true) | ||
``` | ||
|
||
|
||
<br /> | ||
#### Form creation | ||
|
||
ZeppelinContext also provides functions for creating forms. To learn more about dynamic form, checkout [Dynamic Form](./dynamicform.html). | ||
|
||
|
||
``` | ||
/* Create text input form */ | ||
z.input("formName") | ||
/* Create text input form with default value */ | ||
z.input("formName", "defaultValue") | ||
/* Create select form */ | ||
z.select("formName", Seq(("option1", "option1DisplayName"), | ||
("option2", "option2DisplayName"))) | ||
/* Create select form with default value*/ | ||
z.select("formName", "option1", Seq(("option1", "option1DisplayName"), | ||
("option2", "option2DisplayName"))) | ||
``` |
Oops, something went wrong.