Skip to content

Commit 0967a64

Browse files
authored
Update main.tf
1 parent cd077bc commit 0967a64

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

jupyterlab/main.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ variable "order" {
5151
default = null
5252
}
5353

54+
variable "additional_packages" {
55+
type = string
56+
description = "Addition pip package (ex. extension) to install for jupyterlab. Example jupyterlab-git (space separated)
57+
default = ""
58+
}
59+
60+
JUPYTER_ADDITIONAL_PACKAGES
61+
5462
resource "coder_script" "jupyterlab" {
5563
agent_id = var.agent_id
5664
display_name = "jupyterlab"
@@ -59,6 +67,7 @@ resource "coder_script" "jupyterlab" {
5967
LOG_PATH : var.log_path,
6068
PORT : var.port
6169
BASE_URL : var.subdomain ? "" : "/@${data.coder_workspace_owner.me.name}/${data.coder_workspace.me.name}/apps/jupyterlab"
70+
JUPYTER_ADDITIONAL_PACKAGES : var.additional_packages
6271
})
6372
run_on_start = true
6473
}

0 commit comments

Comments
 (0)