def pymodule(line, cell=None):
  """Creates and subsequently auto-imports a python module.
  """
  parser = _commands.CommandParser.create('pymodule')
  parser.add_argument('-n', '--name',
                      help='the name of the python module to create and import')
  parser.set_defaults(func=_pymodule_cell)
  return _utils.handle_magic_line(line, cell, parser)
def pymodule ( line , cell = None ) : parser = _commands . CommandParser . create ( 'pymodule' ) parser . add_argument ( '-n' , '--name' , help = 'the name of the python module to create and import' ) parser . set_defaults ( func = _pymodule_cell ) return _utils . handle_magic_line ( line , cell , parser )
Creates and subsequently auto-imports a python module.