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

Method _generate_script_magics

IPython/core/magics/script.py:124–127  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

122 self.kill_bg_processes()
123
124 def _generate_script_magics(self):
125 cell_magics = self.magics['cell']
126 for name in self.script_magics:
127 cell_magics[name] = self._make_script_magic(name)
128
129 def _make_script_magic(self, name):
130 """make a named magic, that calls %%script with a particular program"""

Callers 1

__init__Method · 0.95

Calls 1

_make_script_magicMethod · 0.95

Tested by

no test coverage detected