Python Jupyter Notebook Examples¶
Click 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
- Clone Sedona GitHub repo or download the source code
- Install Sedona Python from PyPi or GitHub source: Read Install Sedona Python to learn.
- Prepare python-adapter jar: Read Install Sedona Python to learn.
- Setup pipenv python version. For Spark 3.0, Sedona supports 3.7 - 3.9
cd binder pipenv --python 3.8
- Install dependencies
cd binder pipenv install
- Install jupyter notebook kernel for pipenv
pipenv install ipykernel pipenv shell
- In the pipenv shell, do
python -m ipykernel install --user --name=apache-sedona
- Setup environment variables
SPARK_HOME
andPYTHONPATH
if you didn't do it before. Read Install Sedona Python to learn. - Launch jupyter notebook:
jupyter notebook
- Select Sedona notebook. In your notebook, Kernel -> Change Kernel. Your kernel should now be an option.
Last update:
May 25, 2022 04:05:58