Skip to main content
Loading

Jupyter Notebooks for Learning How to Use Aerospike Connect for Spark

Procedure

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 management
brew install pyenv
pyenv install 3.7.0

# set 3.7.0 as our python version
pyenv global 3.7.0

echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bash_profile
source ~/.bash_profile

# upgrade pip, install jupyter
pip install --upgrade pip
pip install jupyter

# only for scala kernel
pip install spylon-kernel
python -m spylon_kernel install

# verify python3 and spylon-kernel are installed
jupyter 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.