These are chat archives for spyder-ide/public

1st
Feb 2018
colstat
@colstat
Feb 01 2018 03:57
In R, you can do line-by-line evaluation from editor using keyboard shortcut cmd+enter. Is there one in Spyder? I know you can highlight and eval, but is there a way to just eval without highlight?
CAM Gerlach
@CAM-Gerlach
Feb 01 2018 04:01
@colstat Yup, yes indeed. Out of the box its F7 or something, but I'm...not a big fan of the defaults. I typically set Cmd+Enter to be run line/selection, Cmd+Shift+Enter to run cell/chunk, Shift-Enter to run cell/chunk and advance, Alt-Enter to run file, etc. and harmonize Rstudio to the same.
Check out the Run menu for the full list, and you can change them in the keyboard shortcuts pane in preferences. One feature we're working on for a future Spyder release is built-in keyboard shortcut presets following common programs like Rstudio, and one thing I really want to implement when I get the time, now that I miss it so much after Rstudio implemented it, is the ability to run the full current statement, even if its a multi-line, without having to manually select it—currently, Spyder just runs the line your cursor is on regardless if it is a continuation or not, requiring you to manually select the whole statement to run it.
colstat
@colstat
Feb 01 2018 04:10
Wow, thanks for the long post. I actually tried to change keyboard setting, but that combo is taken, and I tried several others. Let me try again!
I don't see run line, I only see run selection. Here's a screenshot from my macbook. https://ibb.co/cv52Tm
colstat
@colstat
Feb 01 2018 04:17
Never mind, I got it. I think run selection is the one!
Yes, please keep up the good work. I've used yhat, ST 3, PyCharm, in the end I came back. A lot of R people are frustrated by Python editors. I think you will have a huge fan base!
colstat
@colstat
Feb 01 2018 04:23
Please also have an app icon. Currently, I can't set Spyder as default Python opener.
CAM Gerlach
@CAM-Gerlach
Feb 01 2018 06:25
@colstat Yeah, I'm an "R person" myself, and while there's certainly a lot of things I miss from R and Rstudio, particularly completion, introspection, help etc. that actually works reliably (it always shocks me for a bit when I go back to R/Rstudio that all that machinery actually works properly, and instantly), most of these are limitations of the language and the patchwork package system compared with R's much more seamless and "it just works" mentality, not really anything to do with Spyder. On the other hand, it has a few tricks up its sleeve that Rstudio only now is picking up on, and isn't too far behind in most others. The biggest advantage, IMO, is being based on an actual proper GUI toolkit, rather than the flimsy CSS nonsense underlying Rstudio (same as Rodeo, Jupyterlab and I think Yhat, if rather more polished).
In any case, it is clear that Spyder is certainly the closest thing to Rstudio on the Python side; Rodeo and Jupyterlab are actually closer in the basic UI/design language but Spyder is the closest match with regard to real functionality.
colstat
@colstat
Feb 01 2018 15:38
This is fantastic. I think your vision is exactly what a lot of people are hoping for: a REPL that's easy to use like RStudio. There is a huge R fan base right now that wants to use Python including myself. Can't wait for the next release!