Skip to content

Instantly share code, notes, and snippets.

@joyoyoyoyoyo
Forked from frgomes/install-jupyter.sh
Created October 8, 2017 20:41
Show Gist options
  • Save joyoyoyoyoyo/a78760224c8c633fec23c51ef13b5c3e to your computer and use it in GitHub Desktop.
Save joyoyoyoyoyo/a78760224c8c633fec23c51ef13b5c3e to your computer and use it in GitHub Desktop.
Debian - Install Jupyter and Scala kernel on Debian Stretch
#!/bin/bash
###################################################################################
# Requirements: python3, pip3 and curl
#
# You may be probably interested on creating an isolated Python3 environment.
# A quick recipe would be:
# $ sudo apt-get install python3-minimal curl virtualenv virtualenvwrapper
# $ mkvirtualenv -p /usr/bin/python3 myenv
# $ workon myenv
# $ ./install-jupyter.sh
# $ jupyter notebook
###################################################################################
function install_jupyter_core {
pip3 install --upgrade jupyter
}
function install_jupyter_coursier {
pushd /usr/local/bin
[[ ! -e coursier ]] && \
sudo curl -L -o coursier https://git.io/vgvpD && \
sudo chmod 755 coursier && pwd && ./coursier --help
popd
}
function install_jupyter_kernel_scala {
pushd /tmp
curl -L -o jupyter-scala https://raw.githubusercontent.com/alexarchambault/jupyter-scala/master/jupyter-scala \
&& chmod +x jupyter-scala \
&& ./jupyter-scala --force
popd
}
install_jupyter_core \
&& install_jupyter_coursier \
&& install_jupyter_kernel_scala \
&& hash -r; jupyter kernelspec list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment