fix(jupyterlab): empty-positional-root-dir - #1027
Open
spapa013 wants to merge 1 commit into
Open
Conversation
matifali
reviewed
Jul 25, 2026
Comment on lines
22
to
25
| printf "check logs at ${LOG_PATH}" | ||
| $JUPYTER --no-browser \ | ||
| "$BASE_URL_FLAG" \ | ||
| $BASE_URL_FLAG \ |
Member
There was a problem hiding this comment.
Suggested change
| $BASE_URL_FLAG \ | |
| --ServerApp.base_url=${BASE_URL} \ |
may be drop BASE_URL_FLAG altogether and directly pass BASE_URL?
Author
There was a problem hiding this comment.
Good call — done. Dropped BASE_URL_FLAG and now pass
--ServerApp.base_url=${BASE_URL} inline. Verified locally in a subdomain
workspace.
spapa013
force-pushed
the
fix/jupyterlab-empty-positional-root-dir
branch
from
July 27, 2026 13:36
0471e54 to
7e29fb4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The JupyterLab module's
run.shbuilds the launch command with aBASE_URL_FLAGvariable that is only set whenbase_urlis non-empty.With
subdomain = true,base_urlis empty, so the flag expands to anempty argument. Jupyter reads that empty argument as a positional (the
directory to open), which overrides
ServerApp.root_dir— so auser-configured
root_diris silently ignored.This drops
BASE_URL_FLAGand passes--ServerApp.base_url=${BASE_URL}inline. An empty value normalizes to
/and is never treated as apositional, so
root_diris respected in both the subdomain andpath-based cases.
Type of Change
Module Information
Path:
registry/coder/modules/jupyterlabNew version:
v1.2.3Breaking change: No
Testing & Validation
line shows
--ServerApp.base_url=with no empty positional, androot_diris honored)Related Issues
Closes #1026