diff --git a/README.md b/README.md index 9aceae44..769614cc 100644 --- a/README.md +++ b/README.md @@ -109,13 +109,17 @@ odps.Schema { 4 Iris-setosa 3.9 ``` -## Commandline and IPython enhancement +## Command-line and IPython enhancement -```python ->>> %load_ext odps ->>> %enter ->>> %sql select * from pyodps_iris limit 5 +``` +In [1]: %load_ext odps + +In [2]: %enter +Out[2]: + +In [3]: %sql select * from pyodps_iris limit 5 |==========================================| 1 / 1 (100.00%) 2s +Out[3]: sepallength sepalwidth petallength petalwidth name 0 5.1 3.5 1.4 0.2 Iris-setosa 1 4.9 3.0 1.4 0.2 Iris-setosa diff --git a/README.rst b/README.rst index dbc32f49..b4d3fb21 100644 --- a/README.rst +++ b/README.rst @@ -118,15 +118,19 @@ DataFrame API 3 Iris-setosa 3.6 4 Iris-setosa 3.9 -Commandline and IPython enhancement ------------------------------------ +Command-line and IPython enhancement +------------------------------------ -.. code:: python +:: + + In [1]: %load_ext odps + + In [2]: %enter + Out[2]: - >>> %load_ext odps - >>> %enter - >>> %sql select * from pyodps_iris limit 5 + In [3]: %sql select * from pyodps_iris limit 5 |==========================================| 1 / 1 (100.00%) 2s + Out[3]: sepallength sepalwidth petallength petalwidth name 0 5.1 3.5 1.4 0.2 Iris-setosa 1 4.9 3.0 1.4 0.2 Iris-setosa diff --git a/docs/source/cl-zh.rst b/docs/source/cl-zh.rst index 3375f7b3..9344c08e 100644 --- a/docs/source/cl-zh.rst +++ b/docs/source/cl-zh.rst @@ -1,7 +1,7 @@ .. _cl: ******************** -命令行和Ipython增强 +命令行和IPython增强 ******************** 命令行增强