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

Function needs_local_scope

IPython/core/magic.py:77–80  ·  view source on GitHub ↗

Decorator to mark magic functions which need to local scope to run.

(func)

Source from the content-addressed store, hash-verified

75
76
77def needs_local_scope(func):
78 """Decorator to mark magic functions which need to local scope to run."""
79 func.needs_local_scope = True
80 return func
81
82#-----------------------------------------------------------------------------
83# Class and method decorators for registering magics

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected