Show More
@@ -306,12 +306,13 Currently the magic system has the following functions:""", | |||||
306 | @line_magic |
|
306 | @line_magic | |
307 | def profile(self, parameter_s=''): |
|
307 | def profile(self, parameter_s=''): | |
308 | """Print your currently active IPython profile. |
|
308 | """Print your currently active IPython profile. | |
309 |
|
309 | |||
310 | See Also |
|
310 | See Also | |
311 | -------- |
|
311 | -------- | |
312 | prun : run code using the Python profiler |
|
312 | prun : run code using the Python profiler | |
313 | (:meth:`~IPython.core.magics.execution.ExecutionMagics.prun`) |
|
313 | (:meth:`~IPython.core.magics.execution.ExecutionMagics.prun`) | |
314 | """ |
|
314 | """ | |
|
315 | warn("%profile is now deprecated. Please use get_ipython().profile instead.") | |||
315 | from IPython.core.application import BaseIPythonApplication |
|
316 | from IPython.core.application import BaseIPythonApplication | |
316 | if BaseIPythonApplication.initialized(): |
|
317 | if BaseIPythonApplication.initialized(): | |
317 | print(BaseIPythonApplication.instance().profile) |
|
318 | print(BaseIPythonApplication.instance().profile) |
@@ -113,8 +113,8 class ProfileStartupTest(TestCase): | |||||
113 |
|
113 | |||
114 | @dec.skipif(win32_without_pywin32(), "Test requires pywin32 on Windows") |
|
114 | @dec.skipif(win32_without_pywin32(), "Test requires pywin32 on Windows") | |
115 | def test_startup_ipy(self): |
|
115 | def test_startup_ipy(self): | |
116 |
self.init('00-start.ipy', '% |
|
116 | self.init('00-start.ipy', '%xmode plain\n', '') | |
117 |
self.validate(' |
|
117 | self.validate('Exception reporting mode: Plain') | |
118 |
|
118 | |||
119 |
|
119 | |||
120 | def test_list_profiles_in(): |
|
120 | def test_list_profiles_in(): |
General Comments 0
You need to be logged in to leave comments.
Login now