Sha256: 13de07a93ac770da887fca3b53f7a66b9b79a1a98401e36bd54d10880f340e0d

Contents?: true

Size: 390 Bytes

Versions: 14

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/application.rb', root)
      require app_file
      Rails.application.require_environment!
      Dir.chdir original
      super
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
jupyter_on_rails-0.5.5 lib/jupyter_on_rails/iruby_kernel_extention.rb
jupyter_on_rails-0.5.4 lib/jupyter_on_rails/iruby_kernel_extention.rb
jupyter_on_rails-0.5.3 lib/jupyter_on_rails/iruby_kernel_extention.rb
jupyter_on_rails-0.5.2 lib/jupyter_on_rails/iruby_kernel_extention.rb
jupyter_on_rails-0.5.1 lib/jupyter_on_rails/iruby_kernel_extention.rb
jupyter_on_rails-0.5.0 lib/jupyter_on_rails/iruby_kernel_extention.rb
jupyter_on_rails-0.4.2 lib/jupyter_on_rails/iruby_kernel_extention.rb
jupyter_on_rails-0.4.1 lib/jupyter_on_rails/iruby_kernel_extention.rb
jupyter_on_rails-0.4.0 lib/jupyter_on_rails/iruby_kernel_extention.rb
jupyter_on_rails-0.3.4 lib/jupyter_on_rails/iruby_kernel_extention.rb
jupyter_on_rails-0.3.3 lib/jupyter_on_rails/iruby_kernel_extention.rb
jupyter_on_rails-0.3.2 lib/jupyter_on_rails/iruby_kernel_extention.rb
jupyter_on_rails-0.3.1 lib/jupyter_on_rails/iruby_kernel_extention.rb
jupyter_on_rails-0.2.0 lib/jupyter_on_rails/iruby_kernel_extention.rb