Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
devcontainer-features
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eazydevelop-devcontainer-temp
devcontainer-features
Commits
e00724a0
Unverified
Commit
e00724a0
authored
Nov 14, 2022
by
JP Ungaretti
Committed by
GitHub
Nov 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add git extension for JupyterLab to Python feature (#286)
* Add git extension * Bump version
parent
17580ee2
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
1 deletion
+8
-1
devcontainer-feature.json
src/python/devcontainer-feature.json
+1
-1
install.sh
src/python/install.sh
+1
-0
install_additional_jupyterlab.sh
test/python/install_additional_jupyterlab.sh
+3
-0
install_jupyterlab.sh
test/python/install_jupyterlab.sh
+3
-0
No files found.
src/python/devcontainer-feature.json
View file @
e00724a0
{
"id"
:
"python"
,
"version"
:
"1.0.1
2
"
,
"version"
:
"1.0.1
3
"
,
"name"
:
"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."
,
...
...
src/python/install.sh
View file @
e00724a0
...
...
@@ -465,6 +465,7 @@ fi
# Install JupyterLab if needed
if
[
"
${
INSTALL_JUPYTERLAB
}
"
=
"true"
]
;
then
install_user_package jupyterlab
install_user_package jupyterlab-git
# Configure JupyterLab if needed
if
[
-n
"
${
CONFIGURE_JUPYTERLAB_ALLOW_ORIGIN
}
"
]
;
then
...
...
test/python/install_additional_jupyterlab.sh
View file @
e00724a0
...
...
@@ -16,6 +16,9 @@ check "version" jupyter lab --version
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
...
...
test/python/install_jupyterlab.sh
View file @
e00724a0
...
...
@@ -16,6 +16,9 @@ check "version" jupyter lab --version
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment