From 3b548f66c671c682829e4af284a28969b3a43197 2017-08-27 22:14:50 From: Eren Halici Date: 2017-08-27 22:14:50 Subject: [PATCH] Styling of bang operator --- diff --git a/docs/source/interactive/python-ipython-diff.rst b/docs/source/interactive/python-ipython-diff.rst index fc53afe..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