Show More
@@ -368,7 +368,7 b' Manual capture of command output and magic output' | |||
|
368 | 368 | You can assign the result of a system command to a Python variable with the |
|
369 | 369 | syntax ``myfiles = !ls``. Similarly, the result of a magic (as long as it returns |
|
370 | 370 | a value) can be assigned to a variable. For example, the syntax ``myfiles = %sx ls`` |
|
371 | is equivalent to the above system command example (the :magic:`sx` runs a shell command | |
|
371 | is equivalent to the above system command example (the :magic:`sx` magic runs a shell command | |
|
372 | 372 | and captures the output). Each of these gets machine |
|
373 | 373 | readable output from stdout (e.g. without colours), and splits on newlines. To |
|
374 | 374 | explicitly get this sort of output without assigning to a variable, use two |
General Comments 0
You need to be logged in to leave comments.
Login now