-
Notifications
You must be signed in to change notification settings - Fork 295
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
[interactive-window] "Create Interactive Window" command does not open in the current work directory #9930
Comments
thanks for filing the issue. |
Although, are you saying that you expect the cwd to be |
I think this is by design. The |
We pass undefined here:
That's why it would always use the first workspace folder. |
when dealing with muti-root workspace, i think we should ask the user. eg if you create a terminal vacode will ask the user to pick a workspace folder from the list, python extension has the same functionality for some features. |
ah, I was just trying a workspace with two folders, not a multi-root workspace. Following the terminal's example seems reasonable to me |
Maybe the behaviour i was getting before the clean uninstall/install was acctually a bug. That's kinda funny. |
In my case, "Jupyter: Create Interactive Window" creates a jupyter session in the first folder of my workspace (the one on top). Execute "pwd" in the IPython console to verify. This is very annoying because I work different environment files within the folders. |
Yeah, it'd be nice if the user was prompted which workspace folder (in a multi-root one) to used when creating a new Interactive Window, similar to what already happens with terminals. |
Environment data
Expected behaviour
When run the command "Jupyter: Create Interactive Window" (jupyter.createnewinteractive)
The python interactive window should open on the current project's folder as working directory,
which can be seen with line command pwd
Actual behaviour
The python interactive window opens in the first folder of the workspace.
Steps to reproduce:
Logs
Output for
Jupyter
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toJupyter
)Considerations
It always worked until i did a clean uninstall and install today.
Also, i have "jupyter.notebookFileRoot": "${workspaceFolder}" in my settings.json
The text was updated successfully, but these errors were encountered: