Show More
@@ -532,7 +532,18 b' python-profiler package from non-free.""")' | |||||
532 |
|
532 | |||
533 | %run [-n -i -e -G] |
|
533 | %run [-n -i -e -G] | |
534 | [( -t [-N<N>] | -d [-b<N>] | -p [profile options] )] |
|
534 | [( -t [-N<N>] | -d [-b<N>] | -p [profile options] )] | |
535 | ( -m mod | file ) [args] |
|
535 | ( -m mod | filename ) [args] | |
|
536 | ||||
|
537 | The filename argument should be either a pure Python script (with | |||
|
538 | extension ``.py``), or a file with custom IPython syntax (such as | |||
|
539 | magics). If the latter, the file can be either a script with ``.ipy`` | |||
|
540 | extension, or a Jupyter notebook with ``.ipynb`` extension. When running | |||
|
541 | a Jupyter notebook, the output from print statements and other | |||
|
542 | displayed objects will appear in the terminal (even matplotlib figures | |||
|
543 | will open, if a terminal-compliant backend is being used). Note that, | |||
|
544 | at the system command line, the ``jupyter run`` command offers similar | |||
|
545 | functionality for executing notebooks (albeit currently with some | |||
|
546 | differences in supported options). | |||
536 |
|
547 | |||
537 | Parameters after the filename are passed as command-line arguments to |
|
548 | Parameters after the filename are passed as command-line arguments to | |
538 | the program (put in sys.argv). Then, control returns to IPython's |
|
549 | the program (put in sys.argv). Then, control returns to IPython's |
General Comments 0
You need to be logged in to leave comments.
Login now