##// END OF EJS Templates
Rename function to find user code from various sources.
Thomas Kluyver -
Show More
@@ -2505,7 +2505,7 b' class InteractiveShell(Configurable, Magic):'
2505 """Show a usage message"""
2505 """Show a usage message"""
2506 page.page(IPython.core.usage.interactive_usage)
2506 page.page(IPython.core.usage.interactive_usage)
2507
2507
2508 def _get_some_code(self, target, raw=True):
2508 def find_user_code(self, target, raw=True):
2509 """Get a code string from history, file, or a string or macro.
2509 """Get a code string from history, file, or a string or macro.
2510
2510
2511 This is mainly used by magic functions.
2511 This is mainly used by magic functions.
@@ -2514,8 +2514,8 b' class InteractiveShell(Configurable, Magic):'
2514 ----------
2514 ----------
2515 target : str
2515 target : str
2516 A string specifying code to retrieve. This will be tried respectively
2516 A string specifying code to retrieve. This will be tried respectively
2517 as: ranges of input history, a filename, and an expression evaluating
2517 as: ranges of input history (see %history for syntax), a filename, or
2518 to a string or Macro in the user namespace.
2518 an expression evaluating to a string or Macro in the user namespace.
2519 raw : bool
2519 raw : bool
2520 If true (default), retrieve raw history. Has no effect on the other
2520 If true (default), retrieve raw history. Has no effect on the other
2521 retrieval mechanisms.
2521 retrieval mechanisms.
General Comments 0
You need to be logged in to leave comments. Login now