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

Show parent comments

3

u/Dewmeister14 Jul 12 '20

Honestly if your only prior experience is writing in Jupyter notebooks I recommend going right back to the beginning: install Python 3.whatever on your computer and NOTHING ELSE, write the code directly in text files that have the extension .py, and run them with "python3 your_code.py". (or whatever the command on your system is). Really strip away all the excess of an IDE so you're learning what Python is and nothing else.

3

u/[deleted] Jul 12 '20

I tried to do that at first and wanted to throw the computer across the room because of path directory nonsense when I was first trying to learn Python. Using Jupyter installed in a specific folder and installing any other programming stuff in the same folder is the only way I found to be able to get to doing any actual programming before getting extremely discouraged, in the beginning. You can't learn any Python if hello world won't run because the program wants it to be in a different directory and won't tell you in plain English what to do about it.

discovering tkinter filedialogs is the only way I've been able to keep up, as well

2

u/Dewmeister14 Jul 12 '20

Are you on Windows?

Changing windows' PATH variable is annoying but it's a one time operation and there are good tuts out there, just gotta find em.

I'm sorry it stopped you from learning and maybe for 'hello world' type learning Jupyter is a good tool to play with the language, but setting up the environment is really important if you want to tackle bigger projects. I started in Pycharm and then moved to Linux, writing in text editors and managing the env myself. I had a lot of stuff to unlearn and even though it would have been a slower start I wish I would have started outside an IDE.

1

u/[deleted] Jul 18 '20

no, mac

1

u/[deleted] Jul 18 '20

I just started this year, took the first half of the python course at community college but fell behind and dropped it; having reduced hours during the pandemic I've figured out a decent amount of stuff on my own and with tutorials. I think the reason it confuses me with path stuff is that I had only recently switched from Windows to Mac and had no idea what the terminal was (I think the path stuff is easier on windows myself). With jupyter notebook, I've written a program to automate the easier part of the job I do and am trying to work out an object model to automate the harder part. I'll eventually build an interface to make it work not in a jupyter notebook, but when I want to work on one problem I don't want my muse to go away while I'm trying to figure out something like the path.