-
-
Notifications
You must be signed in to change notification settings - Fork 283
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
Write documentation on how to install packages that can be imported in Spyder #54
Comments
Is the user's problem that they are installing them into the wrong environment, or if not, what's the solution I'm supposed to be writing about? Sorry, I'm not 100% familiar; I know I've helped users in the past with related issues but I don't use keras myself atm and I want to be clear on the canonical intended solution/procedure here.
?!? |
Yes, this is the main problem: they install packages in different conda/pip envs and expect Spyder to find them without further configuration.
I'd like a page or link to point to our users with these possible solutions:
I decided not to answer any of these questions in SO because it's really time consuming to repeat the same speech again and again. Besides, before we didn't have |
More posts about this (I'm listing them here so we can give an answer once we have a link in our docs): https://stackoverflow.com/questions/50976221/caffe-module-not-found-error-in-spyder |
There was also at least one person in our Gitter chat very recently with a very similar issue. I could prep something to be ready to merge after spyder-ide/spyder#7306 is, but I'd rather wait until that is final so I can walk through the steps myself to make sure what I write works and is accurate. |
@ccordoba12 Really sorry for the delay. I created this wiki page describing the process as I'm aware of it for the time being, and welcome your input and corrections. In short form, it would be a great candidate for the future website FAQ, with a link to the full wiki version. I don't want to fragment our documentation any more than it already is (docs, wiki, website, Spyder repo readme/contributing, tutorial, etc) but I'm not sure exactly where it would fit within the formal docs right now, since our flat hierarchy is already getting pretty long. Ideas? |
Thanks for your help with this one! I'll review it when I have some time.
Let's leave it in our wiki for now since the process is going to change (and it'll be greatly simplified) in Spyder 4. |
Besides, at that point we could add this explanation to our Projects page here, which would fit well with the rest of our docs. |
Okay, great! Thanks. |
FYI, I just updated the wiki page with a detailed note about making sure you have the correct version of |
Great, thanks! |
Should we now close this issue? |
Please leave it open until I review the wiki page. Then I'll close it. |
Oh, my bad. I somehow forgot you hadn't done that yet! |
@ccordoba12 Thanks for your additions; I had no way to know they were there until now. I cleaned up some of the prose and clarified a number of things that were unclear, but overall the quality was very good, and a big further improvement from your previous work and few of the changes were grammar/syntax/style issues and most just clarifying the content itself. Also, FYI, I had no idea you made those extensive additions and edits until I manually checked the page now to update something else, since Github wiki doesn't notify users of changes and nothing was posted here. If we're in a situation like this again in the future, if you could notify me in the thread here that would be great. Thanks! |
Sorry for not letting you know about it. I was hoping to do a second round of edits to my initial contribution, but life always get in the way. |
@ccordoba12 Ah, no worries. I know that happens to me too, for sure :) And most wikis notify the creator of a page if it is modified, which Github wiki doesn't. |
@ccordoba12 Just so we're on the same regarding the plan for closing out this issue: So you'll make those further edits, I'll review, and then you'll confirm and finally close? |
There's one important thing I want to do right now: I want to move the first section (Installing packages into the same environment as Spyder) to the end (as it was before). What I want is for people to find right at the beginning an explanation to the problem they most commonly face (The most common problem: Using newly-installed packages inside Spyder) and then a solution for it (Working with other environments and Python installations). |
@ccordoba12 Okay, from that perspective if its mostly just going to be used as an answer to a specific set of SO questions rather than more generally on its own, then I guess it makes sense to have it after the section specifically explaining that problem. I'd suggest (and implemented for now) putting it right after the "most common problem" section, which ends with the paragraph explaining the two main approaches to addressing it, since it essentially briefly explains how to achieve the first mentioned approach, which is the simplest and most conventional setup that most users start with (just one environment for both Spyder and packages) and explains the baseline configuration, and then is immediately followed by the much larger section explaining the second mentioned approach (with its two sub-approaches). This compromise, I think, is better than sticking it all the way at the end, for a few reasons:
|
Ok, that makes sense. But although it's the easiest one right now, I'd want to start deprecating it since Spyder 3 so we can move to the better approach we're planning for Spyder 4. That's why I'd like to put it at the end. What do you think? |
Isn't it installing a separate copy of Spyder into every environment when working with multiple that you want to deprecate (i.e. "The easy approach", rather than the single-environment case? For many simpler/specific use-cases as well as for new users, particularly if working with just the default Anaconda packages that are already installed, keeping both packages and Spyder in just one environment; that is the default after all and probably what most users are using and will continue to do (that's basically what I had on my work machine for a year, since almost all my efforts were focused on one core project while I was there). Of course, it is use-cases that require more than one environment with Spyder, then we recommend users keep Spyder installed in one and use Also, I'd think it is more user-friendly to clearly mark deprecated approaches as such, include language explaining why encourage users to move away from them, rather than just bury them at the bottom (particularly when said approach explains the default setup that is likely retained by the great bulk of our users). I can add some stronger language accordingly. |
Implemented as proposed above; let me know what you think. |
@ccordoba12 Any luck reviewing this? |
@ccordoba12 Any chance of getting a review so we can close out the |
I just did another review. Changes are minimal, but please review again. |
Thanks, and sorry for the delay—I had the diff open but must have accidentally closed it. All your changes were fine, except a few places where I made long-winded section references into embedded intra-document links. I also re-wrote the "If the resulting paths are different" section to give a one line summary of all three choices and one line on the advantages/disadvantages and use case for each, with links to the relevant section for each; take a look at that to make sure you like it. |
Nice!! Thanks a lot for your final changes. I think this one can be finally closed. |
This is a common problem for users, e.g.
https://stackoverflow.com/questions/50913242/issue-importing-keras-in-spyder-and-jupyter
This will be solved in Spyder 4, but in the meantime we can help users with this.
The text was updated successfully, but these errors were encountered: