You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Zeppelin features not fully supported by the Python Interpreter
69
70
70
71
* Interrupt a paragraph execution (`cancel()` method) is currently only supported in Linux and MacOs. If interpreter runs in another operating system (for instance MS Windows) , interrupt a paragraph will close the whole interpreter. A JIRA ticket ([ZEPPELIN-893](https://issues.apache.org/jira/browse/ZEPPELIN-893)) is opened to implement this feature in a next release of the interpreter.
@@ -94,7 +95,7 @@ z.show(plt, height='150px')
94
95
95
96
96
97
## Pandas integration
97
-
[Zeppelin Display System]({{BASE_PATH}}/displaysystem/basicdisplaysystem.html#table) provides simple API to visualize data in Pandas DataFrames, same as in Matplotlib.
98
+
Apace Zeppelin [Table Display System]({{BASE_PATH}}/displaysystem/basicdisplaysystem.html#table) provides build-in data visualization capabilities. Python interpreter leverages it to visualize Pandas DataFrames though similar `z.show()` API, same as with [Matplotlib integration](#matplotlib-integration).
There is a convenience `%python.sql` interpreter that matches Apache Spark experience in Zeppelin and enables usage of SQL language to query Pandas DataFrames and visualization of results though build-in [Table Dispaly System]({{BASE_PATH}}/displaysystem/basicdisplaysystem.html#table).
111
+
112
+
**Pre-requests**
113
+
114
+
- Pandas `pip install pandas`
115
+
- PandaSQL `pip install -U pandasql`
116
+
117
+
In case default binded interpreter is Python (first in the interpreter list, under the _Gear Icon_), you can just use it as `%sql` i.e
118
+
119
+
- first paragraph
120
+
121
+
```python
122
+
import pandas as pd
123
+
rates = pd.read_csv("bank.csv", sep=";")
124
+
```
125
+
126
+
- next paragraph
127
+
128
+
```sql
129
+
%sql
130
+
SELECT*FROM rates WHERE age <40
131
+
```
132
+
133
+
Otherwise it can be reffered as `%python.sql`
134
+
135
+
107
136
## Technical description
108
137
109
138
For in-depth technical details on current implementation plese reffer [python/README.md](https://github.com/apache/zeppelin/blob/master/python/README.md).
Copy file name to clipboardExpand all lines: python/README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,3 +40,5 @@ Current interpreter implementation spawns new system python process through `Pro
40
40
* JavaBuilder can't send SIGINT signal to interrupt paragraph execution. Therefore interpreter directly send a `kill SIGINT PID` to python process to interrupt execution. Python process catch SIGINT signal with some code defined in bootstrap.py
41
41
42
42
* Matplotlib display feature is made with SVG export (in string) and then displays it with html code.
43
+
44
+
*`%python.sql` support for Pandas DataFrames is optional and provided using https://github.com/yhat/pandasql if user have one installed
0 commit comments