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

2

u/linuxqq Jul 12 '20

It's my opinion that if you are learning Python with the goal of getting a job where you write code, the "right way" to learn is through running scripts on the command line. I'm not a fan of notebooks unless you're purely doing data analysis work.

1

u/[deleted] Jul 12 '20

I am.

I also think for students struggling with learning on "traditional" IDEs, Jupyter notebooks is a total game changer. It gives instant feedback and you can write a few lines at a time. Constant and specific feedback is the perfect way to learn any skill, and this tool gives it by design. Writing a bunch of code in an IDE only for it to not run is a non starter for an absolute beginner. Jupyter is an ideal tool for non-technical students interested in getting started.

1

u/linuxqq Jul 12 '20

I hear you. I acknowledge that I am biased because I taught myself Python exactly how I described it, by running scripts via the command line. If you do that you get the dual benefit of learning Python (you do get the immediate feedback when you do it this way) and also get comfortable with a more standard development environment. To learn Python in notebooks and then get on the job day 1 with expectations that you can set up your machine for development and start writing production code would be a nightmare. It is definitely a bit more of a learning curve at the start but I think you learn important things along the way.

2

u/[deleted] Jul 12 '20

For programming enthusiasts or office workers trying to automate the boring parts of their job, Jupyter is a great place to start. You can export your code to a .py file no problem, and for many users there's no real reason to "upgrade" to a more traditional IDE. For an aspiring developer, learning exclusively on Jupyter notebooks would be like showing up to Isle of Mann with a bicycle. I wouldn't dream of recommending learning on Juptyer notebooks for a CS student hoping to land a dev job, but Python has a much bigger community than that. I think for lots of non-technical users that have struggled with other tutorials and workflows, this is the sort of tool that can make all the difference.