|
@@
-27,18
+27,67
b' features of highlighting failing AST nodes.'
|
|
27
|
27
|
This can be configures by setting the value of
|
|
28
|
28
|
``IPython.code.ultratb.FAST_THRESHOLD`` to an arbitrary low or large value.
|
|
29
|
29
|
|
|
|
30
|
|
|
|
31
|
Autoreload verbosity
|
|
|
32
|
~~~~~~~~~~~~~~~~~~~~
|
|
|
33
|
|
|
|
34
|
We introduce more descriptive names for the ``%autoreload`` parameter:
|
|
|
35
|
|
|
|
36
|
- ``%autoreload now`` (also ``%autoreload``) - perform autoreload immediately.
|
|
|
37
|
- ``%autoreload off`` (also ``%autoreload 0``) - turn off autoreload.
|
|
|
38
|
- ``%autoreload explicit`` (also ``%autoreload 1``) - turn on autoreload only for modules
|
|
|
39
|
whitelisted by ``%aimport`` statements.
|
|
|
40
|
- ``%autoreload all`` (also ``%autoreload 2``) - turn on autoreload for all modules except those
|
|
|
41
|
blacklisted by ``%aimport`` statements.
|
|
|
42
|
- ``%autoreload complete`` (also ``%autoreload 3``) - all the fatures of ``all`` but also adding new
|
|
|
43
|
objects from the imported modules (see
|
|
|
44
|
IPython/extensions/tests/test_autoreload.py::test_autoload_newly_added_objects).
|
|
|
45
|
|
|
|
46
|
The original designations (e.g. "2") still work, and these new ones are case-insensitive.
|
|
|
47
|
|
|
|
48
|
Additionally, the option ``--print`` or ``-p`` can be added to the line to print the names of
|
|
|
49
|
modules being reloaded. Similarly, ``--log`` or ``-l`` will output the names to the logger at INFO
|
|
|
50
|
level. Both can be used simultaneously.
|
|
|
51
|
|
|
|
52
|
The parsing logic for ``%aimport`` is now improved such that modules can be whitelisted and
|
|
|
53
|
blacklisted in the same line, e.g. it's now possible to call ``%aimport os, -math`` to include
|
|
|
54
|
``os`` for ``%autoreload explicit`` and exclude ``math`` for modes ``all`` and ``complete``.
|
|
|
55
|
|
|
|
56
|
Terminal shortcuts customization
|
|
|
57
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
58
|
|
|
|
59
|
Previously modifying shortcuts was only possible by hooking into startup files
|
|
|
60
|
and practically limited to adding new shortcuts or removing all shortcuts bound
|
|
|
61
|
to a specific key. This release enables users to override existing terminal
|
|
|
62
|
shortcuts, disable them or add new keybindings.
|
|
|
63
|
|
|
|
64
|
For example, to set the :kbd:`right` to accept a single character of auto-suggestion
|
|
|
65
|
you could use::
|
|
|
66
|
|
|
|
67
|
my_shortcuts = [
|
|
|
68
|
{
|
|
|
69
|
"command": "IPython:auto_suggest.accept_character",
|
|
|
70
|
"new_keys": ["right"]
|
|
|
71
|
}
|
|
|
72
|
]
|
|
|
73
|
%config TerminalInteractiveShell.shortcuts = my_shortcuts
|
|
|
74
|
|
|
|
75
|
You can learn more in :std:configtrait:`TerminalInteractiveShell.shortcuts`
|
|
|
76
|
configuration reference.
|
|
|
77
|
|
|
30
|
78
|
Miscellaneous
|
|
31
|
79
|
~~~~~~~~~~~~~
|
|
32
|
80
|
|
|
33
|
81
|
- ``%gui`` should now support PySide6. :ghpull:`13864`
|
|
34
|
|
- Cli shortcuts can now be configured :ghpull:`13928`
|
|
|
82
|
- Cli shortcuts can now be configured :ghpull:`13928`, see above.
|
|
35
|
83
|
(note that there might be an issue with prompt_toolkit 3.0.37 and shortcut configuration).
|
|
|
84
|
|
|
36
|
85
|
- Capture output should now respect ``;`` semicolon to suppress output.
|
|
37
|
86
|
:ghpull:`13940`
|
|
38
|
87
|
- Base64 encoded images (in jupyter frontend), will not have trailing newlines.
|
|
39
|
88
|
:ghpull:`13941`
|
|
40
|
89
|
|
|
41
|
|
As usual you can find the full list of PRs on GitHub under `the 8.10 milestone
|
|
|
90
|
As usual you can find the full list of PRs on GitHub under `the 8.11 milestone
|
|
42
|
91
|
<https://github.com/ipython/ipython/milestone/113?closed=1>`__.
|
|
43
|
92
|
|
|
44
|
93
|
Thanks to the `D. E. Shaw group <https://deshaw.com/>`__ for sponsoring
|