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

Method named_script_magic

IPython/core/magics/script.py:154–160  ·  view source on GitHub ↗
(line, cell)

Source from the content-addressed store, hash-verified

152 @magic_arguments.magic_arguments()
153 @script_args
154 def named_script_magic(line, cell):
155 # if line, add it as cl-flags
156 if line:
157 line = "%s %s" % (script, line)
158 else:
159 line = script
160 return self.shebang(line, cell)
161
162 # write a basic docstring:
163 named_script_magic.__doc__ = \

Callers

nothing calls this directly

Calls 1

shebangMethod · 0.95

Tested by

no test coverage detected