zeppelin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject svn commit: r1717011 - /incubator/zeppelin/site/docs/0.5.5-incubating/manual/dynamicform.html
Date Sat, 28 Nov 2015 23:25:04 GMT
Author: moon
Date: Sat Nov 28 23:25:04 2015
New Revision: 1717011

URL: http://svn.apache.org/viewvc?rev=1717011&view=rev
Log:
Apply ZEPPELIN-428 into 0.5.5-incubating docs

Modified:
    incubator/zeppelin/site/docs/0.5.5-incubating/manual/dynamicform.html

Modified: incubator/zeppelin/site/docs/0.5.5-incubating/manual/dynamicform.html
URL: http://svn.apache.org/viewvc/incubator/zeppelin/site/docs/0.5.5-incubating/manual/dynamicform.html?rev=1717011&r1=1717010&r2=1717011&view=diff
==============================================================================
--- incubator/zeppelin/site/docs/0.5.5-incubating/manual/dynamicform.html (original)
+++ incubator/zeppelin/site/docs/0.5.5-incubating/manual/dynamicform.html Sat Nov 28 23:25:04
2015
@@ -49,7 +49,7 @@
           </button>
           <a class="navbar-brand" href="/docs/0.5.5-incubating">
             <img src="/assets/themes/zeppelin/img/zeppelin_logo.png" width="50" alt="I'm
zeppelin">
-            Zeppelin <small>(0.5.5-incubating)</small>
+            Zeppelin <small>(0.5.5-incubating)</small>            
           </a>
         </div>
         <nav class="navbar-collapse collapse" role="navigation">
@@ -193,62 +193,50 @@ Custom language backend can select which
 
 <p>Text input form</p>
 
-<p>You can do this in Scala
-<code>scala
-%spark
-println(&quot;Hello &quot;+z.input(&quot;name&quot;))
-</code></p>
-
-<p>Or Python
-<code>python
-%pyspark
-print(&quot;Hello &quot;+z.input(&quot;name&quot;))
-</code></p>
-
+<p>You can do this in Scala</p>
+<div class="highlight"><pre><code class="scala language-scala" data-lang="scala"><span
class="o">%</span><span class="n">spark</span>
+<span class="n">println</span><span class="o">(</span><span class="s">&quot;Hello
&quot;</span><span class="o">+</span><span class="n">z</span><span
class="o">.</span><span class="n">input</span><span class="o">(</span><span
class="s">&quot;name&quot;</span><span class="o">))</span>
+</code></pre></div>
+<p>Or Python</p>
+<div class="highlight"><pre><code class="python language-python" data-lang="python"><span
class="o">%</span><span class="n">pyspark</span>
+<span class="k">print</span><span class="p">(</span><span class="s">&quot;Hello
&quot;</span><span class="o">+</span><span class="n">z</span><span
class="o">.</span><span class="n">input</span><span class="p">(</span><span
class="s">&quot;name&quot;</span><span class="p">))</span>
+</code></pre></div>
 <p><img src="/assets/themes/zeppelin/img/screenshots/form_input_prog.png" /></p>
 
 <p>Text input form with default value</p>
 
-<p>Scala
-<code>scala
-%spark
-println(&quot;Hello &quot;+z.input(&quot;name&quot;, &quot;sun&quot;))
-</code></p>
-
-<p>Python
-<code>python
-%pyspark
-print(&quot;Hello &quot;+z.input(&quot;name&quot;, &quot;sun&quot;))
-</code></p>
-
+<p>Scala</p>
+<div class="highlight"><pre><code class="scala language-scala" data-lang="scala"><span
class="o">%</span><span class="n">spark</span>
+<span class="n">println</span><span class="o">(</span><span class="s">&quot;Hello
&quot;</span><span class="o">+</span><span class="n">z</span><span
class="o">.</span><span class="n">input</span><span class="o">(</span><span
class="s">&quot;name&quot;</span><span class="o">,</span> <span
class="s">&quot;sun&quot;</span><span class="o">))</span>
+</code></pre></div>
+<p>Python</p>
+<div class="highlight"><pre><code class="python language-python" data-lang="python"><span
class="o">%</span><span class="n">pyspark</span>
+<span class="k">print</span><span class="p">(</span><span class="s">&quot;Hello
&quot;</span><span class="o">+</span><span class="n">z</span><span
class="o">.</span><span class="n">input</span><span class="p">(</span><span
class="s">&quot;name&quot;</span><span class="p">,</span> <span
class="s">&quot;sun&quot;</span><span class="p">))</span>
+</code></pre></div>
 <p><img src="/assets/themes/zeppelin/img/screenshots/form_input_default_prog.png"
/></p>
 
 <p>Select form</p>
 
