Python in notepad

Community for Programmers and Developers. C, C++, C#, Basic, Perl, VB, VBS, Java, Javascript, PHP, CGI, HTML and More!
Forum rules
• If you are posting source code, proper indenting and comments will improve the readability.
Darktiger138
Posts: 113
Joined: Fri Apr 13, 2012 2:48 pm
Realm: US East
Account: Darktiger138
Clan: THP
Location: New Zealand

Python in notepad

Unread post by Darktiger138 »

How do you use python using notepad???
Spoiler:
Spoiler 1
Spoiler:
Spoiler 2
Spoiler:
Spoiler 3
Spoiler:
Spoiler 4
Spoiler:
Spoiler 5

User avatar
3ICE
Admin
Posts: 2520
Joined: Sat Mar 01, 2008 11:34 pm
Realm: Europe
Account: 3ICE
Clan: 3ICE
Location: Hungary
Contact:

Re: Python in notepad

Unread post by 3ICE »

Generally you don't.

Notepad doesn't have syntax highlighting, code completion, macros, an easy was to compile or run your code, etc.

You should get Notepad++ or IDLE:
Attachments
IDLE Python GUI.png
IDLE Python GUI.png (9.85 KiB) Viewed 8318 times
ImageImageImageImageImage
Image
ImageImage

Darktiger138
Posts: 113
Joined: Fri Apr 13, 2012 2:48 pm
Realm: US East
Account: Darktiger138
Clan: THP
Location: New Zealand

Re: Python in notepad

Unread post by Darktiger138 »

Oh lol, that's already what I use.
Spoiler:
Spoiler 1
Spoiler:
Spoiler 2
Spoiler:
Spoiler 3
Spoiler:
Spoiler 4
Spoiler:
Spoiler 5

User avatar
3ICE
Admin
Posts: 2520
Joined: Sat Mar 01, 2008 11:34 pm
Realm: Europe
Account: 3ICE
Clan: 3ICE
Location: Hungary
Contact:

Re: Python in notepad

Unread post by 3ICE »

So what was your intent with the above question?
Are you not happy with IDLE?

Personally I found it kind of slow so I switched to Notepad++ right away.
Was that your goal?
ImageImageImageImageImage
Image
ImageImage

Darktiger138
Posts: 113
Joined: Fri Apr 13, 2012 2:48 pm
Realm: US East
Account: Darktiger138
Clan: THP
Location: New Zealand

Re: Python in notepad

Unread post by Darktiger138 »

I was just wondering because at school I sometimes use a different computer that doesn't have IDLE installed on it and I can't be bothered installing it on every computer I use.
Spoiler:
Spoiler 1
Spoiler:
Spoiler 2
Spoiler:
Spoiler 3
Spoiler:
Spoiler 4
Spoiler:
Spoiler 5

User avatar
3ICE
Admin
Posts: 2520
Joined: Sat Mar 01, 2008 11:34 pm
Realm: Europe
Account: 3ICE
Clan: 3ICE
Location: Hungary
Contact:

Re: Python in notepad

Unread post by 3ICE »

Ah. So what do they expect you to use?
Or do they just leave you to your own devices? To try and figure it out alone?
How can they expect any student to study if they don't provide the tools needed for studying...

If they don't even set you up with the Python compiler, they are truly evil.

You can invoke the basic command line compiler with:

Code: Select all

python path/to/your/script.py
Or if it isn't even set up properly to be included in your system's PATH environmental variable, you need to know the location of python.exe as well:

Code: Select all

C:\Program Files (x86)\Python\python.exe path/to/your/script.py
but that is just ugly. Especially if it is a shared install:

Code: Select all

\\server1\shared\school\apps\programming\pythons\v2.7\Python\python.exe path/to/your/script.py
Ouch.

In my programming classes we always have multiple possible IDEs to choose from on every computer. For example with Haskell we got four, and I went with GHCi (Glasgow Haskell Compiler Interactive) for compiling and coded in Notepad++. For Powershell we got three choices, and I went with ISE (Windows PowerShell Integrated Scripting Environment) for both compiling and writing code, occasionally returning to Notepad++ because I'm more used to it.
ImageImageImageImageImage
Image
ImageImage

Darktiger138
Posts: 113
Joined: Fri Apr 13, 2012 2:48 pm
Realm: US East
Account: Darktiger138
Clan: THP
Location: New Zealand

Re: Python in notepad

Unread post by Darktiger138 »

Well in my programming class all the computers in there have IDLE installed, but the school has multiple different computer labs all over the place, I was just bored in my English class and felt like screwing around with notepad.
Spoiler:
Spoiler 1
Spoiler:
Spoiler 2
Spoiler:
Spoiler 3
Spoiler:
Spoiler 4
Spoiler:
Spoiler 5

User avatar
3ICE
Admin
Posts: 2520
Joined: Sat Mar 01, 2008 11:34 pm
Realm: Europe
Account: 3ICE
Clan: 3ICE
Location: Hungary
Contact:

Re: Python in notepad

Unread post by 3ICE »

Ah. Then you need Python Portable. I have it on all my pendrives.
ImageImageImageImageImage
Image
ImageImage

Darktiger138
Posts: 113
Joined: Fri Apr 13, 2012 2:48 pm
Realm: US East
Account: Darktiger138
Clan: THP
Location: New Zealand

Re: Python in notepad

Unread post by Darktiger138 »

I don't really need it, I was just curious.
Spoiler:
Spoiler 1
Spoiler:
Spoiler 2
Spoiler:
Spoiler 3
Spoiler:
Spoiler 4
Spoiler:
Spoiler 5

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests