Class: JupyterOnRails::Kernel

Inherits:
Object
  • Object
show all
Defined in:
lib/jupyter_on_rails/kernel.rb

Instance Method Summary collapse

Constructor Details

#initialize(sandbox: false) ⇒ Kernel

Returns a new instance of Kernel.



5
6
7
8
# File 'lib/jupyter_on_rails/kernel.rb', line 5

def initialize(sandbox: false)
  @root = ENV.fetch('RAILS_ROOT')
  @sandbox = sandbox
end

Instance Method Details

#bootObject



10
11
12
13
# File 'lib/jupyter_on_rails/kernel.rb', line 10

def boot
  boot_rails
  load_extensions
end