class LearnOpen::Environments::JupyterContainerEnvironment

Public Instance Methods

install_jupyter_dependencies(lesson, location) click to toggle source
# File lib/learn_open/environments/jupyter_container_environment.rb, line 22
def install_jupyter_dependencies(lesson, location)
  LearnOpen::DependencyInstallers::JupyterPipInstall.call(lesson, location, self, options)
end
managed?() click to toggle source
# File lib/learn_open/environments/jupyter_container_environment.rb, line 4
def managed?
  true
end
open_editor(lesson, location, editor) click to toggle source
# File lib/learn_open/environments/jupyter_container_environment.rb, line 16
def open_editor(lesson, location, editor)
  io.puts "Opening lesson..."
  system_adapter.change_context_directory(lesson.to_path)
  system_adapter.open_editor(editor, path: ".")
end
open_jupyter_lab(lesson, location, editor, clone_only) click to toggle source
# File lib/learn_open/environments/jupyter_container_environment.rb, line 8
def open_jupyter_lab(lesson, location, editor, clone_only)
  download_lesson(lesson, location)
  start_file_backup(lesson, location) if lesson.use_student_fork
  install_jupyter_dependencies(lesson, location)
  notify_of_completion
  open_shell unless clone_only
end