Class: Python3MetadataHook

Inherits:
BasePythonMetadataHook show all
Defined in:
lib/python3/metadata_hook.rb

Constant Summary collapse

XCE_INSTRUCTIONS =
{
  'Colab': {
    'en': read_xce_file('colab/en/README.md'),
    'pt': read_xce_file('colab/pt/README.md'),
    'es': read_xce_file('colab/es-ar/README.md'),
    'es-ar': read_xce_file('colab/es-ar/README.md')
  },
  'Visual Studio Code': {
    'en': read_xce_file('visual_studio/en/README.md'),
    'pt': read_xce_file('visual_studio/pt/README.md'),
    'es': read_xce_file('visual_studio/es-ar/README.md'),
    'es-ar': read_xce_file('visual_studio/es-ar/README.md')
  }
}

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BasePythonMetadataHook

#metadata

Class Method Details

.read_xce_file(path) ⇒ Object



2
3
4
# File 'lib/python3/metadata_hook.rb', line 2

def self.read_xce_file(path)
  File.read(File.expand_path "../../../xce/#{path}", __FILE__)
end

Instance Method Details

#external_editor_instructionsObject



33
34
35
# File 'lib/python3/metadata_hook.rb', line 33

def external_editor_instructions
  XCE_INSTRUCTIONS
end

#librariesObject



25
26
27
28
29
30
31
# File 'lib/python3/metadata_hook.rb', line 25

def libraries
  {
    pandas: '1.3.3',
    matplotlib: '3.5.3',
    seaborn: '0.12.0'
  }
end

#versionObject



21
22
23
# File 'lib/python3/metadata_hook.rb', line 21

def version
  '3.7.3'
end