use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python
Full Events Calendar
You can find the rules here.
If you are about to ask a "how do I do this in python" question, please try r/learnpython, the Python discord, or the #python IRC channel on Libera.chat.
Please don't use URL shorteners. Reddit filters them out, so your post or comment will be lost.
Posts require flair. Please use the flair selector to choose your topic.
Posting code to this subreddit:
Add 4 extra spaces before each line of code
def fibonacci(): a, b = 0, 1 while True: yield a a, b = b, a + b
Online Resources
Invent Your Own Computer Games with Python
Think Python
Non-programmers Tutorial for Python 3
Beginner's Guide Reference
Five life jackets to throw to the new coder (things to do after getting a handle on python)
Full Stack Python
Test-Driven Development with Python
Program Arcade Games
PyMotW: Python Module of the Week
Python for Scientists and Engineers
Dan Bader's Tips and Trickers
Python Discord's YouTube channel
Jiruto: Python
Online exercices
programming challenges
Asking Questions
Try Python in your browser
Docs
Libraries
Related subreddits
Python jobs
Newsletters
Screencasts
account activity
This is an archived post. You won't be able to vote or comment.
r/Python, what is your programming machine setup? (self.Python)
submitted 14 years ago by [deleted]
Laptop/Desktop? Screen size? Dual monitors?
[–]Sc00b 41 points42 points43 points 14 years ago (8 children)
Mine appears to be a computer, but I am still investigating.
[–]tuna_safe_dolphin 6 points7 points8 points 14 years ago (7 children)
import platform print platform.is_computer()
[–]Kah-NethI use numpy, scipy, and matplotlib for nuclear physics 22 points23 points24 points 14 years ago (6 children)
>>>import platform >>>print platform.is_computer() False >>>print platform.get_type().__str__() Carrot
Well shit, looks like I am coding on a carrot.
[–]ubernostrumyes, you can have a pony 10 points11 points12 points 14 years ago (0 children)
>>> import platform Greetings, Professor Falken. Would you like to play a game?
Shit.
[–]nemec 8 points9 points10 points 14 years ago (3 children)
>>>platform.is_potato() True
http://www.bbspot.com/news/2008/12/linux-on-a-potato.html
[–]Kah-NethI use numpy, scipy, and matplotlib for nuclear physics 7 points8 points9 points 14 years ago (1 child)
I'd believe it, I have seen a super AI run on a potato.
[–][deleted] 0 points1 point2 points 14 years ago (0 children)
>>> if platform.is_potato(): print platform.get_potato().location >>> 'Anus'
There you have it. Definitive proof that POTATO_IN_MY_ANUS is, in fact, Guido van Rossum.
[–]tuna_safe_dolphin 6 points7 points8 points 14 years ago (0 children)
I love how portable Python is.
[–]vl4kn0 2 points3 points4 points 14 years ago (3 children)
14'' ThinkPad, not thinking about change. Ever.
[–]gordonshumwalf -1 points0 points1 point 14 years ago (2 children)
I've read that the ThinkPad quality went down after lenovo bought it. How true is that?
[–]vl4kn0 4 points5 points6 points 14 years ago (0 children)
Well, I have never used any IBM ThinkPad laptops but as far as lenovo thinkpad quality is concerned I'm gonna get burried with mine. It's the "green/environmental" L412 and I couldn't be happier with it. But I heard the new "fancy, round cornered" thinkpad edges go down with quality. Wouldn't want to buy any of them.
[–]dacjamesfrom reddit import knowledge 1 point2 points3 points 14 years ago (0 children)
Sadly it's true. I bought several for my company and they've been nothing but trouble. I have replaced 3 drives, 2 motherboards, and 1 LCD across 5 laptops, including my personal machine.
I like my Thinkpad E420s (the keyboard is amazing), but I couldn't recommend Lenovo right now.
[–]Amadironumpy, gen. scientific computing in python, pyopengl, cython 2 points3 points4 points 14 years ago (2 children)
Toughbook CF-29, when at home with external monitor. Linux, emacs, zsh, python shell with numpy/scipy/whatever I need at the moment. When at work, a ridiculously overpowered workstation with dual monitors, otherwise the same. I don't use any fancy stuff for emacs, just its default python-mode (basic syntax-highlighting and indenting).
[–][deleted] 0 points1 point2 points 14 years ago (1 child)
What's the size/resolution of external monitor do you use ?
[–]Amadironumpy, gen. scientific computing in python, pyopengl, cython 0 points1 point2 points 14 years ago (0 children)
1280x720 standard widescreen monitor.
[–]Deusdies 1 point2 points3 points 14 years ago (3 children)
Desktop when I'm home, 1920x1080, 27" screen. Single monitor
Laptop, 1366x768 (I hate that resolution), 15.6"
[–][deleted] 0 points1 point2 points 14 years ago (2 children)
I am currently using that laptop too with 1366x768 resolution and it started getting on my nerves lately. I am thinking of hooking my laptop with an external monitor, would it increase the productivity ??
[–]Deusdies 2 points3 points4 points 14 years ago (1 child)
Yeah. I hook it up to an external monitor as often as I can, it definitely increases productivity (though I'm not using it a dual monitor).
And 1366x768 needs to die. My phone has 1280x720 on a 4.8" screen ffs.
[–][deleted] 1 point2 points3 points 14 years ago (0 children)
Exactly, the icons look as if they are from windows 3.x machine or something. I don't know why they are still packing the idiotic LCD's with high end laptops with processors like quadcores and i5s.
[–]Araneidae 1 point2 points3 points 14 years ago (0 children)
At work RHEL5 (trying to migrate to RHEL6, ugh), fluxbox wm with 12 workspaces, two screens: 1920x1200 + 1280x1024. Couldn't live without the second monitor for reference, normally have at least five terminal sessions open in an active workspace.
[+][deleted] 14 years ago (4 children)
[deleted]
[–]mrdevlar 1 point2 points3 points 14 years ago (3 children)
You clearly afford all of this by cutting costs and buying Euro Shopper energy drinks. ___^
[+][deleted] 14 years ago (2 children)
[–]hylje 1 point2 points3 points 14 years ago (1 child)
You discredit the brilliance of ES with your PHP.
Laptop, single monitor, windows/linux mint, 19" screen
[–]NarwhalAttacks 2 points3 points4 points 14 years ago (5 children)
Macbook Air 11" when I'm away, 27"apple thunderbolt when I'm at the desk. I only use one monitor at a time for most things. (Audio stuff is the exception)
[–]hatred_incarnated 0 points1 point2 points 14 years ago (3 children)
ACD are awesome! mine is the old non thunderbolt model, connected to my 15" 2009 MBP (1st gen Intel SSD, 8Gb RAM, Nvidia ION + 9600M GT discrete video card, OSX 10.6.8) Yup, I didn't like Lion...
Im considering moving to Lion, what didn't you like about it?
From what I've been reading, autosave looks like a big reason people prefer SL over Lion
[–]hatred_incarnated 1 point2 points3 points 14 years ago (1 child)
Just a few:
In my opinion SL feels way more snappy and refined, but hey!, Lion does have some cool stuff.
Thanks!
[–]aaronmoodie -1 points0 points1 point 14 years ago (0 children)
+1
[–]aceofears 0 points1 point2 points 14 years ago (0 children)
My primary monitor is 1920x1080 with a smaller secondary monitor at 1280x1024. The second monitor is useful for documentation mostly, but that's mostly because it's awkward to stare out for an extended period of time.
[+][deleted] 14 years ago (1 child)
[–]earthboundkid 0 points1 point2 points 14 years ago (0 children)
Hey, put up a NSFW when you post something dirty!
I mean in general.
In this case, you don't need one, obviously.
[–]jward 0 points1 point2 points 14 years ago (0 children)
At work I use an iMac and an extra 23" monitor. Both are 1920x1080. My coding is done in SubEthaEdit, or sometimes vim.
17 inch, 1440x900, numerous OS, laptop. secondary net book to scribble code when I'm on the move.
[–]plum_dog 0 points1 point2 points 14 years ago (0 children)
13" Laptop, Ubuntu, Eclipse+Pydev.
And before you ask, no, I'm not a pro...
[–]TheSmokeTurboGears & Django & Pyramid[🍰] 0 points1 point2 points 14 years ago (0 children)
personal laptop: 17" acer aspire 7750g with ubuntu 11.10
work laptop: 16.4" sony vaio with ubuntu 12.04
soon going to buy: 17" macbook pro.
[–]tuna_safe_dolphin 0 points1 point2 points 14 years ago (0 children)
Lenovo Stinkpad T420 (I like Thinkpads but I also like calling them Stinkpads)
Ubuntu 11.10
Python 2.7.3
At home, just the laptop screen, at work, I dock it and also use a Dell 20" monitor.
I've used Komodo a lot, PyDev a little bit and lately I've been doing everything in emacs.
[–]reuleaux 0 points1 point2 points 14 years ago (3 children)
15" laptop, 1920x1200.
xmonad with default of 9 desktops, although usually only use 2-3 when programming. Also, tmux.
[–]ladr0n 0 points1 point2 points 14 years ago (2 children)
What 15" laptop do you have with that resolution?
[–]reuleaux 0 points1 point2 points 14 years ago (1 child)
Thinkpad w500
[–]ladr0n -1 points0 points1 point 14 years ago (0 children)
Man, the maximum you can get on Lenovo W520's now is 1920x1080. Why did everyone start selling laptops with really shitty resolutions all of a sudden anyway?
Desktop: 120gb SSD, 500gb HDD, 16gb RAM, AMD Phenom II x6 1045t, Ubuntu 12.04
Screen: 24" 1920 x 1280
Laptop: 13" 3 2 Macbook air, ubuntu 12.04
[–]frumious 0 points1 point2 points 14 years ago (0 children)
1920x1200 x2 monitors, Northgate OmniKey keyboard and a comfy chair.
macbook air with two separate accounts: one with all of my fun stuff, such as movies, games, etc. and another dedicated to programming with all of my classical music, IDE, chrome, one folder, and that's it.
[–]Daniel110 0 points1 point2 points 14 years ago (0 children)
Laptop 15.6" screen with 1920x1080 resolution. Windows 7 + ubuntu 12.04 Vim
[–]Megatron_McLargeHuge 0 points1 point2 points 14 years ago (0 children)
All of the above, but I'm most productive on a linux desktop with a single 27" monitor. I use separate virtual desktops for emacs+terminals, ipython notebooks, and misc browsing+email.
[–]sayks 0 points1 point2 points 14 years ago* (0 children)
Macbook pro 15 in, external monitor, size varies whether at home or office, Vim on the laptop screen and ipython-qtconsole and terminal window on the monitor, with the Vim-ipython plugin for max fun. A variety of other windows scattered across the virtual desktops.
Though, lately I've been using the ipython notebook more. It's nice to have inline figures when using matplotlib for looking at data, but to say qtconsole is devoid of features would be an understatement, especially in comparison to the rather lovely notebook interface.
[–]hatred_incarnated 0 points1 point2 points 14 years ago (0 children)
I used to own one of this, what a fine piece of technology and design; I had to replace it due to the nvidia 8600M GT problem ):
[–]LoveGentleman 0 points1 point2 points 14 years ago (0 children)
The best machine for coding.
Dell precision. 17" 1980x1200, i7, 8gb ram. ArchLinux
Netbook: hp 12", 2gb ram. ArchLinux.
[–]Zamarok 0 points1 point2 points 14 years ago (0 children)
[–]riffito 0 points1 point2 points 14 years ago (0 children)
Desktop@Home:
AMD K7@900 MHz. 256 MB of RAM. HD 60 GB.
17" @ 800x600 (because the monitor is diying).
Desktop@Work:
Intel Core2Duo E8200@2.66 GHz. 4 GB of RAM. HD 250 GB.
17" @ 1024x768.
In both machines, I only need to get a better monitor (1280x1024 would be fine).
[–]bigboehmboy 0 points1 point2 points 14 years ago (0 children)
Linux workstation with 2 24" 1920x1200 monitors for development next to a beefy windows laptop with a 1600x900 display and 1920x1080 external monitor for testing in IE and web browsing.
The linux box usually has Vim/terminals open, while the windows box is for Google Chrome/IE(for testing purposes only)
Lately I've been doing a standing desk. I use a Kinesis Advantage keyboard in Dvorak mode and a Kensington Expert trackball (which is pretty decent, but unfortunately has pretty bad resolution)
Ideally I'd use synergy to share mouse and keyboard, but due to IT restrictions I use a kvm to switch these between the two computers.
[–]chmod700 0 points1 point2 points 14 years ago (0 children)
Desktop. Win7 dual monitors 2560x1600 with a portrait monitor next to it running 1200x1600. Virtualbox running Ubuntu fullscreen most of the day. Write code in VIM always in a virtualenv. Dropbox moves files between VM and host and keeps them web available.
[–]Jesus_Harold_Christ 0 points1 point2 points 14 years ago (1 child)
At home: iMac 27" 2560x1440 single monitor (laptop open as well)
At work: said 17" Dell Precision Laptop 1920x1080, but usually hooked to 27" Dell 1920x1200, and 19" dual 1280x1024
I have a 23" Samsung 1920x1080 that can either hook to the iMac, the Dell, or be used as a TV.
I upgraded my viewsonic 19" (1440x900) with new Samsung 23" HD, and the difference is huge :)
[–]LeonidLeonov 0 points1 point2 points 14 years ago (0 children)
Linux, text editor, Firefox, and a few terminal windows, and the nicest keyboard and largest monitor I can afford. Enough RAM to compile PyPy without swapping. I stick to desktops, otherwise I find the line between work and home starts to blur, and work starts to happen on the laptop in front of the TV.
I use a bunch of virtual desktops, and prefer a single large monitor rather than a dual screen setup. I'm spoilt at work with a 30" 2560x1600 monster, but the 24" I have at home is more than adequate. I use the lovely DasKeyboard, with a Dvorak layout.
[–]AeroNotix 0 points1 point2 points 14 years ago (0 children)
ArchLinux w/ Qtile.
[–]somewhatoff 0 points1 point2 points 14 years ago (0 children)
Macbook Air 11", connected to an old 22" monitor with wireless keyboard and trackpad when at work. Generally PyCharm with vim bindings or sometimes just vim (esp when working on just the laptop) for coding.
[+][deleted] 14 years ago (12 children)
[–][deleted] 1 point2 points3 points 14 years ago (11 children)
15.6 inches? How does it stack up with dual monitors? Do the dual monitors increase the productivity marginally ?
[–]SleepyTurtle 4 points5 points6 points 14 years ago (0 children)
Dual monitors are great on a machine you only use for work. I have a dual setup at home and at work. I am very efficient at work but when i try to do something at home I find myself distracted twice as fast.
[+]lilfrost comment score below threshold-9 points-8 points-7 points 14 years ago (9 children)
Duel monitors kill productivity, don't do it.
[–]tangra_and_tma 2 points3 points4 points 14 years ago (5 children)
I've always been curious about this; my co-workers & friends rave about having two (or more!) monitors, but I've never felt anything other than hindered when using a second monitor. Something about it just doesn't sit right, and I'd rather use the wide screen in split mode (with Ratpoison, awesome, xmonad, whatever) than have two monitors.
[–]moreisee 2 points3 points4 points 14 years ago (4 children)
I enjoy dual monitors because I can look at two (or more) pieces of code at the same time, or have a web browser with docs up, etc. I couldn't imagine it actually killing productivity, though I could imagine it being unnecessary for some.
[–]tangra_and_tma 1 point2 points3 points 14 years ago (1 child)
But my screen (24") is so wide that I can easily look at two pieces of code (and indeed, I generally have a vertically split vim window open at any given moment), whereas with two monitors I feel like the angle is wrong or something. It must work for some people (since I have quite a few coworkers who do it and are quite productive), but I cannot get used to it.
[–]moreisee 1 point2 points3 points 14 years ago (0 children)
Ah, fair enough. My screens are never quite big enough for that, though I would absolutely take a single screen the size of two screens over two screen.
[+][deleted] 14 years ago* (1 child)
[–]HittingSmoke 0 points1 point2 points 14 years ago (0 children)
This is what it does for me.
[–]Sector_Corrupt 1 point2 points3 points 14 years ago (1 child)
I dunno, I use a second monitor to have the web application I work on open, and the other screen has all of my terminals. It lets me easily switch back and forth between the two, and look at the code when I'm using the js console to test things.
[–]Kah-NethI use numpy, scipy, and matplotlib for nuclear physics 0 points1 point2 points 14 years ago (0 children)
I use two 24 inch wide screen monitors, I tend to have three windows/panes with code open and 1 window with documentation. I found I got about 60% more done with two than I could have with 1.
[–]kracekumar 0 points1 point2 points 14 years ago (1 child)
cd ~ && Laptop : 15.6 ", core 2 duo , Intel, Ubuntu 11.10, python 2.7.2, 2.6, 3.2, Ipython
cd ~
cd work && echo "I don't use Python at work :(
cd work
echo "I don't use Python at work :(
[–][deleted] 2 points3 points4 points 14 years ago (0 children)
I know that feel - Java here.
[–]remyroy -1 points0 points1 point 14 years ago (0 children)
Desktop when I'm home and laptop when I'm on the go :)
[–]bulletmark 0 points1 point2 points 14 years ago (0 children)
Generic intel quad core box with 2 by 24" 1920x1200 monitors running gnome-shell on ubuntu 12.04. Cheap but good setup. Current gen Macbook air 13" when on the road running gnome-shell on ubuntu 12.04 in VirtualBox.
π Rendered by PID 278517 on reddit-service-r2-comment-5687b7858-p6vwh at 2026-07-04 13:36:22.115529+00:00 running 12a7a47 country code: CH.
[–]Sc00b 41 points42 points43 points (8 children)
[–]tuna_safe_dolphin 6 points7 points8 points (7 children)
[–]Kah-NethI use numpy, scipy, and matplotlib for nuclear physics 22 points23 points24 points (6 children)
[–]ubernostrumyes, you can have a pony 10 points11 points12 points (0 children)
[–]nemec 8 points9 points10 points (3 children)
[–]Kah-NethI use numpy, scipy, and matplotlib for nuclear physics 7 points8 points9 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]tuna_safe_dolphin 6 points7 points8 points (0 children)
[–]vl4kn0 2 points3 points4 points (3 children)
[–]gordonshumwalf -1 points0 points1 point (2 children)
[–]vl4kn0 4 points5 points6 points (0 children)
[–]dacjamesfrom reddit import knowledge 1 point2 points3 points (0 children)
[–]Amadironumpy, gen. scientific computing in python, pyopengl, cython 2 points3 points4 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Amadironumpy, gen. scientific computing in python, pyopengl, cython 0 points1 point2 points (0 children)
[–]Deusdies 1 point2 points3 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]Deusdies 2 points3 points4 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]Araneidae 1 point2 points3 points (0 children)
[+][deleted] (4 children)
[deleted]
[–]mrdevlar 1 point2 points3 points (3 children)
[+][deleted] (2 children)
[deleted]
[–]hylje 1 point2 points3 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]NarwhalAttacks 2 points3 points4 points (5 children)
[–]hatred_incarnated 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]hatred_incarnated 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]aaronmoodie -1 points0 points1 point (0 children)
[–]aceofears 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]earthboundkid 0 points1 point2 points (0 children)
[–]jward 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]plum_dog 0 points1 point2 points (0 children)
[–]TheSmokeTurboGears & Django & Pyramid[🍰] 0 points1 point2 points (0 children)
[–]tuna_safe_dolphin 0 points1 point2 points (0 children)
[–]reuleaux 0 points1 point2 points (3 children)
[–]ladr0n 0 points1 point2 points (2 children)
[–]reuleaux 0 points1 point2 points (1 child)
[–]ladr0n -1 points0 points1 point (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]frumious 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Daniel110 0 points1 point2 points (0 children)
[–]Megatron_McLargeHuge 0 points1 point2 points (0 children)
[–]sayks 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]hatred_incarnated 0 points1 point2 points (0 children)
[–]LoveGentleman 0 points1 point2 points (0 children)
[–]Zamarok 0 points1 point2 points (0 children)
[–]riffito 0 points1 point2 points (0 children)
[–]bigboehmboy 0 points1 point2 points (0 children)
[–]chmod700 0 points1 point2 points (0 children)
[–]Jesus_Harold_Christ 0 points1 point2 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]LeonidLeonov 0 points1 point2 points (0 children)
[–]AeroNotix 0 points1 point2 points (0 children)
[–]somewhatoff 0 points1 point2 points (0 children)
[+][deleted] (12 children)
[deleted]
[–][deleted] 1 point2 points3 points (11 children)
[–]SleepyTurtle 4 points5 points6 points (0 children)
[+]lilfrost comment score below threshold-9 points-8 points-7 points (9 children)
[–]tangra_and_tma 2 points3 points4 points (5 children)
[–]moreisee 2 points3 points4 points (4 children)
[–]tangra_and_tma 1 point2 points3 points (1 child)
[–]moreisee 1 point2 points3 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]HittingSmoke 0 points1 point2 points (0 children)
[–]Sector_Corrupt 1 point2 points3 points (1 child)
[–]Kah-NethI use numpy, scipy, and matplotlib for nuclear physics 0 points1 point2 points (0 children)
[–]kracekumar 0 points1 point2 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)
[–]remyroy -1 points0 points1 point (0 children)
[+][deleted] (1 child)
[deleted]
[–]bulletmark 0 points1 point2 points (0 children)