Skip to content

Python Jupyter Notebook Examples

Click Binder and play the interactive Sedona Python Jupyter Notebook immediately!

Sedona Python provides a number of Jupyter Notebook examples.

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 to learn.
  3. Prepare python-adapter jar: Read Install Sedona Python to learn.
  4. Setup pipenv python version. For Spark 3.0, Sedona supports 3.7 - 3.9
    cd binder
    pipenv --python 3.8
    
  5. Install dependencies
    cd binder
    pipenv install
    
  6. Install jupyter notebook kernel for pipenv
    pipenv install ipykernel
    pipenv shell
    
  7. In the pipenv shell, do
    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 to learn.
  9. Launch jupyter notebook: jupyter notebook
  10. Select Sedona notebook. In your notebook, Kernel -> Change Kernel. Your kernel should now be an option.

Last update: May 27, 2021 18:55:27
Back to top