REPL docs improvements

This commit is contained in:
Dave Halter
2020-03-19 02:57:51 +01:00
parent 197d64d9a8
commit dea80b20e9
2 changed files with 11 additions and 7 deletions
+5 -4
View File
@@ -132,11 +132,12 @@ The returned objects are very powerful and are really all you might need.
Autocompletion in your REPL (IPython, etc.) Autocompletion in your REPL (IPython, etc.)
------------------------------------------- -------------------------------------------
Starting with IPython `6.0.0` Jedi is a dependency of IPython. Autocompletion Jedi is a dependency of IPython. Autocompletion in IPython with Jedi is
in IPython is therefore possible without additional configuration. therefore possible without additional configuration.
It's possible to have Jedi autocompletion in REPL modes - `example video <https://vimeo.com/122332037>`_. Here is an `example video <https://vimeo.com/122332037>`_ how REPL completion
This means that in Python you can enable tab completion in a `REPL can look like.
For the ``python`` shell you can enable tab completion in a `REPL
<https://jedi.readthedocs.org/en/latest/docs/usage.html#tab-completion-in-the-python-shell>`_. <https://jedi.readthedocs.org/en/latest/docs/usage.html#tab-completion-in-the-python-shell>`_.
+6 -3
View File
@@ -90,11 +90,14 @@ and many more!
Tab Completion in the Python Shell Tab Completion in the Python Shell
---------------------------------- ----------------------------------
Starting with Ipython `6.0.0` Jedi is a dependency of IPython. Autocompletion Jedi is a dependency of IPython. Autocompletion in IPython is therefore
in IPython is therefore possible without additional configuration. possible without additional configuration.
Here is an `example video <https://vimeo.com/122332037>`_ how REPL completion
can look like in a different shell.
There are two different options how you can use Jedi autocompletion in There are two different options how you can use Jedi autocompletion in
your Python interpreter. One with your custom ``$HOME/.pythonrc.py`` file your ``python`` interpreter. One with your custom ``$HOME/.pythonrc.py`` file
and one that uses ``PYTHONSTARTUP``. and one that uses ``PYTHONSTARTUP``.
Using ``PYTHONSTARTUP`` Using ``PYTHONSTARTUP``