Skip to content

Instantly share code, notes, and snippets.

@frgomes
Last active April 27, 2019 12:46
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save frgomes/24c1923f2c9f14a27b14 to your computer and use it in GitHub Desktop.
Save frgomes/24c1923f2c9f14a27b14 to your computer and use it in GitHub Desktop.
Debian - Install Jupyter and Scala kernel on Debian Stretch
#!/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
@jrouquie
Copy link

One might need
sudo apt install python3-setuptools

@frgomes
Copy link
Author

frgomes commented Sep 20, 2017

@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

@frgomes
Copy link
Author

frgomes commented Apr 27, 2019

@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