Sha256: cf1bcd9537380a9c44326a8e64fad7a860159af26c082ae9592bf4b8ff10b647
Contents?: true
Size: 390 Bytes
Versions: 2
Compression:
Stored size: 390 Bytes
Contents
module JupyterOnRails module IRubyKernelExtention class << self attr_accessor :root end def run original = Dir.pwd root = IRubyKernelExtention.root Dir.chdir root app_file = File.expand_path('config/environment.rb', root) require app_file Rails.application.require_environment! Dir.chdir original super end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jupyter_on_rails-0.6.0 | lib/jupyter_on_rails/iruby_kernel_extention.rb |
jupyter_on_rails-0.5.6 | lib/jupyter_on_rails/iruby_kernel_extention.rb |