Class: ErdMap::PyCallModules

Inherits:
Object
  • Object
show all
Defined in:
lib/erd_map/py_call_modules.rb

Instance Method Summary collapse

Constructor Details

#initializePyCallModules

Returns a new instance of PyCallModules.



7
8
9
10
11
12
13
# File 'lib/erd_map/py_call_modules.rb', line 7

def initialize
  @networkx = PyCall.import_module("networkx")
  @bokeh_io = PyCall.import_module("bokeh.io")
  @bokeh_models = PyCall.import_module("bokeh.models")
  @bokeh_plotting = PyCall.import_module("bokeh.plotting")
  @networkx_community = PyCall.import_module("networkx.algorithms.community")
end

Instance Method Details

#imported_modulesObject



15
16
17
18
19
20
21
22
23
# File 'lib/erd_map/py_call_modules.rb', line 15

def imported_modules
  {
    networkx: @networkx,
    bokeh_io: @bokeh_io,
    bokeh_models: @bokeh_models,
    bokeh_plotting: @bokeh_plotting,
    networkx_community: @networkx_community,
  }
end