MCPcopy Create free account
hub / github.com/ipython/ipython / _import_runner

Method _import_runner

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

Source from the content-addressed store, hash-verified

389
390 @validate('loop_runner')
391 def _import_runner(self, proposal):
392 if isinstance(proposal.value, str):
393 if proposal.value in self.loop_runner_map:
394 runner, autoawait = self.loop_runner_map[proposal.value]
395 self.autoawait = autoawait
396 return runner
397 runner = import_item(proposal.value)
398 if not callable(runner):
399 raise ValueError('loop_runner must be callable')
400 return runner
401 if not callable(proposal.value):
402 raise ValueError('loop_runner must be callable')
403 return proposal.value
404
405 automagic = Bool(True, help=
406 """

Callers

nothing calls this directly

Calls 1

import_itemFunction · 0.90

Tested by

no test coverage detected