-
-
Save joyoyoyoyoyo/205e327116de462b6487ae7f938992f0 to your computer and use it in GitHub Desktop.
Debian - Install Jupyter and Scala kernel on Debian Stretch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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