r/learnpython • • Jul 12 '20

Jupyter Notebooks!

Jupyter Notebooks are the tool that turned the tables for me learning python. I'm just here to evangelize them. You can run your code line by line and debug as you go in a comfortable web browser interface. It's an excellent tool, and it made it so much more efficient to learn. Check it out.

425 Upvotes

127 comments sorted by

View all comments

27

u/[deleted] Jul 12 '20

Agree to disagree. Beginners have enough pitfalls to avoid without having to mentally grapple with the concept of hidden state. They're great once you're past that beginner stage, though.

24

u/Lewri Jul 12 '20

I don't think that is a particularly difficult concept to pick up, and even the less computer minded in my class knew to restart the kernel if they were having any issues or unexpected results.

I personally found learning with them much better, though learning specifically for use in physics probably was a big factor in that.

3

u/05e981ae Jul 12 '20

Just remember to make sure the script can be run sequentially, there are too many notebook where you have to run cell in specific order.

3

u/[deleted] Jul 12 '20

In the classes I took, even the slowest students didn't mentally grapple with the concept. Sure, they couldn't explain it, but they could get their notebooks to work.

It's running your 100 lines of code and trying to figure out the errors that's the real struggle for beginners. Jupyter by design nudges new programmers to take it line by line and debug as they go. Those are some spectacularly good habits for any programmer, and they also get feedback about why their code isn't working much more quickly and clearly than they would if they were just running python scripts normally. That's invaluable to students.