Python in notepad

Community for Programmers and Developers. C, C++, C#, Basic, Perl, VB, VBS, Java, Javascript, PHP, CGI, HTML and More!
• If you are posting source code, proper indenting and comments will improve the readability.

Python in notepad

New postby Darktiger138 on Tue Jun 19, 2012 5:12 pm

How do you use python using notepad???
Spoiler:
Spoiler 1
Spoiler:
Spoiler 2
Spoiler:
Spoiler 3
Spoiler:
Spoiler 4
Spoiler:
Spoiler 5
Darktiger138
 
Posts: 113
Joined: Fri Apr 13, 2012 2:48 pm
Location: New Zealand
Realm: US East
Account: Darktiger138
Clan: THP

Re: Python in notepad

New postby 3ICE on Wed Jun 20, 2012 12:15 am

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 4159 times
ImageImageImageImageImage
Image
ImageImage
User avatar
3ICE
Admin
 
Posts: 2126
Joined: Sat Mar 01, 2008 11:34 pm
Location: Hungary
Realm: US East
Account: 3ICE
Clan: 3ICE

Re: Python in notepad

New postby Darktiger138 on Thu Jun 21, 2012 1:57 pm

Oh lol, that's already what I use.
Spoiler:
Spoiler 1
Spoiler:
Spoiler 2
Spoiler:
Spoiler 3
Spoiler:
Spoiler 4
Spoiler:
Spoiler 5
Darktiger138
 
Posts: 113
Joined: Fri Apr 13, 2012 2:48 pm
Location: New Zealand
Realm: US East
Account: Darktiger138
Clan: THP

Re: Python in notepad

New postby 3ICE on Thu Jun 21, 2012 2:36 pm

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
User avatar
3ICE
Admin
 
Posts: 2126
Joined: Sat Mar 01, 2008 11:34 pm
Location: Hungary
Realm: US East
Account: 3ICE
Clan: 3ICE

Re: Python in notepad

New postby Darktiger138 on Thu Jun 21, 2012 5:07 pm

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
Darktiger138
 
Posts: 113
Joined: Fri Apr 13, 2012 2:48 pm
Location: New Zealand
Realm: US East
Account: Darktiger138
Clan: THP

Re: Python in notepad

New postby 3ICE on Thu Jun 21, 2012 11:25 pm

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
User avatar
3ICE
Admin
 
Posts: 2126
Joined: Sat Mar 01, 2008 11:34 pm
Location: Hungary
Realm: US East
Account: 3ICE
Clan: 3ICE

Re: Python in notepad

New postby Darktiger138 on Fri Jun 22, 2012 1:10 am

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
Darktiger138
 
Posts: 113
Joined: Fri Apr 13, 2012 2:48 pm
Location: New Zealand
Realm: US East
Account: Darktiger138
Clan: THP

Re: Python in notepad

New postby 3ICE on Fri Jun 22, 2012 3:17 am

Ah. Then you need Python Portable. I have it on all my pendrives.
ImageImageImageImageImage
Image
ImageImage
User avatar
3ICE
Admin
 
Posts: 2126
Joined: Sat Mar 01, 2008 11:34 pm
Location: Hungary
Realm: US East
Account: 3ICE
Clan: 3ICE

Re: Python in notepad

New postby Darktiger138 on Fri Jun 22, 2012 3:41 am

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
Darktiger138
 
Posts: 113
Joined: Fri Apr 13, 2012 2:48 pm
Location: New Zealand
Realm: US East
Account: Darktiger138
Clan: THP


Return to Programming



Who is online

Users browsing this forum: No registered users and 2 guests

cron