Skip to content

Commit

Permalink
Merge pull request #13024 from aadcg/master
Browse files Browse the repository at this point in the history
Documentation fixes
  • Loading branch information
MrMino committed Jul 15, 2021
2 parents 19c1a29 + 55d4c79 commit b2605dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
17 changes: 4 additions & 13 deletions docs/source/interactive/python-ipython-diff.rst
Expand Up @@ -46,9 +46,9 @@ All the following constructs are valid IPython syntax:
.. code-block:: ipython
In [1]: my_files = !ls ~/
In [1]: for i,file in enumerate(my_file):
In [1]: for i, file in enumerate(my_files):
...: raw = !echo $file
...: !echo {files[0].upper()} $raw
...: !echo {file[0].upper()} $raw
.. code-block:: ipython
Expand Down Expand Up @@ -193,10 +193,9 @@ You can combine the different possibilities in for loops, conditions, functions.
.. code-block:: ipython
my_files = !ls ~/
b = "backup file"
for i,file in enumerate(my_file):
for i, file in enumerate(my_files):
raw = !echo $backup $file
!cp $file {file.split('.')[0]+'.bak'}
!cp $file {file.split('.')[0] + '.bak'}
Magics
Expand Down Expand Up @@ -239,11 +238,3 @@ Magics with double percent signs (``%%``) can spread over multiple lines, but th
devfs 190Ki 190Ki 0Bi 100% 656 0 100% /dev
map -hosts 0Bi 0Bi 0Bi 100% 0 0 100% /net
map auto_home 0Bi 0Bi 0Bi 100% 0 0 100% /hom
Combining it all
----------------

::

find a snippet that combine all that into one thing!
2 changes: 1 addition & 1 deletion docs/source/interactive/tutorial.rst
Expand Up @@ -90,7 +90,7 @@ completion also works on file and directory names.
Starting with IPython 6.0, if ``jedi`` is installed, IPython will try to pull
completions from Jedi as well. This allows to not only inspect currently
existing objects, but also to infer completion statically without executing
code. There is nothing particular need to get this to work, simply use tab
code. There is nothing particular needed to get this to work, simply use tab
completion on more complex expressions like the following::

>>> data = ['Number of users', 123456]
Expand Down

0 comments on commit b2605dd

Please sign in to comment.