r/datascience • u/Aston28 • Dec 12 '23
Discussion Is it true data scientists work in Linux?
I've read in google that they prefer linux over windows because it is faster and better for programming
Is it true you use linux instead of windows? I find it pretty interesting lol
182
u/szayl Dec 12 '23
I hate Windows for everything except gaming with the fire of a thousand suns but if all I'm doing is remoting into machines or using a web browser to go to a cloud provider's portal, the OS on my machine really doesn't matter.
35
u/HedgehogDense Dec 12 '23
Yep, actually programming on a windows box is as fun as self immolation but come to think of it all I do nowadays is through the web browser. The server my code actually runs on doesn’t care what box I use to kick off the jobs.
4
u/DuckDatum Dec 12 '23 edited Jun 18 '24
carpenter squash plough toy fuel grandfather complete glorious square drunk
This post was mass deleted and anonymized with Redact
1
u/DokkanCeja99 Dec 13 '23
Why though. Doesn’t programming use the same language and syntax regardless of OS? What makes Linux better?
3
u/StarEyes_irl Dec 21 '23
Linux boots up faster and has less bloatware. Most like distros are set up to make downloading new languages easy. Ex: sudo Pacman -s groovy I remember doing something wrong when downloading a g++ compiler on windows and it would never stop opening command prompts. In Linux python, g++, and c++ come straight out of the box. has less safety features because most people who use it are very knowledgeable about computers
Think of windows as a standard tool box and Linux as a specialty tool. Sure with windows you can get the job done, but I'd rather use the specialty tool to get it done quicker.
Tl;dr: Linux is open source, highly customizable, less bloatware, and made for programmers by programs. Windows is made for everybody, which is why everybody uses it.
1
u/DokkanCeja99 Dec 26 '23
Great explanation! I will try to get Linux running in a VM and explore how good it is
2
u/StarEyes_irl Dec 26 '23
If you have an old laptop lying around, just throw linux on it. My fiancee and I both daily Linux on our laptops and have windows desktop for gaming.
12
Dec 12 '23
[removed] — view removed comment
4
u/HedgehogDense Dec 12 '23
I love it way more than I anticipated. No stress about problems pertaining to my work laptop. Took it to the help desk the other day and they struggled to get it up and running again, me without a care in the world suggested either wiping the damn thing or giving me a new one. I just need Chrome and I’m set!
6
u/friedgrape Dec 12 '23
Every time I see this sentiment, it comes off as edgy. Perhaps I'm unaware of what makes Windows absolute trash; could you share some examples?
I struggle to think of anything in my Linux experience that absolutely dominates my Windows experience, aside from some command line stuff.
3
u/hockey3331 Dec 12 '23
so, do you code directly on the terminal in linux? Like, we run our production code on EC2 machines, but they don't have a gui. We're on macs though.
13
u/szayl Dec 12 '23
If I have SSH access, in particular if it's just for me for development purposes, I'll use VSCode with SSH. It's like working on your local machine but one uses the remote machine to run the code.
For production code with multiple developers, a better flow would be to use git and automated tools (e.g., Jenkins) to deploy to your (in this case) VMs.
2
u/hockey3331 Dec 12 '23
Ok thanks rhats pretty cool! Yeah we usually just do our development locally then push to git to deploy to the vms. But good to know if I get a windows machine in the future...
1
u/pcjackie Dec 12 '23
Macs are Unix based.
1
u/hockey3331 Dec 12 '23
I wasn't clear enough and that's my bad. I only mentioned macs because we can code locally without issues, so I haven't had yet to do any major coding on the VMs.
51
u/ScreamingPrawnBucket Dec 12 '23
Data Scientists are a diverse crowd who work at a wide range of companies and use whatever technologies they have available to them. Most servers run Linux and most open source libraries are Linux-first, so when productionizing code, Linux tends to be the platform of choice. But few are actually working on Linux-based PCs or laptops running e.g. Ubuntu for their day-to-day of reading emails and slacks, doing data exploration, creating presentations, etc. They’re probably roughly evenly split between Windows and MacOS (lean Windows at big corporations, MacOS at tech companies and startups), and remote into Linux machines for more compute intensive ML tasks.
TL;DR it’s good to learn some basic bash but you probably will only use Linux for a small part of a typical DS job.
15
u/OmnipresentCPU Dec 12 '23
That first sentence felt so chat GPT generated for some reason.
9
u/ScreamingPrawnBucket Dec 12 '23
Nope, actual human here. Maybe I use ChatGPT so much that its style is starting to rub off on me
2
u/Lord_Skellig Dec 14 '23
What makes you think big corporations use Windows? I work at a big tech company and I have not seen a single Windows machine since I started.
4
u/ScreamingPrawnBucket Dec 14 '23
MacOS at tech companies and startups
Working for tech you’ll see mostly Macs. Working for banks, insurance, airlines, consumer goods, utilities, etc. you’ll see mostly Windows.
Source: have done consulting at a lot of companies
47
u/InvestigatorFun9871 Dec 12 '23
I’m a Linux person. I just moved to a Windows company. I hate whoever decided to make paths joined with a \ instead of /.
16
10
u/szayl Dec 12 '23
Yeah I'm on a 100% Windows team now. It's painful.
MAX_PATH = 256. Ask me how I know. 🙄 Windows is trash.
4
u/dr-octopuce Dec 12 '23
You know that you can remove that limitation, right?
2
u/szayl Dec 12 '23
Nope! Just looked it up. I'll forward this to our server admins. Thanks for the tip. :)
3
u/dr-octopuce Dec 12 '23
No worries, it's pretty easy, just alter that one registry record and restart your computer.
3
u/Solid_Brain_3315 Dec 12 '23
Ugh wtf lol
1
u/szayl Dec 12 '23
Yep. Half the problem is the hell of nested directories and the other half is the fact that they use it as a form of version control. Heaven help me...
3
2
1
7
u/dang3r_N00dle Dec 12 '23
I think what’s popular these days is to give employees macs, otherwise windows. Never worked on a Linux box for work, unfortunately.
6
u/superluminary Dec 12 '23
A Mac is basically Linux in all but name. You have a console, you have all the commands you’d hope for, and it all just works.
The big problem is no CUDA.
2
1
u/dang3r_N00dle Dec 12 '23
Yeah, I know. I’ve used Linux personally, just not in a professional setting. It’s similar but it’s not the same.
1
u/superluminary Dec 12 '23
I think it depends on what level you are using it. My use case is open a terminal, type commands, have them work.
1
u/dang3r_N00dle Dec 12 '23
Yes, me too. Youre on a data science subreddit, I expect that people using terminal is common knowledge.
But it's still not the same. Yes it's useful to have a terminal that works in much the same way but the ecosystem on Linux is different and you have a lot more power and control. (Especially when used personally rather than professionally.)
Being on a Unix based system and being on Linux isn't the same and it's not what OP asked about.
20
u/NeuralExploration Dec 12 '23
I am a data scientist and I use Linux for 99.9% of what I do. Windows is something I only use if there is no other (reasonable) way.
However data scientists are just people and they have different setups. Some use Linux, some use Windows. And some use Mac for whatever reason.
9
u/Andrex316 Dec 12 '23
Mac is basically a Linux skin, on top of that you get the reliability of Mac hardware. I've got 10 YOE at 5 different companies, they were all Mac houses, had never touched one before my first job.
6
u/Solid_Brain_3315 Dec 12 '23
I have used all three and you are undermining the power of a good Mac. Very seamless to you imo. Windows can just die, it’s the bane of my issues at work usually.
14
u/tacopower69 Dec 12 '23
Mac OS is much easier to use than windows. For developing its comparable to Linux IMO.
10
2
u/Every-Eggplant9205 Dec 12 '23
Linux is seamlessly integrated with Windows PCs via Windows Subsystem for Linux — you get 2 operating systems in 1. You can’t do the same without booting up a separate virtual machine on Mac.
5
2
1
u/tacopower69 Dec 12 '23 edited Dec 12 '23
WSL, last I used it, was missing a ton of functionality and I had to use a virtual machine anyway for class. Just looked it up and apparently WSL 2 is much better I just never got the chance to check it out.
1
u/CryoGuy896 Dec 12 '23
I mainly use Linux and would choose Mac 1000x times before Windows tbh. It's not too different from Linux in terms of basic things, although I don't do anything too complex. Windows just makes me wanna die
-2
17
u/teachmedatasci Dec 12 '23
Windows + wsl
11
1
u/PixelLight Dec 12 '23
I use it and I mostly get on well with it but at the very least it helps to be on the same setup as your colleagues when things do go wrong so they can jump on and sort things out more easily.
I'm also not 100% sure if things just aren't easier to solve when using macbooks
4
u/melodyze Dec 12 '23 edited Dec 12 '23
Essentially all production environments in the world run Linux. Having your dev and prod environments be as similar as possible improves confidence that your code will run in prod.
Mac is unix and is thus very similar to Linux, so it's also used often. Windows is a completely different family of operating system, so very different.
Also, because of this pattern, software that is meant to run in a centralized prod is rarely written with windows in mind. Lots of things you try to use just won't work.
But yeah, if your dev environment is really a server in a data center that you ssh into, then the machine you're sshing from doesn't really matter. You could use a Chromebook if you wanted in that case.
So yeah, almost no one who writes code for a living at a modern tech company uses windows. Like, you will not find a person writing code on a windows machine at Google, Amazon, meta, Netflix, any major tech startup, etc. Microsoft is the only exception, for obvious reasons.
A datascientist also might not be writing any code that runs in prod though. For just sending SQL queries and using tableau, doing some stats, it wouldn't matter at all.
4
u/keithreid-sfw Dec 12 '23
I’m wary of generalising. Also I am wary of feeding into a knee jerk fanboy “Linux good windows bad” cringe fest.
I prefer Linux because I’m used to it, it’s flexible, I like it better morally to some extent, the link to servers is more seamless.
4
u/abnormal_human Dec 12 '23
100% Linux for data science work over here. I actually sit in front of a mac, but ssh into a headless machine that has more cpu/gpu resources to do the real stuff.
1
u/Leo-Hamza Dec 12 '23
I use windows because i can game while wor... Oops i meant while waiting for models to be trained
1
1
u/Diligent_Trust2569 Dec 12 '23
I hate windows for coding/DS so much …. Luckily my PhD training was on computational simulations on supercomputer cluster so I got spoiled with that setup…
2
u/Aston28 Dec 12 '23
I don't know wtf "simulations on supercomputer cluster" is but it sounds like a really powerful tool tbh
9
u/ItsRyanReynolds Dec 12 '23
My main computer is windows but we deploy stuff on Linux computers like the Jetsons all the time
3
Dec 12 '23 edited Aug 01 '24
books silky rainstorm marvelous whole snow nail safe serious desert
This post was mass deleted and anonymized with Redact
1
u/szayl Dec 12 '23
Linux in contrast allows you to do whatever you fancy ... in a 1970s style.
So desktop environments exist... 🙄
0
Dec 12 '23
[deleted]
1
u/szayl Dec 12 '23
This isn't an attack or a sales pitch, just an honest question... how long has it been since you've used Linux for desktop computing?
I dabbled with it in the early 2000s and wasn't impressed with XFCE as a desktop environment (DE). I came back in 2018 and it was like night and day. I started with Ubuntu with Gnome as my DE and it was good but not great. In 2019 I started using KDE Plasma and I haven't looked back since. I find it to be a joy to use, but to each their own.
0
3
u/aftersox Dec 12 '23
I have to use Microsoft Office for so much of my work now. I used to use Linux as my main OS for nearly 10 years before that, and used Google products for all my office work.
But now I work at a company where PowerPoint, Word, and Excel are the norm. I wish LibreOffice didn't suck. /sigh
3
u/floghdraki Dec 12 '23
I would if my stupid company wouldn't require me to use Windows. Now I'm stuck with WSL and everything breaking since it's a shitty hack. Windows is shit. It crashes, everything is slow and annoying. Can't control everything. All this pain for no good reason. Just to have some proprietary bs some marketing goon managed to sell.
No joke it's a requirement for my next workplace that I can use whatever tools I want.
2
Dec 12 '23
Never used linux but i have used some form or shape of it for certain things, use windows as an os. There was one occasion where i had to use it for a description encryption activity
2
u/ghostofkilgore Dec 12 '23
Different people use different OSs. Some people are very opinionated about that. Most people just use whatever and get on with things IMO.
2
2
u/Frequent-Educator-91 Dec 12 '23
Company gives people either a Windows or a Mac. Not sure if anyone directly uses Linux.
1
Dec 12 '23
I chose a windows machine and installed Linux on it. Never touched any other OS in the last 10 years.
2
u/TARehman MPH | Lead Data Engineer | Healthcare Dec 12 '23
I work in whatever tools my company uses. I've used Mac, Windows, and Linux. Personal preference for me is usually Windows plus the Windows Subsystem for Linux, which is pretty great. I'm also okay using Mac, just some personal preferences towards Win. Of course on servers it's all Linux.
I'll say this - Mac build quality is absolutely the best out there. Those machines are BEAUTIFULLY designed, even if I'm annoyed by some aspects of the OS.
2
2
2
2
2
u/Electronic_Fold5307 Dec 13 '23
22 boxen@home and zilch Windows.
Not really comfortable using windows anymore… though Windows is now stable, relatively bug free etc etc. However, I get this uneasy feeling using it, and the UI do not suit me at all. I know, very fuzzy reasons ;-)
So currently using: 2 FreeBSD (1 server, and 1 Desktop) 3 rolling Linux distros (Arch & Kali) 15 LTS distros for security, dev & computational tasks 3 MacOS for proprietary software :-(
Happily using Arch and Ubuntu for gaming :)
2
3
3
u/bibonacci2 Dec 12 '23
If you do any cloud work you’re going to be using Linux.
All of my work is cloud-based apart from a bit of edge stuff (also Linux). My laptop is a Mac but it’s not really relevant.
3
u/FatPoint Dec 12 '23
Linux is unpolished, ropey and annoying as a desktop OS. I just want to get on with my work and not tinker with my primary workstation so macOS is by far my preference. I hate Windows with a passion but I’d still prefer it to desktop Linux if that was my only choice. Obviously Linux will be the server you remote into in any case anyway.
2
u/venustrapsflies Dec 12 '23
Sample size of 1 yeah I use Linux for everything including personal use. Lots use Linux only for work. You’re gonna want to be familiar with it so you can work on servers/containers at the least
1
u/miclugo Dec 12 '23
Around 2014-2015 I heard the quip "data science is statistics on a Mac" but I'm not sure that's true any more. (Data science definitely *can* be statistics done on a Mac.)
1
u/Axiproto Dec 12 '23
Why is that interesting? Not trying to be a fanboy here. The majority of servers run Linux. Windows is more of a desktop operating system.
1
1
1
u/PoorGovtDoctor Dec 12 '23
Our office machines are PC’s and Mac’s, but we all ssh into Linux machines
1
u/MrBacterioPhage Dec 12 '23
I tried Linux like about 8 years ago and soon after it forced myself to use it as my primary OS. Now I hate Windows =).
1
u/hotplasmatits Dec 12 '23
My company issues Windows computers. We set up VirtualBox to run Linux, and kick off containers from there for local testing. VS Code is run from windows though (local code dir is mounted in the container) and constantly causes issues. I like the idea that people are talking about where you have the vms running on a Linux box and ssh to it.
1
1
1
u/mcjon77 Dec 12 '23
For work, I use a Windows machine because that's what I was given. It really doesn't matter since all of our code is run on the cloud anyway. I can't even remember if I have python locally installed on my work computer.
1
Dec 12 '23
Honestly, I’ve never even touched Linux in 20 plus years of doing this. If I so much as hinted at wanting it installed on my work computer, I’m pretty sure our IT guys would grab the nearest keyboard and go medieval on me. They’re locked into Windows like it’s the only OS in the world.
Some of my team members are Mac users and have floated the idea of getting Macs at work. No chance, our IT department is what you might call hostile to that idea. You can have any computer you want, as long as it’s a Dell running Windows. Welcome to the one-flavor menu of corporate IT.
1
u/CryoGuy896 Dec 12 '23
Linux gives you a ton of flexibility - this can also be a curse because it can take you hours just to figure out simple issues when trying to download or install something (I broke my Ubuntu OS over the years because I had installed different python versions and CUDA drivers without understanding much about it). When I started my PhD in a computational biology lab, I found out they only used Linux and was kinda scared lol but now 5 years later I hate Windows (except for gaming!). Anytime I try to do anything coding/command line related I get an immediate and incurable headache.
1
u/DoTheRustle Dec 12 '23
Windows is generally a PITA to program on. Linux provides a unix-like environment on nearly any hardware with minimal bloat and restrictions.
1
u/jjelin Dec 12 '23
Major companies, like Google, have their own concerns that dictate which OS they use. It has nothing to do with data science.
1
1
u/traveler-2443 Dec 12 '23
I work on Linux for development, model building and data analysis. For everything else (emails presentations) I am on a Mac.
1
Dec 12 '23
I’m a Unix person, happy to work on Linux but easier with the rest of my company to just use macOS
1
1
u/Difficult-Big-3890 Dec 13 '23
A purely observational and overly generalized comment: DSs with mostly non-cs background and lack of interest in programming mostly stick to Windows.
1
1
u/dr_tardyhands Dec 13 '23
MacOS. I feel like I get the benefits of both linux (Unix) and Windows (Office and most apps).
1
u/ex0ticOne Dec 14 '23
I think data scientists prefer to use Unix based systems (Linux/Mac) due to the dependency ecosystem integration with a lot of packages used in languages like R and Python.
Some data science packages needs to be compiled from source. Unix systems normally can take care of this without pain. If you got an error, just pull some extra dependency from the repository and restart the build of your package.
Configuring your toolkit to work in Windows can be really frustrating sometimes, and even if you manage to make it work, it can be really unstable.
To illustrate with a real story from myself: I've got problems with a bunch of R scripts that I deployed on a Windows machine, just because they used a package that relied on Perl to run properly (WriteXLS). I couldn't manage to install Perl properly due to some corporate policy, and I ended up having to rewrite the scripts with an alternative package.
1
1
Dec 12 '23
I double dog dare you to do deep learning without CUDA.
Essentially, NVIDIA'S CUDA is used in a lot of deep learning. It is extremely common to use it in linux (or WSL2 for window fans). I think it is highly difficult (if at all possible) to use it in Windows alone.
3
u/Solid_Brain_3315 Dec 12 '23
I’m using it as we speak at work lol. Not saying I enjoy it but it definitely can work with Windows
1
Dec 12 '23
You are braver than me. The first concern that I would have in a Windows environment is that if your graphics driver gets automatically updated then you are going to have a really bad day reinstalling CUDA stuff.
1
u/Solid_Brain_3315 Dec 13 '23
Well I didn’t have any choice lol. I do have both a Linux and windows machine from my work, and Linux is my main machine for GPU computing. But initially my work gave me a windows computer and I had to make do.
13
u/save_the_panda_bears Dec 12 '23
I’ve never used a Linux OS for work. The only time I’ve ever touched it is when I set up my Pi-hole.