Skip to content

Commit

Permalink
Merge pull request apache#115 from NFLabs/gh-pages-notebook
Browse files Browse the repository at this point in the history
Update homepage for next release
  • Loading branch information
Leemoonsoo committed Sep 27, 2014
2 parents 7e71148 + 4c427ca commit a9532ae
Show file tree
Hide file tree
Showing 30 changed files with 294 additions and 15 deletions.
2 changes: 1 addition & 1 deletion _includes/themes/zeppelin/_navigation.html
Expand Up @@ -7,7 +7,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="{{ HOME_PATH }}">{{ site.title }}</a>
<a class="navbar-brand" href="/"><img style="margin-top: -7px;s" src="/assets/themes/zeppelin/img/zeppelin_logo.png" width="50" alt="I'm zeppelin"> Zeppelin</a>
</div>
<nav class="navbar-collapse collapse" role="navigation">
<ul class="nav navbar-nav">
Expand Down
2 changes: 0 additions & 2 deletions _includes/themes/zeppelin/default.html
Expand Up @@ -35,8 +35,6 @@

{% include themes/zeppelin/_navigation.html %}

{% include themes/zeppelin/_jumbotron.html param="value" %}

<div class="container">
{{ content }}
<hr>
Expand Down
20 changes: 20 additions & 0 deletions assets/themes/zeppelin/css/style.css
Expand Up @@ -8,8 +8,15 @@ body {
background-color: #3071a9;
}

.navbar {
background-color:#3071a9;
border-bottom:0px;
height: 50px;
}

.navbar-inverse .navbar-nav > li > a {
color: #ffffff;
background-color:#3071a9;
}

.navbar-inverse .navbar-nav > li > a:hover,
Expand All @@ -19,11 +26,24 @@ body {
.navbar-inverse .navbar-nav > li > a.active:hover,
.navbar-inverse .navbar-nav > li > a.active:focus {
text-decoration: none;
background-color:#123456;
}

.navbar-inverse .navbar-nav > li > a.active {
background-color:#123456;
}

.navbar-inverse .navbar-brand:hover,
.navbar-inverse .navbar-brand:focus {
}

.navbar-inverse .navbar-brand {
color: #fff;
text-decoration: none;
font-size: 32px;
}


/* CUSTOMIZE THE CAROUSEL
-------------------------------------------------- */

Expand Down
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.
Binary file modified assets/themes/zeppelin/img/screenshots/notebook.png
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.
Binary file added assets/themes/zeppelin/img/spark_logo.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/themes/zeppelin/img/zeppelin_logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions docs/development/howtocontribute.md
Expand Up @@ -5,6 +5,12 @@ description: "How to contribute"
group: development
---

## IMPORTANT

Zeppelin is [Apache2 License](http://www.apache.org/licenses/LICENSE-2.0.html) Software.
Contribute to Zeppelin (Source code, Documents, Image, Website) means you agree license all your contributions as Apache2 License.



### Setting up
Here are some things you will need to build and test Zeppelin.
Expand Down
4 changes: 2 additions & 2 deletions docs/development/writingzeppelininterpreter.md
Expand Up @@ -26,14 +26,14 @@ Once you have build your interpreter, you can place your interpreter under direc
### Configure your interpreter

You can configure zeppelin.interpreters property in conf/zeppelin-site.xml
Property value is comma separated [INTERPRETER_NAME]:[INTERPRETER_CLASS_NAME]
Property value is comma separated [INTERPRETER_CLASS_NAME]

for example,

```
<property>
<name>zeppelin.interpreters</name>
<value>spark:com.nflabs.zeppelin.spark.SparkInterpreter,sql:com.nflabs.zeppelin.spark.SparkSqlInterpreter,md:com.nflabs.zeppelin.markdown.Markdown,sh:com.nflabs.zeppelin.shell.ShellInterpreter,myintp:com.me.MyNewInterpreter</value>
<value>com.nflabs.zeppelin.spark.SparkInterpreter,com.nflabs.zeppelin.spark.SparkSqlInterpreter,com.nflabs.zeppelin.markdown.Markdown,com.nflabs.zeppelin.shell.ShellInterpreter,com.me.MyNewInterpreter</value>
</property>
```

Expand Down
47 changes: 47 additions & 0 deletions docs/display.md
@@ -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" />
65 changes: 65 additions & 0 deletions docs/dynamicform.md
@@ -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" />
7 changes: 7 additions & 0 deletions docs/index.md
Expand Up @@ -10,6 +10,13 @@ group: nav-right

* [Install](./install/install.html)

### Manual

* [Zeppelin Context](./zeppelincontext.html)
* [Dynamic Form](./dynamicform.html)
* [Display System](./display.html)


### Development

* [Writing Zeppelin Interpreter](./development/writingzeppelininterpreter.html)
Expand Down
78 changes: 78 additions & 0 deletions docs/zeppelincontext.md
@@ -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")))
```

0 comments on commit a9532ae

Please sign in to comment.