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 spark-shaded jar: Read Install Sedona Python to learn.
- Setup pipenv python version. Please use your desired Python version.
cd docs/usecases
pipenv --python 3.8
- Install dependencies
cd docs/usecases
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:
April 14, 2024 03:28:23