features/test/python/install_jupyterlab.sh
JP Ungaretti e00724a0c6
Add git extension for JupyterLab to Python feature (#286)
* Add git extension

* Bump version
2022-11-14 11:46:13 -08:00

27 lines
654 B
Bash
Executable file

#!/bin/bash
set -e
# Optional: Import test library
source dev-container-features-test-lib
# Always run these checks as the non-root user
user="$(whoami)"
check "user" grep vscode <<< "$user"
# Check for an installation of JupyterLab
check "version" jupyter lab --version
# Check location of JupyterLab installation
packages="$(python3 -m pip list)"
check "location" grep jupyter <<< "$packages"
# Check for git extension
check "jupyterlab-git" grep jupyterlab-git <<< "$packages"
# Check for correct JupyterLab configuration
check "config" grep ".*.allow_origin = '*'" /home/vscode/.jupyter/jupyter_server_config.py
# Report result
reportResults