Class: LearnOpen::Lessons::JupyterLesson
- Inherits:
-
BaseLesson
- Object
- BaseLesson
- LearnOpen::Lessons::JupyterLesson
- Defined in:
- lib/learn_open/lessons/jupyter_lesson.rb
Instance Attribute Summary
Attributes inherited from BaseLesson
#dot_learn, #environment_vars, #git_server, #id, #io, #later_lesson, #location, #logger, #name, #options, #organization, #platform, #repo_path, #system_adapter, #use_student_fork
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from BaseLesson
#initialize, #lab?, #readme?, #to_path, #to_url
Constructor Details
This class inherits a constructor from LearnOpen::Lessons::BaseLesson
Class Method Details
.detect(lesson) ⇒ Object
4 5 6 7 |
# File 'lib/learn_open/lessons/jupyter_lesson.rb', line 4 def self.detect(lesson) dot_learn = Hash(lesson.dot_learn) !!dot_learn[:jupyter_notebook] end |
Instance Method Details
#open(environment, editor, clone_only) ⇒ Object
9 10 11 |
# File 'lib/learn_open/lessons/jupyter_lesson.rb', line 9 def open(environment, editor, clone_only) environment.open_jupyter_lab(self, location, editor, clone_only) end |