From 827649b4dad8fc0243cb6a3da658c4b72d9fc7dd 2017-08-28 08:54:13 From: Thomas Kluyver Date: 2017-08-28 08:54:13 Subject: [PATCH] Merge pull request #10761 from ipython/auto-backport-of-pr-10760 Backport PR #10760 on branch 5.x --- diff --git a/docs/source/interactive/python-ipython-diff.rst b/docs/source/interactive/python-ipython-diff.rst index 9ae08f5..569aebf 100644 --- a/docs/source/interactive/python-ipython-diff.rst +++ b/docs/source/interactive/python-ipython-diff.rst @@ -45,7 +45,7 @@ All the following construct are valid IPython syntax: .. code-block:: ipython - In [1]: my_files =! ls ~/ + In [1]: my_files = !ls ~/ In [1]: for i,file in enumerate(my_file): ...: raw = !echo $file ...: !echo {files[0].upper()} $raw @@ -185,14 +185,14 @@ This allow you for example to put the list of files of the current working direc .. code-block:: ipython - In[1]: my_files != ls + In[1]: my_files = !ls You can combine the different possibilities in for loops, condition, functions...: .. code-block:: ipython - my_files =! ls ~/ + my_files = !ls ~/ b = "backup file" for i,file in enumerate(my_file): raw = !echo $backup $file