Sha256: 74d0d19cde37ea3809b7edeb22fb8c862f9d6fc9ee3b9cf684f4ab27df3027e4
Contents?: true
Size: 931 Bytes
Versions: 1
Compression:
Stored size: 931 Bytes
Contents
module LearnOpen module Environments class JupyterContainerEnvironment < BaseEnvironment def managed? true end def open_jupyter_lab(lesson, location, editor) download_lesson(lesson, location) open_editor(lesson, location, editor) start_file_backup(lesson, location) install_jupyter_dependencies(lesson, location) notify_of_completion open_shell end 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 def install_jupyter_dependencies(lesson, location) LearnOpen::DependencyInstallers::JupyterPipInstall.call(lesson, location, self, options) end def open_shell system_adapter.open_login_shell(environment_vars['SHELL']) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
learn-open-1.2.22 | lib/learn_open/environments/jupyter_container_environment.rb |