Reputation: 420
I've been using Spyder 2 as my default Python IDE for a couple of years already, and while preparing a class on Signal Processing I've stumbled upon the new Spyder 3 on Anaconda and decided to see what it looks like.
First, I've updated the Anaconda distribution on my Ubuntu 16.04 office computer to the newest version (i.e. I had a previous version already installed), and then got quite surprised when the button for "Set Console Working Directory" on the File Explorer (top right, between the "folder" icon and the "up arrow" icon) was missing. I can still change the working directory manually on the IPython console, but it's impractical and certainly won't motivate the students!
Thinking it could be a bug with the conda update, I've then decided to give it a go at downloading and installing the Anaconda for Windows on my home laptop (which is probably what most of the students will do), and it also does not have the "Set Console Working Directory" button.
By then I was thinking the new Spyder version might have abandoned it, but strangely enough, the Spyder GitHub page has a screenshot of the new Spyder 3 that HAS this exact same button (again: top right, between the "folder" icon and the "up arrow" icon)!
EDIT: here's a screenshot of how my Spyder looks like in Windows (the big red arrow is pointing towards where the icon should be):
Does anyone knows if there is a setting option that hides the "Set console working directory" button, or if this is a bug in the more recent Anaconda version that doesn't show it?
Upvotes: 14
Views: 45120
Reputation: 51
I have been using Spyder 3.0 and faced the same issue. I was able to work-around it like this - go to the directory you want to make as working folder in the right side top option. Close and open up Spyder. It takes this as the working directory.
Upvotes: 4
Reputation: 43
In the case where you're not having your directory change automatically, an alternative option is to manually locate the directory you want to go to and inside of the IPython Console just change to that directory directly.
%cd 'Directory Location'
Just remember to do a sanity check and also run %pwd afterward.
Upvotes: 4
Reputation: 420
Answering my own question: I've contacted the Spyder developers, and this is "half a bug" :P (my choice of words).
Let me explain:
The intended functionality for Spyder 3 is to automatically change the console working directory when navigating through the file explorer, therefore the lack of the old button is intentional and is not a bug;
However, this new functionality is not working at the moment, which is a bug :P
The good news is that this will be fixed for Spyder 3.0.2, which should be out in a few days :)
(I've also been told that Anaconda usually takes a few days to add new versions in their repositories, so it might take a short while until we're able to update Spyder through conda
)
Upvotes: 6