question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Create Interactive Window" command does not open in the current work directory

See original GitHub issue

Environment data

  • VS Code version: 1.51.1 (Portable version)
  • OS: Windows 10
  • Python version: 3.8.3

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 VSCode installation folder.

Steps to reproduce:

  1. Open VS Code in some folder
  2. Run the command “Jupyter: Create Interactive Window” (jupyter.createnewinteractive)
  3. Verify the current work directory with command pwd in the opened Python Interactive Window

Remark: Using the Portable version of VS Code (don’t know if this makes difference)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
joyceerhlcommented, Jul 11, 2021

@Diogo-Rossi That’s been fixed in VS Code Insiders 😊 https://github.com/microsoft/vscode-jupyter/issues/6549

1reaction
DonJayamannecommented, May 14, 2021

I’ve finally figured out the problem, sorry for the delay in getting to the bttom of this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to run python interactive in current file's directory in ...
Once the extension is installed, make sure your file window is in focus, and press ctrl+shift+p and execute Terminal Here: Create Terminal ....
Read more >
Python interactive window (REPL) - Visual Studio
First, switch to the Python Environments window (View > Other Windows > Python Environments or Ctrl+K > Ctrl+`) and select the Open Interactive...
Read more >
Troubleshoot Terminal launch failures - Visual Studio Code
Try running your designated integrated terminal shell outside VS Code from an external terminal or command prompt. Some terminal launch failures may be...
Read more >
Chapter 8 – Reading and Writing Files
For example, there is a file on my Windows 7 laptop with the filename ... If start is not provided, the current working...
Read more >
The Basics of Visual Studio Code - vscode-docs
make a change to a file; double-click a file in the Explorer; open a file that is not part of the current folder....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found