Are there any iPython-like shells for Ruby or Rail

2019-01-31 12:25发布

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.

6条回答
走好不送
2楼-- · 2019-01-31 13:02

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.

查看更多
祖国的老花朵
3楼-- · 2019-01-31 13:03

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楼-- · 2019-01-31 13:05

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.

查看更多
Fickle 薄情
5楼-- · 2019-01-31 13:06

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

查看更多
Summer. ? 凉城
6楼-- · 2019-01-31 13:21

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

查看更多
爷、活的狠高调
7楼-- · 2019-01-31 13:23

There is an irb tool to help autocomplete

require 'irb/completion'
查看更多
登录 后发表回答