Method: Nyaplot.init_iruby

Defined in:
lib/nyaplot/core.rb

.init_irubyObject

Enable to show plots on IRuby notebook


40
41
42
43
# File 'lib/nyaplot/core.rb', line 40

def self.init_iruby
  js = self.generate_init_code
  IRuby.display(IRuby.javascript(js))
end