-<p>Scala
-<code>scala
-%spark
-println(&quot;Hello &quot;+z.select(&quot;day&quot;, Seq((&quot;1&quot;,&quot;mon&quot;),
-                                    (&quot;2&quot;,&quot;tue&quot;),
-                                    (&quot;3&quot;,&quot;wed&quot;),
-                                    (&quot;4&quot;,&quot;thurs&quot;),
-                                    (&quot;5&quot;,&quot;fri&quot;),
-                                    (&quot;6&quot;,&quot;sat&quot;),
-                                    (&quot;7&quot;,&quot;sun&quot;))))
-</code></p>
-
-<p>Python
-<code>python
-%pyspark
-print(&quot;Hello &quot;+z.select(&quot;day&quot;, [(&quot;1&quot;,&quot;mon&quot;),
-                                (&quot;2&quot;,&quot;tue&quot;),
-                                (&quot;3&quot;,&quot;wed&quot;),
-                                (&quot;4&quot;,&quot;thurs&quot;),
-                                (&quot;5&quot;,&quot;fri&quot;),
-                                (&quot;6&quot;,&quot;sat&quot;),
-                                (&quot;7&quot;,&quot;sun&quot;)]))
-</code></p>
-
+<p>Scala</p>
+<div class="highlight"><pre><code class="scala language-scala" data-lang="scala"><span
class="o">%</span><span class="n">spark</span>
+<span class="n">println</span><span class="o">(</span><span class="s">&quot;Hello
&quot;</span><span class="o">+</span><span class="n">z</span><span
class="o">.</span><span class="n">select</span><span class="o">(</span><span
class="s">&quot;day&quot;</span><span class="o">,</span> <span
class="nc">Seq</span><span class="o">((</span><span class="s">&quot;1&quot;</span><span
class="o">,</span><span class="s">&quot;mon&quot;</span><span
class="o">),</span>
+                                    <span class="o">(</span><span class="s">&quot;2&quot;</span><span
class="o">,</span><span class="s">&quot;tue&quot;</span><span
class="o">),</span>
+                                    <span class="o">(</span><span class="s">&quot;3&quot;</span><span
class="o">,</span><span class="s">&quot;wed&quot;</span><span
class="o">),</span>
+                                    <span class="o">(</span><span class="s">&quot;4&quot;</span><span
class="o">,</span><span class="s">&quot;thurs&quot;</span><span
class="o">),</span>
+                                    <span class="o">(</span><span class="s">&quot;5&quot;</span><span
class="o">,</span><span class="s">&quot;fri&quot;</span><span
class="o">),</span>
+                                    <span class="o">(</span><span class="s">&quot;6&quot;</span><span
class="o">,</span><span class="s">&quot;sat&quot;</span><span
class="o">),</span>
+                                    <span class="o">(</span><span class="s">&quot;7&quot;</span><span
class="o">,</span><span class="s">&quot;sun&quot;</span><span
class="o">))))</span>
+</code></pre></div>
+<p>Python</p>
+<div class="highlight"><pre><code class="python language-python" data-lang="python"><span
class="o">%</span><span class="n">pyspark</span>
+<span class="k">print</span><span class="p">(</span><span class="s">&quot;Hello
&quot;</span><span class="o">+</span><span class="n">z</span><span
class="o">.</span><span class="n">select</span><span class="p">(</span><span
class="s">&quot;day&quot;</span><span class="p">,</span> <span
class="p">[(</span><span class="s">&quot;1&quot;</span><span
class="p">,</span><span class="s">&quot;mon&quot;</span><span
class="p">),</span>
+                                <span class="p">(</span><span class="s">&quot;2&quot;</span><span
class="p">,</span><span class="s">&quot;tue&quot;</span><span
class="p">),</span>
+                                <span class="p">(</span><span class="s">&quot;3&quot;</span><span
class="p">,</span><span class="s">&quot;wed&quot;</span><span
class="p">),</span>
+                                <span class="p">(</span><span class="s">&quot;4&quot;</span><span
class="p">,</span><span class="s">&quot;thurs&quot;</span><span
class="p">),</span>
+                                <span class="p">(</span><span class="s">&quot;5&quot;</span><span
class="p">,</span><span class="s">&quot;fri&quot;</span><span
class="p">),</span>
+                                <span class="p">(</span><span class="s">&quot;6&quot;</span><span
class="p">,</span><span class="s">&quot;sat&quot;</span><span
class="p">),</span>
+                                <span class="p">(</span><span class="s">&quot;7&quot;</span><span
class="p">,</span><span class="s">&quot;sun&quot;</span><span
class="p">)]))</span>
+</code></pre></div>
 <p><img src="/assets/themes/zeppelin/img/screenshots/form_select_prog.png" /></p>
 
   </div>



Mime
View raw message