##// END OF EJS Templates
reformat all of IPython.core
Matthias Bussonnier -
Show More
@@ -621,7 +621,6 b' class AsyncMagics(BasicMagics):'
621 If the object is a fully qualified object name, attempt to import it and
621 If the object is a fully qualified object name, attempt to import it and
622 set it as the runner, and activate autoawait.
622 set it as the runner, and activate autoawait.
623
623
624
625 The exact behavior of autoawait is experimental and subject to change
624 The exact behavior of autoawait is experimental and subject to change
626 across version of IPython and Python.
625 across version of IPython and Python.
627 """
626 """
@@ -1067,7 +1067,6 b' class ExecutionMagics(Magics):'
1067
1067
1068 In [6]: %timeit -n1 time.sleep(2)
1068 In [6]: %timeit -n1 time.sleep(2)
1069
1069
1070
1071 The times reported by %timeit will be slightly higher than those
1070 The times reported by %timeit will be slightly higher than those
1072 reported by the timeit.py script when variables are accessed. This is
1071 reported by the timeit.py script when variables are accessed. This is
1073 due to the fact that %timeit executes the statement in the namespace
1072 due to the fact that %timeit executes the statement in the namespace
@@ -1238,7 +1237,6 b' class ExecutionMagics(Magics):'
1238 CPU times: user 0.00 s, sys: 0.00 s, total: 0.00 s
1237 CPU times: user 0.00 s, sys: 0.00 s, total: 0.00 s
1239 Wall time: 0.00
1238 Wall time: 0.00
1240
1239
1241
1242 .. note::
1240 .. note::
1243 The time needed by Python to compile the given expression will be
1241 The time needed by Python to compile the given expression will be
1244 reported if it is more than 0.1s.
1242 reported if it is more than 0.1s.
1 NO CONTENT: modified file
NO CONTENT: modified file
1 NO CONTENT: modified file
NO CONTENT: modified file
@@ -252,7 +252,6 b' class NamespaceMagics(Magics):'
252
252
253 Examples
253 Examples
254 --------
254 --------
255
256 Define two variables and list them with who_ls::
255 Define two variables and list them with who_ls::
257
256
258 In [1]: alpha = 123
257 In [1]: alpha = 123
@@ -367,7 +366,6 b' class NamespaceMagics(Magics):'
367
366
368 Examples
367 Examples
369 --------
368 --------
370
371 Define two variables and list them with whos::
369 Define two variables and list them with whos::
372
370
373 In [1]: alpha = 123
371 In [1]: alpha = 123
@@ -485,22 +483,16 b' class NamespaceMagics(Magics):'
485 Parameters
483 Parameters
486 ----------
484 ----------
487 -f : force reset without asking for confirmation.
485 -f : force reset without asking for confirmation.
488
489 -s : 'Soft' reset: Only clears your namespace, leaving history intact.
486 -s : 'Soft' reset: Only clears your namespace, leaving history intact.
490 References to objects may be kept. By default (without this option),
487 References to objects may be kept. By default (without this option),
491 we do a 'hard' reset, giving you a new session and removing all
488 we do a 'hard' reset, giving you a new session and removing all
492 references to objects from the current session.
489 references to objects from the current session.
493
494 --aggressive: Try to aggressively remove modules from sys.modules ; this
490 --aggressive : Try to aggressively remove modules from sys.modules ; this
495 may allow you to reimport Python modules that have been updated and
491 may allow you to reimport Python modules that have been updated and
496 pick up changes, but can have unattended consequences.
492 pick up changes, but can have unattended consequences.
497
498 in : reset input history
493 in : reset input history
499
500 out : reset output history
494 out : reset output history
501
502 dhist : reset directory history
495 dhist : reset directory history
503
504 array : reset only variables that are NumPy arrays
496 array : reset only variables that are NumPy arrays
505
497
506 See Also
498 See Also
@@ -624,7 +616,6 b' class NamespaceMagics(Magics):'
624
616
625 Examples
617 Examples
626 --------
618 --------
627
628 We first fully reset the namespace so your output looks identical to
619 We first fully reset the namespace so your output looks identical to
629 this example for pedagogical reasons; in practice you do not need a
620 this example for pedagogical reasons; in practice you do not need a
630 full reset::
621 full reset::
@@ -316,7 +316,6 b' class OSMagics(Magics):'
316 ``cd <bookmark_name>`` is enough if there is no directory
316 ``cd <bookmark_name>`` is enough if there is no directory
317 ``<bookmark_name>``, but a bookmark with the name exists.
317 ``<bookmark_name>``, but a bookmark with the name exists.
318
318
319
320 Options:
319 Options:
321
320
322 -q Be quiet. Do not print the working directory after the
321 -q Be quiet. Do not print the working directory after the
@@ -329,7 +328,6 b' class OSMagics(Magics):'
329 where ``!command`` runs is immediately discarded after executing
328 where ``!command`` runs is immediately discarded after executing
330 'command'.
329 'command'.
331
330
332
333 Examples
331 Examples
334 --------
332 --------
335 ::
333 ::
1 NO CONTENT: modified file
NO CONTENT: modified file
@@ -101,7 +101,7 b' pygments.lexers ='
101
101
102 [velin]
102 [velin]
103 ignore_patterns =
103 ignore_patterns =
104 IPython/core/tests,
104 IPython/core/tests
105 IPython/testing
105 IPython/testing
106
106
107 [tool.black]
107 [tool.black]
General Comments 0
You need to be logged in to leave comments. Login now