![]() The reason notebooks are useful for analysis (and why an IDE could be overkill) is that debugging can often be limited to printing out a variable. Some people have notebooks in production and there are projects not in production complex enough to warrant an IDE. People refer to "production code" as the litmus test, but I dont think that's true or useful. In my experience a full blown IDE becomes valuable when the number of functions/methods/variables that you have to define starts growing past a certain point. py files, no need to convert anything) to get the same workflow as jupyter notebooks but 100x betterĪttach your IDE to a remote machine through SSH or attach it to your windows subsystem or even a docker container so you can work on your laptop and have a huge monster of a machine actually do the work 100% seamlessly that you won't even realize it's not your own computerīasically the only reason to use jupyter notebooks in a browser instead of a proper IDE is because you don't know any better. Run python code on a jupyter server with code chunks (which is 100% python. Run jupyter notebooks within the IDE with a special debugger support You get integrated anything because there are SO MANY PLUGINS exe to your google drive and updates your project website and brew you a cup of coffee. Hit a button and it automatically builds you a python package and sends the. You can get an integrated build script, custom settings for each project etc. You can get an integrated terminal, you can run shell commands directly in your IDE You can get an integrated codestyle checked meaning it will underline your code because it's so ugly until you make it pretty You can get an integrated linter meaning it will underline mistakes without running your code But loses out in not being directectly connected to my local filesystem. Amazingly google colabs is better for editing imo. Or the myriad of other shortcuts that don't exist on jupyter notebook.īetter look and feel and customisability of your layout.Īnyway vscode isn't my favourite for notebookd. Or the shortcut for going back to last edit. My favorites is ctrl+d to select the name of the variable my caret is on, then repeatedly tapping it to select more instances of it. Also linting nudges you to write neater code.īetter key mapping for editing. Like syntax errors or unused variables or importing packages that you don't actually have installed. ![]() ![]() Linting - as in highlighting and underlining which tells you if there's things wrong with your code as you type. Don't waste time typing things while your brain is already 2 steps ahead Don't waste time scrolling up to remember what you called something. But here are the advantages of using an IDEĬode completion is much smoother. ![]() Honestly I feel lik no one's given you a straight answer (no offence people). Heck, a buddy of mine who still works there tells me this scripts stills runs daily and I've been out of there for almost a year. In a couple hours I had a script that always ran at 4 PM and did that, couldn't really do that with a notebook. What I did was simply make an SQL query to the server filtering all new requests, make that into a Pandas dataframe, reformat some of the columns to a more readable format, make this into an Excel file and e-mail it to them. My first job out of college was as a data analyst for a chemical analysis lab, since I was basically the only one who knew how to query their database, part of my job was generating a few reports for different teams, like getting all sample pickup requests made today and send that information to the logistics guys so they could work it out with the transport company who did pickups for us. If you make your code a Python script you can just run it from the terminal with a single button press, actualy, you can schedule it to run on it's own. Now imagine you have to do it daily or even a few times per day, do you really want to go into jupyter and rerun all the cells everytime? If you need to that only once, fine, open your notebook and do it. Let's imagine you need to take data from your company's database, run it through an ML model or even some basic data wrangling in Pandas, then output the results as an Excel file and send it to another team. As an example that should be close to you.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |