Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
CLASS-Essentials/scripts/jupyter-lab.sh
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
24 lines (16 sloc)
580 Bytes
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 | |
if [ -r ./local.sh ] ; then | |
. ./local.sh | |
fi | |
echo "=== jupyterlab.sh Install and run JupyterLab locally" | |
echo "+++ installing jupyter" | |
python3 -m venv .venv | |
. .venv/bin/activate | |
ln -sfv /usr/lib/python3/dist-packages .venv/lib/python3.*/ # simulate VM behavior for apt-get install python3-rasterio | |
python3 -m pip install pip --upgrade | |
python3 -m pip install --upgrade jupyterlab | |
python3 -m pip install --upgrade bash_kernel | |
python3 -m bash_kernel.install | |
python3 -m pip install --upgrade jupyterlab-spellchecker | |
echo "+++ run jupyter" | |
jupyter-lab --port=8081 |