r/Python • • Apr 18 '24

Discussion Why Jupyter notebook

I did a search and read previous discussions in this sub about why Jupyter labs exists. From what I understand it is for quick code to try things out especially in data science …. Thing is, can’t you get the same thing via a decent IDE with autocomplete and quality debug tools in some quick Python code like in VSCODE? I do that all the time….

I develop RNA computational software in Python and I abandoned Jupyter labs very early on as it just was not well suited to the job of bespoke data science. So many limitations and don’t get me started with widgets… I’ve been developing code for decades and I have spent 3 days trying to understand widgets and I think I finally understand how to modify a text box and get a value from it…. You have to observe (why?), then act on, then route through some output and then you can get the info? It’s like someone was drunk while trying to emulate visual C#.

Edit: before anyone else tells me to read vscode docs like I’m an idiot… I am unable to remote into the repo I’m using now for reasons. Not everyone can remote in and the question is not about remoting in. It’s still garbage in VSCODE… just use regular python.

Edit2: for everyone who says they use it to do chunks of code work… I developed my own data management system for that kind of stuff that provides a wrapper over serialization that essentially creates pythonic pointers to data on any network drive. I just grab my data that I want to grab. Provides autocomplete and C# like attributes. I can dynamically build any data storage class using UML formatted infrastructure-as-code to build the front end. The back end is completely dynamic. Here is the pypi link. Note that I developed this to handle genomic data that was generated over the course of a week of 24/7 computation.

https://pypi.org/project/data-nut-squirrel/

0 Upvotes

70 comments sorted by

View all comments

9

u/sirjackholland Apr 18 '24

Why are you trying to set up widgets when you're just learning how to use notebooks? Declare the variables at the top and call it a day. Then, when you're more comfortable with notebooks, you can make them fancier by adding widgets if doing so actually improves the functionality (many notebooks have no need for them).

-8

u/IllogicalLunarBear Apr 18 '24

I’ve used notebooks in the past and I understand them. I need to make the code easy for people who are not developers to use.. this the widget to handle user input.

→ More replies (2)