Are there any iPython-like shells for Ruby or Rail

2019-01-31 12:45发布

问题:

I love iPython and am learning RoR along with some libraries like Mechanize and I'd like to be able to easily see what I'm working with in terms of introspection. I would like to be able to type "." + TAB and see.

回答1:

There is an irb tool to help autocomplete

require 'irb/completion'


回答2:

You should definetively take a look at Pry (an IRB alternative and runtime developer console). It isn't as advanced as the current version of IPython, but it's the most advanced developer console we have in Ruby.



回答3:

try IRB http://en.wikipedia.org/wiki/Interactive_Ruby_Shell, or the rails console http://guides.rubyonrails.org/command_line.html. I don't know if either of them have autocomplete, but they are quality tools.



回答4:

There is an IPython notebook backed by Ruby kernel. Details about the project



回答5:

Wirble is a convenient, if infrequently-updated way of bringing together some of these tools. It's not quite as complete as iPython, but gets pretty close. Among other things, it pulls in irb/completion.

For rails, you can do the same, but use script/console from your rails' root directory to start irb.



回答6:

Just to add my two cents to revive this question. There is currently a RoR notebook being developed here RoR-Notebook. Though I'm unsure as to its maturity