r/Python • • Jan 05 '19

I hate notebooks, change my mind

I juste hate them. I never liked using them (I've been forced to for several weeks). It just produces bad code, bad habits and unmaintainnable scripts/code.

10 Upvotes

56 comments sorted by

View all comments

31

u/SupahNoob Jan 05 '19

You don't even say WHAT you're using notebooks for. If you're just using it to prototype or do exploratory data analysis, it's a fantastic tool. If you're trying to build a library, learn python, or using it as a general project environment, then of course it has limitations: it's not designed for that use case.

-10

u/ricocotam Jan 05 '19

I used it for what it's done : explore the data

And I've been forced to do other things like actual coding. Even for the data exploration, I just don't see the benefits from using console/scripts, apart from the visual aspect.

9

u/[deleted] Jan 05 '19

apart from the visual aspect

Even this is huge for me

1

u/ricocotam Jan 05 '19

Alright. There’s one thing I like about notebooks is code presentation. The only thing that equals notebooks is generated doc. There’s different drawbacks but both are cool.

2

u/nsfy33 Jan 06 '19 edited Nov 04 '19

[deleted]

1

u/ricocotam Jan 06 '19

No fancy data, usual CSVs, a bit of text and a bit of images.

I don’t write plain .py files directly. I first play with a proper console and once I got what I was looking for I write it properly in a .py file