Class: JupyterOnRails::Kernel
- Inherits:
-
Object
- Object
- JupyterOnRails::Kernel
- Defined in:
- lib/jupyter_on_rails/kernel.rb
Instance Method Summary collapse
- #boot ⇒ Object
-
#initialize(sandbox: false) ⇒ Kernel
constructor
A new instance of Kernel.
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
#boot ⇒ Object
10 11 12 13 |
# File 'lib/jupyter_on_rails/kernel.rb', line 10 def boot boot_rails load_extensions end |