MCPcopy Index your code
hub / github.com/ipython/ipython / _import_runner

Method _import_runner

IPython/core/interactiveshell.py:406–418  ·  view source on GitHub ↗
(self, proposal)

Source from the content-addressed store, hash-verified

404
405 @validate('loop_runner')
406 def _import_runner(self, proposal):
407 if isinstance(proposal.value, str):
408 if proposal.value in self.loop_runner_map:
409 runner, autoawait = self.loop_runner_map[proposal.value]
410 self.autoawait = autoawait
411 return runner
412 runner = import_item(proposal.value)
413 if not callable(runner):
414 raise ValueError('loop_runner must be callable')
415 return runner
416 if not callable(proposal.value):
417 raise ValueError('loop_runner must be callable')
418 return proposal.value
419
420 automagic = Bool(True, help=
421 """

Callers

nothing calls this directly

Calls 1

import_itemFunction · 0.90

Tested by

no test coverage detected