Passing around an object, for example, as opposed to using globals, which often introduce bugs and can be against many SE principles.
-
-
I used Python before Matlab (but w/o any guidance). Hated copy-pasting code into terminal, or running whole script to find stupid mistake
-
Well, now you've moved from scripts to classes.
-
And tbh I've found it more tedious to develop new functions (before adding them to the class) than when I had it w/o the class
-
You can always move back and make a branch. I mean that's what git excels at. I have to admit I don't see the issue but you could return.
-
Nah, I’m with Chris on this one. Reloading modules with classes in an interactive environment is one of Python’s (and Jupyter’s) weak points
-
If you only run complete scripts from a terminal you don’t hit this problem.
-
Oh, I'm with you here. I think we're taking past each other?
-
I didn't realise when Chris first asked given he linked to a github file that's a script that he was using a notebook. So I and others
- 2 more replies
New conversation -
-
-
I dunno, for data exploration I <3 notebooks. For me its one of the main advantaged to using a dynamically typed language.
-
*advantages
-
He's not doing exploration. I use notebooks for that too.
-
I'd still count this as exploring... I'm writing an API for a piece of hardware that I've never used before.
-
Not exploring data though.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.

