Skip to content

Conversation

@manzt
Copy link
Collaborator

@manzt manzt commented Oct 23, 2025

Fixes #171

Previously, pathlib.Path.cwd() returned the LSP server's working directory (extension/dist) instead of the notebook's directory. This caused relative file paths to resolve incorrectly, breaking notebooks that relied on local file access with libraries like pandas, polars, etc.

The kernel subprocess now inherits the notebook's directory as its working directory, ensuring cwd and relative paths work as expected.

Fixes #171

Previously, `pathlib.Path.cwd()` returned the LSP server's working
directory (`extension/dist`) instead of the notebook's directory. This
caused relative file paths to resolve incorrectly, breaking notebooks
that relied on local file access with libraries like `pandas`, `polars`,
etc.

The kernel subprocess now inherits the notebook's directory as its
working directory, ensuring `cwd` and relative paths work as expected.
@manzt manzt added the bug Something isn't working label Oct 23, 2025
@manzt manzt merged commit 0d90d74 into main Oct 23, 2025
7 checks passed
@manzt manzt deleted the push-ssxouxppsltt branch October 23, 2025 15:13
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.

cwd resolves to LSP root instead of notebook directory

2 participants