DamnWidget / anaconda

Anaconda turns your Sublime Text 3 in a full featured Python development IDE including autocompletion, code linting, IDE features, autopep8 formating, McCabe complexity checker Vagrant and Docker support for Sublime Text 3 using Jedi, PyFlakes, pep8, MyPy, PyLint, pep257 and McCabe that will never freeze your Sublime Text 3
http://damnwidget.github.io/anaconda/
GNU General Public License v3.0
2.21k stars 260 forks source link

Feature Inquiry: send to (i)python terminal #453

Open danfrankj opened 8 years ago

danfrankj commented 8 years ago

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?

DamnWidget commented 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)

j9ac9k commented 8 years ago

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.

danfrankj commented 8 years ago

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.

image

DamnWidget commented 8 years ago

Did anyone tried out this package? https://github.com/spywhere/Terminality

JonathanShor commented 7 years ago

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.