5 ms·
by REPL here you mean jupyter notebook?
by slim 3y ago
by REPL here you mean jupyter notebook?
- bogeholm 3y agoREPL = Read-Eval-Print Loop. So could be iPython or just plain `python` in general, can’t say what OP is using of course
- paxcoder 3y ago[dead]
- hughesjj 3y agoNot OP but I often code in the REPL for python as well. Sometimes I'll stub out my code and just drop into an interactive debugger where I'm writing the next section. In the python debugger, if you type `interact`, it'll give you the normal python repl. This combined with the `help` and `dirs` are super useful for learning new frameworks/libraries and coding with your actual data.
- extr 3y agoGood idea to code in the debugger. Going to try that.
- Tokumei-no-hito 3y agoWhat interactive debugger IDE are you using that lets you enter “interact”?
- hughesjj 3y agopdb, the one shipped with python
- ploika 3y agoI also primarily write ML-focused Python. For me, having originally learned R and C at the same time, nothing has ever surpassed RStudio as a dev environment. For the past several years my preferred setup has been tmux and Vim with vim-slime in one pane and IPython in the other. (Personally, and speaking only for myself, I hate Jupyter notebooks with a burning passion. I think they are one of the worst things ever to have happened to software development, and definitely the worst thing ever to have happened to ML/data science.)
- proamdev123 3y agoWhy do you hate Jupyter notebooks so much that it reaches “worst thing to ever have happened“ status? Why do you love R Studio so much? (I’ve never used it, so no judgment)
- account-5 3y agoIf like to know too. I learned python in jupyter notebooks. It makes experimenting and incremental development much easier (IMO) provided you remember to account for the current state of the notebook, which sometimes has me pulling my hair out.
- mbreese 3y ago> provided you remember to account for the current state of the notebook Notebook style development is considered an anti pattern in most situations for this reason. It is too easy to execute out of order. Even the original parent of this thread said they recite the entire notebook every time to ensure they catch these issues. But, it’s not perfect and you can have leftover state this way too if you’re not careful. My guess is that this is the reason the GP here is so against them. I find them helpful for data exploration, but that’s it.
- account-5 3y agoYeah I can't argue against that, I've been stung way to many times with it. Never heard of the term "anti pattern" before but yeah I get it.
- ploika 3y agoI can't justify it - it's pure preference and opinion, irrationally held. A big part of it is probably that type of programming I generally need to do is closer to using an overgrown calculator (with DataFrames) than doing proper Software Development to build a thing. I much prefer having the code over _here_, and then having the results in a separate pane over _there_. Jupyter style mixing of inputs and outputs tends to confuse me, and in my hands gets very messy very quickly. The slides in this light hearted talk from JupyterCon in 2018 probably give a better explanation than I could. https://conferences.oreilly.com/jupyter/jup-ny/public/schedule/detail/68282.html https://conferences.oreilly.com/jupyter/jup-ny/public/schedu...
- extr 3y agoI usually use VS code and the "interactive" python functionality (not jupyter). I highlight code and execute just that code with a hotkey. Works just as well with any kind of vim-slime like functionality.