#Python people. What IDE do you use, and how do you debug code? I'm used to interactive coding in R, where I just debug as... 1/ @o_guest
-
-
I run the code line by line. Now working with Python and functions, I find it difficult to figure out what is going on and to build,,, 2/
1 reply 1 retweet 0 likesShow this thread -
the code interactively, as I'm used to. I use Spyder with an ipython console and have tried pdb.set_trace, but it is very cumbersome... 3/3
3 replies 1 retweet 0 likesShow this thread -
Replying to @venpopov
@AtomEditor is pretty good. Although I don't advise you to bring over your bad habits from Matlab (sorry!).2 replies 0 retweets 1 like -
It sounds to me like you want to learn how to use a jupyter notebook. That might be what you need, perhaps?
1 reply 0 retweets 0 likes -
Replying to @o_guest @AtomEditor
Perhaps. I've used it on occasion, but found it difficult when I develop main code (model) in a script that I import in another 1/
1 reply 0 retweets 1 like -
experiment-specific script that uses the model import for analysis/simulation 2/2
1 reply 0 retweets 1 like
You might need to forget about scripts for many reasons.
Think about OO.
-
-
Replying to @o_guest @AtomEditor
Sure, I have my model as a class with class specific functions, etc, but its in an external script that I import as a module
0 replies 0 retweets 1 likeThanks. Twitter will use this to make your timeline better. UndoUndo
-
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.