##// END OF EJS Templates
Fix erroneous code snippets.
André A. Gomes -
Show More
@@ -46,9 +46,9 b' All the following constructs are valid IPython syntax:'
46 46 .. code-block:: ipython
47 47
48 48 In [1]: my_files = !ls ~/
49 In [1]: for i,file in enumerate(my_file):
49 In [1]: for i, file in enumerate(my_files):
50 50 ...: raw = !echo $file
51 ...: !echo {files[0].upper()} $raw
51 ...: !echo {file[0].upper()} $raw
52 52
53 53
54 54 .. code-block:: ipython
@@ -193,10 +193,9 b' You can combine the different possibilities in for loops, conditions, functions.'
193 193 .. code-block:: ipython
194 194
195 195 my_files = !ls ~/
196 b = "backup file"
197 for i,file in enumerate(my_file):
196 for i, file in enumerate(my_files):
198 197 raw = !echo $backup $file
199 !cp $file {file.split('.')[0]+'.bak'}
198 !cp $file {file.split('.')[0] + '.bak'}
200 199
201 200
202 201 Magics
General Comments 0
You need to be logged in to leave comments. Login now