These are chat archives for spyder-ide/public

30th
Jul 2018
Paul Gureghian
@paulgureghian_twitter
Jul 30 2018 00:20
I couldn't find an "Anaconda" prompt the way I did on windows. so I looked in navigator and couldn't update from there either. then it dawned on me to enter "conda update --all" in terminal and that worked
CAM Gerlach
@CAM-Gerlach
Jul 30 2018 00:21
Yeah, "Anaconda Prompt" is a special hack on Windows due to its horrible default shell and overall developer-unfriendly CLI environment. On any other OS, it should work fine from any normal terminal/command line without anything fancy.
conda update --all usually ins't the best idea in the base environment or your main production one, since it can sometimes break things. I recommend sticking with conda update anaconda for general environment updates then updating Spyder individually as needed with conda update spyder.
Paul Gureghian
@paulgureghian_twitter
Jul 30 2018 00:24
Capture21.PNG
CAM Gerlach
@CAM-Gerlach
Jul 30 2018 00:26
?
Looks like everything is up to date now, but if it wasn't you should see a link on the version with an up arrow next to it. If not, you can update stuff under Evironments. But I mostly just use the CLI.
Paul Gureghian
@paulgureghian_twitter
Jul 30 2018 00:27
Just wanted to show that Spyder is 3.3
CAM Gerlach
@CAM-Gerlach
Jul 30 2018 00:27
Yup.
:+1:
Glad you got it updated!
Ogi Moore
@j9ac9k
Jul 30 2018 00:32
@ccordoba12 is functionality for keeping a recipe in conda forge documented anywhere? I'm looking at making my python application into a conda package as well, been using Spyder as an example as my application is also pyqt based.
Carlos Cordoba
@ccordoba12
Jul 30 2018 01:36

is functionality for keeping a recipe in conda forge documented anywhere?

@j9ac9k, I don't understand what you mean by this, but our official recipe lives in conda-forge now

Ogi Moore
@j9ac9k
Jul 30 2018 01:39
Yeah I guess I'm not sure what I mean either, I'm just learning about packaging, didn't realize you can have your recipe hosted/maintained else where and was curious how you migrate a build recipe there... Like, do I give them a build recipe, and any time I want to update it, I submit a pull request in conda-forge?
Carlos Cordoba
@ccordoba12
Jul 30 2018 01:50
If your package is open source, you need to open a PR in https://github.com/conda-forge/staged-recipes/
Ogi Moore
@j9ac9k
Jul 30 2018 01:52
Thanks! And thanks for maintaining Spyder, I've used your code base as example code for TimeView!
Carlos Cordoba
@ccordoba12
Jul 30 2018 01:52
They'll review your recipe and if it's approved, they'll create a dedicated repo for your package (called feedstock) that creates conda packages automatically using continuous infrastructure services (Travis, Appveyor, etc) and uploads them to the conda-forge channel in Anaconda
After that you just need to open a PR in your feedstock to update its package to newer versions

Thanks! And thanks for maintaining Spyder, I've used your code base as example code for TimeView!

Sure, no problem. Glad you reused part of our code for your project!

CAM Gerlach
@CAM-Gerlach
Jul 30 2018 02:04
Great to hear @j9ac9k ! If you re-used a non-trivial amount of our code, just make sure you keep our license-related file headers intact (changing the path/location of our license as appropriate) so its clear where those parts of the code originally came from. Since your project is also MIT, other than retaining those with our copyright statement line, you shouldn't need to do anything else since all the same required notices and disclaimers are already in your license file.
Ogi Moore
@j9ac9k
Jul 30 2018 02:08
Haven't copied any code, mostly setting how all configured setup.py, Travis, and testing... I did cite Spyder as a model example in my write-up (converting TimeView from a series of scripts to a package has been a capstone project in my degree program) but no reason I can't mention you guys in the readme
CAM Gerlach
@CAM-Gerlach
Jul 30 2018 02:08
Oh, okay—you're fine then, sorry I misunderstood. Glad Spyder served as a helpful example for you!

no reason I can't mention you guys in the readme

No need to unless you want to, but a link to our Github or website never hurts if you really want!

Ogi Moore
@j9ac9k
Jul 30 2018 02:14
@CAM-Gerlach you may remember I was all
I asked the about binary native installers a while ago
CAM Gerlach
@CAM-Gerlach
Jul 30 2018 02:14
Sorry, I'm not 100% sure what you mean to imply by that :confused:
Ogi Moore
@j9ac9k
Jul 30 2018 02:16
My message on mobile got cut off..msorry about that, was just referencing having asked about how Spyder handles distributions a while ago is all :)
CAM Gerlach
@CAM-Gerlach
Jul 30 2018 02:16
:)
I figured something got cut off somehow. Oh and if you recall that, you'll remember I'm the n00b haha
Ogi Moore
@j9ac9k
Jul 30 2018 02:19
Haha yeah, also remember your stopped that distribution method a while ago :(
CAM Gerlach
@CAM-Gerlach
Jul 30 2018 02:21
Yeah, too much work apparently and Spyder is almost always used with the whole PyData ecosystem that comes with Anaconda or other non-standalone distribution methods anyway.
Paul Gureghian
@paulgureghian_twitter
Jul 30 2018 16:45
What is the diff between new "file" and "module" in Spyder? is file just a text file and module is a script? can text file be saved as a .py file? what makes a file just text and a file that can be "run" ?
CAM Gerlach
@CAM-Gerlach
Jul 30 2018 16:54

What is the diff between new "file" and "module" in Spyder?

Are those two different options in Spyder 4? I don't have the latter running at the moment... If not, in what context?

is file just a text file and module is a script?

In the general/conceptual case, a file is a file, any file, as with any other program, and a module is specifically defined as being quite different from a script, though any .py file can be automatically treated as a module (assuming it defines something useful). Here's some general information I Googled for you from the Python docs.

can text file be saved as a .py file?

I don't see why not; its just a file extension...what matters if what is in the file is valid Python code

what makes a file just text and a file that can be "run" ?

More abstractly, whether the text in the file is valid syntax in some programming language, and more concretely whether the execute permissions bit is set for the file.

@paulgureghian_twitter These all sound like more general Python/programming questions than something Spyder related, so you may be better off posting them to a more general Python/programming/etc help site like Stack Overflow, since this chat room is for Spyder help and questions specifically. I might also suggest taking a programming course (in person or online) if you find you are wading in to deep waters and haven't yet learned to swim.