Skip to content

Commit

Permalink
Update the doc with binder information
Browse files Browse the repository at this point in the history
  • Loading branch information
jiayuasu committed Feb 14, 2021
1 parent 74c1ef8 commit 41d66f6
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 9 deletions.
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -2,6 +2,9 @@

[![Scala and Java build](https://github.com/apache/incubator-sedona/workflows/Scala%20and%20Java%20build/badge.svg)](https://github.com/apache/incubator-sedona/actions?query=workflow%3A%22Scala+and+Java+build%22) [![Python build](https://github.com/apache/incubator-sedona/workflows/Python%20build/badge.svg)](https://github.com/apache/incubator-sedona/actions?query=workflow%3A%22Python+build%22) ![Example project build](https://github.com/apache/incubator-sedona/workflows/Example%20project%20build/badge.svg)

Click [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/apache/incubator-sedona/HEAD?filepath=binder) and play the interactive Sedona Python Jupyter Notebook immediately!


Apache Sedona™(incubating) is a cluster computing system for processing large-scale spatial data. Sedona extends Apache Spark / SparkSQL with a set of out-of-the-box Spatial Resilient Distributed Datasets (SRDDs)/ SpatialSQL that efficiently load, process, and analyze large-scale spatial data across machines.

### Sedona contains several modules:
Expand Down
2 changes: 1 addition & 1 deletion docs/download/compile.md
@@ -1,6 +1,6 @@
# Compile Sedona source code

[![Scala and Java build](https://github.com/apache/incubator-sedona/workflows/Scala%20and%20Java%20build/badge.svg)](https://github.com/apache/incubator-sedona/actions?query=workflow%3A%22Scala+and+Java+build%22) [![Python build](https://github.com/apache/incubator-sedona/workflows/Python%20build/badge.svg)](https://github.com/apache/incubator-sedona/actions?query=workflow%3A%22Python+build%22) ![Example project build](https://github.com/apache/incubator-sedona/workflows/Example%20project%20build/badge.svg)
[![Scala and Java build](https://github.com/apache/incubator-sedona/workflows/Scala%20and%20Java%20build/badge.svg)](https://github.com/apache/incubator-sedona/actions?query=workflow%3A%22Scala+and+Java+build%22) [![Python build](https://github.com/apache/incubator-sedona/workflows/Python%20build/badge.svg)](https://github.com/apache/incubator-sedona/actions?query=workflow%3A%22Python+build%22) ![Example project build](https://github.com/apache/incubator-sedona/workflows/Example%20project%20build/badge.svg) [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/apache/incubator-sedona/HEAD?filepath=binder)


## Compile Scala / Java source code
Expand Down
2 changes: 2 additions & 0 deletions docs/download/features.md
@@ -1,5 +1,7 @@
# Don't have time? Read [Quick Start](/download/overview)

Click [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/apache/incubator-sedona/HEAD?filepath=binder) and play the interactive Sedona Python Jupyter Notebook immediately!

## Companies are using Sedona

[<img src="https://www.dataiku.com/static/img/partners/LOGO-Blue-DME-PNG-3.png" width="200">](https://www.bluedme.com/) &nbsp;&nbsp; [<img src="https://images.ukfast.co.uk/comms/news/businesscloud/photos/14-08-2018/gyana.jpg" width="150">](https://www.gyana.co.uk/) &nbsp;&nbsp; [<img src="https://mobike.com/global/public/invitation__footer__logo.png" width="150">](https://mobike.com) and more!
Expand Down
4 changes: 3 additions & 1 deletion docs/download/overview.md
Expand Up @@ -39,6 +39,8 @@ There are two ways to use a Scala or Java library with Apache Spark. You can use

## Install Sedona Python

Click [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/apache/incubator-sedona/HEAD?filepath=binder) and play the interactive Sedona Python Jupyter Notebook immediately!

Apache Sedona extends pyspark functions which depends on libraries:

* pyspark
Expand Down Expand Up @@ -105,4 +107,4 @@ export SPARK_HOME=~/Downloads/spark-3.0.1-bin-hadoop2.7
export PYTHONPATH=$SPARK_HOME/python
```

You can then play with [Sedona Python Jupyter notebook](/tutorial/jupyter-notebook/)
You can then play with [Sedona Python Jupyter notebook](/tutorial/jupyter-notebook/).
2 changes: 1 addition & 1 deletion docs/tutorial/geospark-core-python.md
Expand Up @@ -33,7 +33,7 @@ GeoData has one method to get user data.
<li> getUserData() -> str </li>

!!!note
This tutorial is based on [Sedona Core Jupyter Notebook example](../jupyter-notebook)
This tutorial is based on [Sedona Core Jupyter Notebook example](../jupyter-notebook). You can interact with Sedona Python Jupyter notebook immediately on Binder. Click [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/apache/incubator-sedona/HEAD?filepath=binder) and wait for a few minutes. Then select a notebook and enjoy!

## Installation

Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/geospark-sql-python.md
Expand Up @@ -14,7 +14,7 @@ spark.sql("YOUR_SQL")
```

!!!note
This tutorial is based on [Sedona SQL Jupyter Notebook example](../jupyter-notebook)
This tutorial is based on [Sedona SQL Jupyter Notebook example](../jupyter-notebook). You can interact with Sedona Python Jupyter notebook immediately on Binder. Click [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/apache/incubator-sedona/HEAD?filepath=binder) and wait for a few minutes. Then select a notebook and enjoy!

## Installation

Expand Down
12 changes: 7 additions & 5 deletions docs/tutorial/jupyter-notebook.md
@@ -1,21 +1,23 @@
# Python Jupyter Notebook Examples

Sedona Python provides two Jupyter Notebook examples: [Sedona core](https://github.com/apache/incubator-sedona/blob/master/python/ApacheSedonaCore.ipynb) and [Sedona SQL](https://github.com/apache/incubator-sedona/blob/master/python/ApacheSedonaSQL.ipynb)
Click [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/apache/incubator-sedona/HEAD?filepath=binder) and play the interactive Sedona Python Jupyter Notebook immediately!

Sedona Python provides two Jupyter Notebook examples: [Sedona core](https://github.com/apache/incubator-sedona/blob/master/binder/ApacheSedonaCore.ipynb) and [Sedona SQL](https://github.com/apache/incubator-sedona/blob/master/binder/ApacheSedonaSQL.ipynb)

Please use the following steps to run Jupyter notebook with Pipenv

Please use the following steps to run Jupyter notebook with Pipenv on your machine

1. Clone Sedona GitHub repo or download the source code
2. Install Sedona Python from PyPi or GitHub source: Read [Install Sedona Python](/download/overview/#install-sedona) to learn.
3. Prepare python-adapter jar: Read [Install Sedona Python](/download/overview/#prepare-python-adapter-jar) to learn.
4. Setup pipenv python version. For Spark 3.0, Sedona supports 3.7 - 3.9
```bash
cd python
cd binder
pipenv --python 3.8
```
5. Install dependencies
```bash
cd python
cd binder
pipenv install
```
6. Install jupyter notebook kernel for pipenv
Expand All @@ -25,7 +27,7 @@ pipenv shell
```
7. In the pipenv shell, do
```bash
python -m ipykernel install --user --name=my-virtualenv-name
python -m ipykernel install --user --name=apache-sedona
```
8. Setup environment variables `SPARK_HOME` and `PYTHONPATH` if you didn't do it before. Read [Install Sedona Python](/download/overview/#setup-environment-variables) to learn.
9. Launch jupyter notebook: `jupyter notebook`
Expand Down

0 comments on commit 41d66f6

Please sign in to comment.