##// END OF EJS Templates
Backport PR #10707 on branch 5.x...
Thomas Kluyver -
Show More
@@ -288,12 +288,14 b' Currently the magic system has the following functions:""",'
288
288
289 @line_magic
289 @line_magic
290 def profile(self, parameter_s=''):
290 def profile(self, parameter_s=''):
291 """Print your currently active IPython profile.
291 """DEPRECATED since IPython 2.0.
292
293 Raise `UsageError`. To profile code use the :magic:`prun` magic.
294
292
295
293 See Also
296 See Also
294 --------
297 --------
295 prun : run code using the Python profiler
298 prun : run code using the Python profiler (:magic:`prun`)
296 (:meth:`~IPython.core.magics.execution.ExecutionMagics.prun`)
297 """
299 """
298 warn("%profile is now deprecated. Please use get_ipython().profile instead.")
300 warn("%profile is now deprecated. Please use get_ipython().profile instead.")
299 from IPython.core.application import BaseIPythonApplication
301 from IPython.core.application import BaseIPythonApplication
General Comments 0
You need to be logged in to leave comments. Login now