Skip to content

Commit

Permalink
Block usage of pip inside jupyterlab (#2191)
Browse files Browse the repository at this point in the history
Co-authored-by: Christopher Ostrouchov <[email protected]>
  • Loading branch information
viniciusdc and costrouc authored Jan 16, 2024
1 parent 6ae41e8 commit f04c70d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ def configure_user(username, groups, uid=1000, gid=100):
"SHELL": "/bin/bash",
# set home directory to username
"HOME": f"/home/{username}",
# Disable global usage of pip
"PIP_REQUIRE_VIRTUALENV": "true",
}

etc_passwd, etc_group = generate_nss_files(
Expand Down

0 comments on commit f04c70d

Please sign in to comment.