You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zeppelin.apache.org by mi...@apache.org on 2016/06/23 19:24:44 UTC

svn commit: r1749981 - in /zeppelin/site/docs/0.6.0-SNAPSHOT: atom.xml interpreter/jdbc.html interpreter/python.html rss.xml

Author: minalee
Date: Thu Jun 23 19:24:44 2016
New Revision: 1749981

URL: http://svn.apache.org/viewvc?rev=1749981&view=rev
Log:
https://github.com/apache/zeppelin/pull/1061
https://github.com/apache/zeppelin/pull/1063
https://github.com/apache/zeppelin/pull/1067


Modified:
    zeppelin/site/docs/0.6.0-SNAPSHOT/atom.xml
    zeppelin/site/docs/0.6.0-SNAPSHOT/interpreter/jdbc.html
    zeppelin/site/docs/0.6.0-SNAPSHOT/interpreter/python.html
    zeppelin/site/docs/0.6.0-SNAPSHOT/rss.xml

Modified: zeppelin/site/docs/0.6.0-SNAPSHOT/atom.xml
URL: http://svn.apache.org/viewvc/zeppelin/site/docs/0.6.0-SNAPSHOT/atom.xml?rev=1749981&r1=1749980&r2=1749981&view=diff
==============================================================================
--- zeppelin/site/docs/0.6.0-SNAPSHOT/atom.xml (original)
+++ zeppelin/site/docs/0.6.0-SNAPSHOT/atom.xml Thu Jun 23 19:24:44 2016
@@ -4,7 +4,7 @@
  <title>Apache Zeppelin</title>
  <link href="http://zeppelin.apache.org/" rel="self"/>
  <link href="http://zeppelin.apache.org"/>
- <updated>2016-06-21T20:13:17-07:00</updated>
+ <updated>2016-06-23T12:22:34-07:00</updated>
  <id>http://zeppelin.apache.org</id>
  <author>
    <name>The Apache Software Foundation</name>

Modified: zeppelin/site/docs/0.6.0-SNAPSHOT/interpreter/jdbc.html
URL: http://svn.apache.org/viewvc/zeppelin/site/docs/0.6.0-SNAPSHOT/interpreter/jdbc.html?rev=1749981&r1=1749980&r2=1749981&view=diff
==============================================================================
--- zeppelin/site/docs/0.6.0-SNAPSHOT/interpreter/jdbc.html (original)
+++ zeppelin/site/docs/0.6.0-SNAPSHOT/interpreter/jdbc.html Thu Jun 23 19:24:44 2016
@@ -487,19 +487,17 @@
 <div class="highlight"><pre><code class="sql language-sql" data-lang="sql"><span class="o">%</span><span class="n">jdbc</span>
 <span class="k">SELECT</span> <span class="o">*</span> <span class="k">FROM</span> <span class="n">db_name</span><span class="p">;</span>
 </code></pre></div>
-<p>or
-```sql
-%jdbc(prefix)
-SELECT * FROM db_name;</p>
-<div class="highlight"><pre><code class="text language-text" data-lang="text">#### Apply Zeppelin Dynamic Forms
-
-You can leverage [Zeppelin Dynamic Form](../manual/dynamicform.html) inside your queries. You can use both the `text input` and `select form` parametrization features
+<p>or</p>
+<div class="highlight"><pre><code class="sql language-sql" data-lang="sql"><span class="o">%</span><span class="n">jdbc</span><span class="p">(</span><span class="k">prefix</span><span class="p">)</span>
+<span class="k">SELECT</span> <span class="o">*</span> <span class="k">FROM</span> <span class="n">db_name</span><span class="p">;</span>
+</code></pre></div>
+<h4>Apply Zeppelin Dynamic Forms</h4>
 
-```sql
-%jdbc(prefix)
-SELECT name, country, performer
-FROM demo.performers
-WHERE name=&#39;&#39;
+<p>You can leverage <a href="../manual/dynamicform.html">Zeppelin Dynamic Form</a> inside your queries. You can use both the <code>text input</code> and <code>select form</code> parametrization features</p>
+<div class="highlight"><pre><code class="sql language-sql" data-lang="sql"><span class="o">%</span><span class="n">jdbc</span><span class="p">(</span><span class="k">prefix</span><span class="p">)</span>
+<span class="k">SELECT</span> <span class="n">name</span><span class="p">,</span> <span class="n">country</span><span class="p">,</span> <span class="n">performer</span>
+<span class="k">FROM</span> <span class="n">demo</span><span class="p">.</span><span class="n">performers</span>
+<span class="k">WHERE</span> <span class="n">name</span><span class="o">=</span><span class="s1">&#39;&#39;</span>
 </code></pre></div>
 <h3>Bugs &amp; Contacts</h3>
 

Modified: zeppelin/site/docs/0.6.0-SNAPSHOT/interpreter/python.html
URL: http://svn.apache.org/viewvc/zeppelin/site/docs/0.6.0-SNAPSHOT/interpreter/python.html?rev=1749981&r1=1749980&r2=1749981&view=diff
==============================================================================
--- zeppelin/site/docs/0.6.0-SNAPSHOT/interpreter/python.html (original)
+++ zeppelin/site/docs/0.6.0-SNAPSHOT/interpreter/python.html Thu Jun 23 19:24:44 2016
@@ -176,12 +176,17 @@
     <th>Description</th>
   </tr>
   <tr>
-    <td>python</td>
+    <td>zeppelin.python</td>
     <td>python</td>
     <td>Path of the already installed Python binary (could be python2 or python3).
     If python is not in your $PATH you can set the absolute directory (example : /usr/bin/python)
     </td>
   </tr>
+  <tr>
+    <td>zeppelin.python.maxResult</td>
+    <td>1000</td>
+    <td>Max number of dataframe rows to display.</td>
+  </tr>
 </table>
 
 <h2>Enabling Python Interpreter</h2>
@@ -200,7 +205,7 @@
 
 <p>The interpreter can use all modules already installed (with pip, easy_install...)</p>
 
-<h2>Apply Zeppelin Dynamic Forms</h2>
+<h2>Use Zeppelin Dynamic Forms</h2>
 
 <p>You can leverage <a href="/docs/0.6.0-SNAPSHOT/manual/dynamicform.html">Zeppelin Dynamic Form</a> inside your Python code.</p>
 
@@ -227,22 +232,31 @@
 
 <h2>Matplotlib integration</h2>
 
-<p>The python interpreter can display matplotlib graph with the function <code>zeppelin_show()</code>.
+<p>The python interpreter can display matplotlib graph with the function <code>z.show()</code>.
  You need to have matplotlib module installed and a XServer running to use this functionality !</p>
 <div class="highlight"><pre><code class="python language-python" data-lang="python"><span class="o">%</span><span class="n">python</span>
 <span class="kn">import</span> <span class="nn">matplotlib.pyplot</span> <span class="kn">as</span> <span class="nn">plt</span>
 <span class="n">plt</span><span class="o">.</span><span class="n">figure</span><span class="p">()</span>
 <span class="p">(</span><span class="o">..</span> <span class="o">..</span><span class="p">)</span>
-<span class="n">zeppelin_show</span><span class="p">(</span><span class="n">plt</span><span class="p">)</span>
+<span class="n">z</span><span class="o">.</span><span class="n">show</span><span class="p">(</span><span class="n">plt</span><span class="p">)</span>
 <span class="n">plt</span><span class="o">.</span><span class="n">close</span><span class="p">()</span>
 </code></pre></div>
 <p>zeppelin_show function can take optional parameters to adapt graph width and height</p>
 <div class="highlight"><pre><code class="python language-python" data-lang="python"><span class="o">%</span><span class="n">python</span>
-<span class="n">zeppelin_show</span><span class="p">(</span><span class="n">plt</span><span class="p">,</span><span class="n">width</span><span class="o">=</span><span class="s">&#39;50px&#39;</span><span class="p">)</span>
-<span class="n">zeppelin_show</span><span class="p">(</span><span class="n">plt</span><span class="p">,</span><span class="n">height</span><span class="o">=</span><span class="s">&#39;150px&#39;</span><span class="p">)</span>
+<span class="n">z</span><span class="o">.</span><span class="n">show</span><span class="p">(</span><span class="n">plt</span><span class="p">,</span> <span class="n">width</span><span class="o">=</span><span class="s">&#39;50px&#39;</span><span class="p">)</span>
+<span class="n">z</span><span class="o">.</span><span class="n">show</span><span class="p">(</span><span class="n">plt</span><span class="p">,</span> <span class="n">height</span><span class="o">=</span><span class="s">&#39;150px&#39;</span><span class="p">)</span>
 </code></pre></div>
 <p><a href="/docs/interpreter/screenshots/pythonMatplotlib.png"><img src="../interpreter/screenshots/pythonMatplotlib.png" alt="pythonmatplotlib"></a></p>
 
+<h2>Pandas integration</h2>
+
+<p><a href="/docs/0.6.0-SNAPSHOT/displaysystem/basicdisplaysystem.html#table">Zeppelin Display System</a> provides simple API to visualize data in Pandas DataFrames, same as in Matplotlib.</p>
+
+<p>Example:</p>
+<div class="highlight"><pre><code class="python language-python" data-lang="python"><span class="kn">import</span> <span class="nn">pandas</span> <span class="kn">as</span> <span class="nn">pd</span>
+<span class="n">rates</span> <span class="o">=</span> <span class="n">pd</span><span class="o">.</span><span class="n">read_csv</span><span class="p">(</span><span class="s">&quot;bank.csv&quot;</span><span class="p">,</span> <span class="n">sep</span><span class="o">=</span><span class="s">&quot;;&quot;</span><span class="p">)</span>
+<span class="n">z</span><span class="o">.</span><span class="n">show</span><span class="p">(</span><span class="n">rates</span><span class="p">)</span>
+</code></pre></div>
 <h2>Technical description</h2>
 
 <p>For in-depth technical details on current implementation plese reffer <a href="https://github.com/apache/zeppelin/blob/master/python/README.md">python/README.md</a></p>

Modified: zeppelin/site/docs/0.6.0-SNAPSHOT/rss.xml
URL: http://svn.apache.org/viewvc/zeppelin/site/docs/0.6.0-SNAPSHOT/rss.xml?rev=1749981&r1=1749980&r2=1749981&view=diff
==============================================================================
--- zeppelin/site/docs/0.6.0-SNAPSHOT/rss.xml (original)
+++ zeppelin/site/docs/0.6.0-SNAPSHOT/rss.xml Thu Jun 23 19:24:44 2016
@@ -5,8 +5,8 @@
         <description>Apache Zeppelin - The Apache Software Foundation</description>
         <link>http://zeppelin.apache.org</link>
         <link>http://zeppelin.apache.org</link>
-        <lastBuildDate>2016-06-21T20:13:17-07:00</lastBuildDate>
-        <pubDate>2016-06-21T20:13:17-07:00</pubDate>
+        <lastBuildDate>2016-06-23T12:22:34-07:00</lastBuildDate>
+        <pubDate>2016-06-23T12:22:34-07:00</pubDate>
         <ttl>1800</ttl>