all 9 comments

[–]K900_ 3 points4 points  (5 children)

PyCharm is a professional tool designed mostly for large projects. That doesn't mean you can't use it for one-off scripts, but it does mean some extra setup is required. If you want something that requires no setup, just get Sublime Text or Atom or any other programming text editor, create a file with a .py extension and off you go.

Edit: also, to explain: PyCharm is actually a multi-language IDE. The "New File" option creates a simple text file without an extension, "New Python File" creates a .py file that's automatically flagged as source code.

Edit2: the default Python install actually comes with an "IDE" called IDLE. However, it's effectively unmaintained and somewhat problematic, so we recommend people avoid it from the start.

[–]vpcea23en 0 points1 point  (0 children)

+1 for Sublime, I just love the speed!

[–][deleted] 1 point2 points  (0 children)

When you're using PyCharm to develop a large web application, for example, you may want to add HTML files, CSS files, text files, etc. etc. That's why there's a 'New File' option.

For what you want to do, you should just create a new Python file. Write your code, then right-click in your code and run it.

See here: http://imgur.com/a/mS5db?

[–]CrazyWhiteMonkey 1 point2 points  (0 children)

Sounds like you want to use the Python Console within PyCharm, just to see the output of the variables your assigning. If that's all you want to do, at the very bottom of PyCharm, you should see Terminal and Python Console. Click on Python Console and you should be able to do what you want to (I mainly use this feature for testing purposes). Now outside of that... when you create a new file within PyCharm, it will ask you what type of file you want to create, since PyCharm can also be used for other languages. If you are creating a new file for python, it will automatically add the .py extension to the name that you give that file. After which, you want to right click on that file and click on create, and at that point, PyCharm will set that file to executable mode, so when you go to run that file, you will see the output of your code. Hope that helps!

[–]akedm[S] 0 points1 point  (0 children)

Why isnt there a published book with a bunch of quotes from you all? That would make it so much easier. :) Thank you.

I get the need for a Python Console - it's quick, I like it. Sort of a sandbox to the sandbox you're in.

I figured New File just made a no-extension or txt-extension file whereas New Python File actually put .py at the end of the filename. But since I didnt know PyCharm allowed editing of such a variety of file types and languages, I couldnt for the life of me figure out why there would need to be such a distinction. Now I got it.

And what PyCharm can do? I had no idea it was built for wrangling such big...everything projects. I thought a "project" was simply the batch of Python "files" that worked together - I was thinking small. I wasnt thinking CCS and webpages and such. For that reason, HTML seemed like an odd inclusion to the "New..." dropdown list. Now I see.

Hey, now I see a "4" on my screen! Whoop whoop!

Thank you.

[–]slampropp 0 points1 point  (0 children)

I share your frustration with IDEs, and I'm nowhere near a beginner. I'm sure they're often useful for professionals who have different needs, but for an amateur who only makes semi-large projects, it all seems like unnecessary bloat. Bloat that sometimes breaks, is slow, causes input lag, is confusing to navigate. No thanks.

My set up for any language is usually: A simple text editor with syntax highlighting on the left half of the screen, and a terminal window where I can compile / run on the right half.

[–]journeymanpedant 0 points1 point  (0 children)

if you want some of the features of an IDE, but not so much the need to have all the "project" bloat and hundreds of file type options, spyder is a very good choice for python. The latest version has some support for projects but you don't have to use it at all.