Jupyter notebooks for Aerospike Connect for Spark
Set up your system’s environment to run our Jupyter notebooks, if it is not already set up to run notebooks.
These instructions are for macOS:
# Install pyenv for python version managementbrew install pyenvpyenv install 3.7.0
# set 3.7.0 as your python versionpyenv global 3.7.0
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bash_profilesource ~/.bash_profile
# upgrade pip, install jupyterpip install --upgrade pippip install jupyter
# only for scala kernelpip install spylon-kernelpython -m spylon_kernel install
# verify python3 and spylon-kernel are installedjupyter kernelspec list
Download a notebook.
Start the downloaded notebook.
In a terminal, change to the directory that contains the downloaded notebook.
Run the command jupyter notebook
to start the notebook server.
Result: The notebook server opens a tab in your browser, and the tab lists the name of the notebook.
Click the name of the notebook.
Result: The notebook is opened in another browser tab.