Last active
April 27, 2019 12:46
-
-
Save frgomes/24c1923f2c9f14a27b14 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 | |
## NOTE: This script is deprecated! | |
## See: https://github.com/frgomes/bash-scripts/blob/master/user-install/install-jupyter.sh | |
################################################################################### | |
# 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 |
@charles-plessy @jrouquie:
I've updated this gist with a completely new way of installing Jupyter and a Scala kernel.
I have not tested on a clean Debian installation. However, I believe that the comments on the top should suffice.
For my full list of Bash incantations:
https://github.com/frgomes/debian-bin
https://github.com/frgomes/debian-scripts
@charles-plessy @jrouquie
Projects debian-bin and debian-scripts (as above) were consolidated into a single project
http://github.com/frgomes/bash-scripts
See the new installation script at
https://github.com/frgomes/bash-scripts/blob/master/user-install/install-jupyter.sh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
One might need
sudo apt install python3-setuptools