我试图让SublimeREPL与Python一起工作。但是,无论何时使用键盘快捷方式向REPL发送Python命令,只会显示stdout
的输出。该命令的评估也应显示,但不是。下面是一个简洁的示例,在通过键盘快捷方式将命令发送到Python源代码的REPL之后,从REPL中的输出复制并粘贴。SublimeREPL中缺少评估Python
>>> print 'This will print out'
This will print out
>>> 'But this will not'
>>> 1+1
我不得不预期以下输出(从在Python BASH终端手动运行产生此):
>>> print 'This will print out'
This will print out
>>> 'But this will not'
'But this will not'
>>> 1+1
2
最后一点,手动打字命令直接进入崇高文本REPL产生所需的输出,但速度慢且不方便。
我正在使用SublimeText3在Ubuntu 13.10上运行默认的Python 2.7.5解释器。
可能dup/related http://stackoverflow.com/questions/23115066/display-output-from-evaluating-selection-sublime-text-python-repl – CRABOLO