Unverified Commit e00724a0 authored by JP Ungaretti's avatar JP Ungaretti Committed by GitHub

Add git extension for JupyterLab to Python feature (#286)

* Add git extension

* Bump version
parent 17580ee2
{ {
"id": "python", "id": "python",
"version": "1.0.12", "version": "1.0.13",
"name": "Python", "name": "Python",
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/python", "documentationURL": "https://github.com/devcontainers/features/tree/main/src/python",
"description": "Installs the provided version of Python, as well as PIPX, and other common Python utilities. JupyterLab is conditionally installed with the python feature. Note: May require source code compilation.", "description": "Installs the provided version of Python, as well as PIPX, and other common Python utilities. JupyterLab is conditionally installed with the python feature. Note: May require source code compilation.",
......
...@@ -465,6 +465,7 @@ fi ...@@ -465,6 +465,7 @@ fi
# Install JupyterLab if needed # Install JupyterLab if needed
if [ "${INSTALL_JUPYTERLAB}" = "true" ]; then if [ "${INSTALL_JUPYTERLAB}" = "true" ]; then
install_user_package jupyterlab install_user_package jupyterlab
install_user_package jupyterlab-git
# Configure JupyterLab if needed # Configure JupyterLab if needed
if [ -n "${CONFIGURE_JUPYTERLAB_ALLOW_ORIGIN}" ]; then if [ -n "${CONFIGURE_JUPYTERLAB_ALLOW_ORIGIN}" ]; then
......
...@@ -16,6 +16,9 @@ check "version" jupyter lab --version ...@@ -16,6 +16,9 @@ check "version" jupyter lab --version
packages="$(python3 -m pip list)" packages="$(python3 -m pip list)"
check "location" grep jupyter <<< "$packages" check "location" grep jupyter <<< "$packages"
# Check for git extension
check "jupyterlab-git" grep jupyterlab-git <<< "$packages"
# Check for correct JupyterLab configuration # Check for correct JupyterLab configuration
check "config" grep ".*.allow_origin = '*'" /home/vscode/.jupyter/jupyter_server_config.py check "config" grep ".*.allow_origin = '*'" /home/vscode/.jupyter/jupyter_server_config.py
......
...@@ -16,6 +16,9 @@ check "version" jupyter lab --version ...@@ -16,6 +16,9 @@ check "version" jupyter lab --version
packages="$(python3 -m pip list)" packages="$(python3 -m pip list)"
check "location" grep jupyter <<< "$packages" check "location" grep jupyter <<< "$packages"
# Check for git extension
check "jupyterlab-git" grep jupyterlab-git <<< "$packages"
# Check for correct JupyterLab configuration # Check for correct JupyterLab configuration
check "config" grep ".*.allow_origin = '*'" /home/vscode/.jupyter/jupyter_server_config.py check "config" grep ".*.allow_origin = '*'" /home/vscode/.jupyter/jupyter_server_config.py
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment