Show More
@@ -302,21 +302,6 b' Currently the magic system has the following functions:""",' | |||
|
302 | 302 | print('Object `%s` not found' % oname) |
|
303 | 303 | |
|
304 | 304 | @line_magic |
|
305 | def profile(self, parameter_s=''): | |
|
306 | """DEPRECATED since IPython 2.0. | |
|
307 | ||
|
308 | Raise `UsageError`. To profile code use the :magic:`prun` magic. | |
|
309 | ||
|
310 | ||
|
311 | See Also | |
|
312 | -------- | |
|
313 | prun : run code using the Python profiler (:magic:`prun`) | |
|
314 | """ | |
|
315 | raise UsageError("The `%profile` magic has been deprecated since IPython 2.0. " | |
|
316 | "and removed in IPython 6.0. Please use the value of `get_ipython().profile` instead " | |
|
317 | "to see current profile in use. Perhaps you meant to use `%prun` to profile code?") | |
|
318 | ||
|
319 | @line_magic | |
|
320 | 305 | def pprint(self, parameter_s=''): |
|
321 | 306 | """Toggle pretty printing on/off.""" |
|
322 | 307 | ptformatter = self.shell.display_formatter.formatters['text/plain'] |
General Comments 0
You need to be logged in to leave comments.
Login now