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.

IPython ignore "Open IPython console here"

See original GitHub issue

Problem Description

When right-clicking a project folder and clicking “Open IPython console here”, an IPython console is created. But then when typing pwd, I always get the home/user directory instead of the current project directory.

What steps reproduce the problem?

  1. Right-click a project folder and click “Open IPython console here”
  2. Type pwd in the IPython console

What is the expected output? What do you see instead?

I see the home/user directory instead of the current project directory. Reproducible both on macOS and Windows.


## Versions

* Spyder version: 5.3.2
* Python version: 
* Qt version: 
* PyQt version: 
* Operating System name/version: macOS 12, Windows 10

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
ccordoba12commented, Aug 10, 2022

I’ll take care of this. This error was probably introduced by the changes I made to improve how we handle the current working directory.

0reactions
dalthvizcommented, Aug 10, 2022

Hi @divideconcept thank you for the feedback! I was able to reproduce this. We will try to implement a fix for this in a future release 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

IPython reference — IPython 3.2.1 documentation
This behavior is different from standard Python, which when called as python -i will only execute one file and ignore your configuration setup....
Read more >
Disable IPython console in PyCharm - Stack Overflow
To disable the use of Ipython for current project. Go to File-->Settings-->Build, Execution, Deployment-->Console , uncheck the box Use Ipython ...
Read more >
Terminal IPython options — IPython 8.7.0 documentation
Set to confirm when you try to exit IPython with an EOF (Control-D in Unix, Control-Z/Enter in Windows). By typing 'exit' or 'quit',...
Read more >
Working with Jupyter Notebooks in Visual Studio Code
Jupyter (formerly IPython Notebook) is an open-source project that lets you ... When you are in command mode, you can enable or disable...
Read more >
VSCode's Python Interactive mode is AMAZING! - YouTube
I've gone from serial Jupyter Notebook user to someone that almost never uses them and it's all thanks to VSCode's interactive mode for ......
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