Show More
@@ -2287,7 +2287,11 b' class InteractiveShell(SingletonConfigurable):' | |||
|
2287 | 2287 | return self.magics_manager.magics[magic_kind].get(magic_name) |
|
2288 | 2288 | |
|
2289 | 2289 | def magic(self, arg_s): |
|
2290 | """DEPRECATED. Use run_line_magic() instead. | |
|
2290 | """ | |
|
2291 | DEPRECATED | |
|
2292 | ||
|
2293 | Deprecated since IPython 0.13 (warning added in | |
|
2294 | 8.1), use run_line_magic(magic_name, parameter_s). | |
|
2291 | 2295 | |
|
2292 | 2296 | Call a magic function by name. |
|
2293 | 2297 | |
@@ -2305,6 +2309,12 b' class InteractiveShell(SingletonConfigurable):' | |||
|
2305 | 2309 | valid Python code you can type at the interpreter, including loops and |
|
2306 | 2310 | compound statements. |
|
2307 | 2311 | """ |
|
2312 | warnings.warn( | |
|
2313 | "`magic(...)` is deprecated since IPython 0.13 (warning added in " | |
|
2314 | "8.1), use run_line_magic(magic_name, parameter_s).", | |
|
2315 | DeprecationWarning, | |
|
2316 | stacklevel=2, | |
|
2317 | ) | |
|
2308 | 2318 | # TODO: should we issue a loud deprecation warning here? |
|
2309 | 2319 | magic_name, _, magic_arg_s = arg_s.partition(' ') |
|
2310 | 2320 | magic_name = magic_name.lstrip(prefilter.ESC_MAGIC) |
General Comments 0
You need to be logged in to leave comments.
Login now