-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No effect after setting the "jupyter.notebookFileRoot": "${fileDirname}". Always default to the ${workspaceFolder}. #15649
Comments
Thanks for filing this issue and sorry you are running into this.
Given this works in the latest version of the Jupyter extension, I would suggest updating to the latest version. |
Sorry. I think you misunderstood my question. The issue is in the current version of the extension. The issue is no effect after setting the "jupyter.notebookFileRoot": "${fileDirname}". it is always default to the ${workspaceFolder}. I can't set it to the ${fileDirname} in the latest version of the extension. However, order version of the extension is working fine. |
Oh sorry, I have indeed, thanks |
Please can you share the folder structure?
I've tried this with the latest version of Jupyter extension and VS Code and this works as expected. Please could you enable logging as follows:
|
Sorry about the late reply, Using remote SSH: Below is the process to activate Python environment. Workspace folder settings.json set to Assume the notebook is in two Test folders deep from the workspace folder root. From the old version of the extension. [v2024.3.1] import os
os.getcwd()
# /<Path to Workspace Folder>/Test/Test From the current version of the extension. [v2024.4.0] import os
os.getcwd()
# /<Path to Workspace Folder> You can clearly see the "jupyter.notebookFileRoot": "${fileDirname}" not reading or using the newer version of the extension. Could you use Git to compare the code changes related to this issue? I'll work on getting Jupyter logs from both versions of the extensions and get permission to post here. |
Thank you for the logs, sorry I missed this. |
I'm also facing the same issue with the remote-ssh extension. |
I'm facing the similar issue. Downgrading jupyter notebook extension doesn't work for me. I'm wondering if it's caused by OS since Visual Studio Code Server no longer support old linux distribution recently. And I upload my jupyter log here:
Hope you can tell me how to fix this. I'm really suffering from this issue because I have to use the absolute filepath every time. Thanks a lot. |
Applies To
What happened?
The file root is always the workspace folder in 2024.4.0. No effect after setting to "jupyter.notebookFileRoot": "${fileDirname}". However, the 2024.3.1 version is working fine.
VS Code Version
Version: 1.89.0
Jupyter Extension Version
2024.4.0
Jupyter logs
No response
Coding Language and Runtime Version
Python 3.10
Language Extension Version (if applicable)
No response
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
Remote
The text was updated successfully, but these errors were encountered: