Closes https://github.com/coder/registry/issues/685 --------- Co-authored-by: Atif Ali <atif@coder.com> Co-authored-by: Muhammad Atif Ali <me@matifali.dev>
| display_name | description | icon | verified | tags | |||
|---|---|---|---|---|---|---|---|
| JupyterLab | A module that adds JupyterLab in your Coder template. | ../../../../.icons/jupyter.svg | true |
|
JupyterLab
A module that adds JupyterLab in your Coder template.
module "jupyterlab" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/jupyterlab/coder"
version = "1.2.2"
agent_id = coder_agent.main.id
}
Configuration
JupyterLab is automatically configured to work with Coder's iframe embedding. For advanced configuration, you can use the config parameter to provide additional JupyterLab server settings according to the JupyterLab configuration documentation.
module "jupyterlab" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/jupyterlab/coder"
version = "1.2.2"
agent_id = coder_agent.main.id
config = {
ServerApp = {
# Required for Coder Tasks iFrame embedding - do not remove
tornado_settings = {
headers = {
"Content-Security-Policy" = "frame-ancestors 'self' ${data.coder_workspace.me.access_url}"
}
}
# Your additional configuration here
root_dir = "/workspace/notebooks"
}
}
}
