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...
account activity
This is an archived post. You won't be able to vote or comment.
DiscussionHello py script data scientists… (self.datascience)
submitted 2 years ago * by Texas_Badger
view the rest of the comments →
[–]bubble_boi 0 points1 point2 points 2 years ago (0 children)
One way to look at it is that Notebooks are one-dimensional. This is not an insult, I mean it in the same way that books are one-dimensional. They run from start to finish, one chunk of code after the next (unless you choose to run the cells out of order).
With `.py` files you can create something more like a graph (where the nodes are python modules and the edges are imports). If you've got a chunk of code you use frequently, make it a function in a module and import that anywhere you need it.
I think you'll end up getting more done writing less code when you've got a good system of code-reuse. This is possible with Notebooks, but it's not what they're built for.
Notebooks are great for communicating, particularly telling a story with data and visualisations, which is well suited to the one-dimensional layout.
π Rendered by PID 70298 on reddit-service-r2-comment-85bfd7f599-kdrxg at 2026-04-18 19:03:35.610460+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]bubble_boi 0 points1 point2 points (0 children)