Skip to content

Remove the SessionContext workaround - #1998

Draft
jtpio wants to merge 5 commits into
jupyterlite:mainfrom
jtpio:remove-sessioncontext-workaround
Draft

jtpio wants to merge 5 commits into
jupyterlite:mainfrom
jtpio:remove-sessioncontext-workaround

Conversation

@jtpio

@jtpio jtpio commented Jul 15, 2026

Copy link
Copy Markdown
Member

References

Looking into #1794

This will likely require a change in JupyterLab too to be able to remove the workaround here. Opening early to have it on the radar for 4.7 / 0.9.0: jupyterlab/jupyterlab#19157

Code changes

  • Remove the SessionContext workaround

User-facing changes

None

Backwards-incompatible changes

None

@github-actions

Copy link
Copy Markdown
Contributor

lite-badge 馃憟 Try it on ReadTheDocs

@jtpio jtpio added the bug Something isn't working label Jul 15, 2026
@jtpio jtpio added this to the 0.9.0 milestone Jul 15, 2026
@jtpio jtpio mentioned this pull request Jul 16, 2026
3 tasks
krassowski pushed a commit to jupyterlab/jupyterlab that referenced this pull request Aug 10, 2026
## References

Fixes a bug to properly handle drive names for root-level sessions.

This was already working as expected for nested paths, but not for the
root-level folder, mostly by accident with the use of `dirname` because:

- `FileSystemAccess:folder/notebook.ipynb` would give
`FileSystemAccess:folder`
- `FileSystemAccess:notebook.ipynb` would give an empty string


This should help with
jupyterlite/jupyterlite#1998

See also: jupyterlite/jupyterlite#1794

## Code changes

- [x] Preserve drive name for root-level sessions
- [x] Update existing test

## User-facing changes

None

## Backwards-incompatible changes

None

## AI usage

- **YES**: Some or all of the content of this PR was generated by AI.
- **YES**: The human author has carefully reviewed this PR and run this
code (keep this PR "draft" until the answer is YES)
- AI tools and models used: GPT 5.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant