Open danfrankj opened 8 years ago
That is not an easy thing to do as the line to work will need to inherit the context/scope from your script so it need to do imports etc etc. Do you know of any editor that implement that feature already? (and it works)
I don't know about a send current line to ipython terminal, but the Spyder editor offers an interactive terminal that the code you execute runs within (so that kernrl retains the context/scope/etc), which would be an awesome feature.
My workflow currently has a separate terminal open that I send text to through a hack in https://github.com/wch/SendText. It works but would be nice to have all that functionality consolidated. It looks like this where a shortcut (cmd+enter) sends lines / blocks to the terminal.
Did anyone tried out this package? https://github.com/spywhere/Terminality
This Sublime package is exactly what's being requested: https://github.com/randy3k/SendCode
Sends highlight text from Sublime to iPython with a hotkey, and I believe can also do the other direction.
Anaconda has been invaluable for turning Sublime into a python IDE but I've ended up using different hacks to be able to run lines, sections, files in a python terminal. @DamnWidget I'd be interested in creating a set of commands to "run current line in python terminal". Do you think that would naturally live in anaconda?