microsoft / vscode-jupyter

VS Code Jupyter extension

Home Page:https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No effect after setting the "jupyter.notebookFileRoot": "${fileDirname}". Always default to the ${workspaceFolder}.

ndgayan opened this issue · comments

Applies To

  • Notebooks (.ipynb files)
  • Interactive Window and/or Cell Scripts (.py files with #%% markers)

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

Thanks for filing this issue and sorry you are running into this.

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.

Given this works in the latest version of the Jupyter extension, I would suggest updating to the latest version.
We do not back port fixes to older versions.

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.