Show More
@@ -1,179 +1,201 b'' | |||
|
1 | 1 | .. _issues_list_5: |
|
2 | 2 | |
|
3 | 3 | Issues closed in the 5.x development cycle |
|
4 | 4 | ========================================== |
|
5 | 5 | |
|
6 | Issues closed in 5.6 | |
|
7 | -------------------- | |
|
8 | ||
|
9 | GitHub stats for 2017/09/15 - 2018/04/02 (tag: 5.5.0) | |
|
10 | ||
|
11 | These lists are automatically generated, and may be incomplete or contain duplicates. | |
|
12 | ||
|
13 | We closed 2 issues and merged 28 pull requests. | |
|
14 | The full list can be seen `on GitHub <https://github.com/ipython/ipython/issues?q=milestone%3A5.6>`__ | |
|
15 | ||
|
16 | The following 10 authors contributed 47 commits. | |
|
17 | ||
|
18 | * Benjamin Ragan-Kelley | |
|
19 | * Henry Fredrick Schreiner | |
|
20 | * Joris Van den Bossche | |
|
21 | * Matthias Bussonnier | |
|
22 | * Mradul Dubey | |
|
23 | * Roshan Rao | |
|
24 | * Samuel Lelièvre | |
|
25 | * Teddy Rendahl | |
|
26 | * Thomas A Caswell | |
|
27 | * Thomas Kluyver | |
|
6 | 28 | |
|
7 | 29 | Issues closed in 5.4 |
|
8 | 30 | -------------------- |
|
9 | 31 | |
|
10 | 32 | GitHub stats for 2017/02/24 - 2017/05/30 (tag: 5.3.0) |
|
11 | 33 | |
|
12 | 34 | These lists are automatically generated, and may be incomplete or contain duplicates. |
|
13 | 35 | |
|
14 | 36 | We closed 8 issues and merged 43 pull requests. |
|
15 | 37 | The full list can be seen `on GitHub <https://github.com/ipython/ipython/issues?q=milestone%3A5.4+>`__ |
|
16 | 38 | |
|
17 | 39 | The following 11 authors contributed 64 commits. |
|
18 | 40 | |
|
19 | 41 | * Benjamin Ragan-Kelley |
|
20 | 42 | * Carol Willing |
|
21 | 43 | * Kyle Kelley |
|
22 | 44 | * Leo Singer |
|
23 | 45 | * Luke Pfister |
|
24 | 46 | * Lumir Balhar |
|
25 | 47 | * Matthias Bussonnier |
|
26 | 48 | * meeseeksdev[bot] |
|
27 | 49 | * memeplex |
|
28 | 50 | * Thomas Kluyver |
|
29 | 51 | * Ximin Luo |
|
30 | 52 | |
|
31 | 53 | Issues closed in 5.3 |
|
32 | 54 | -------------------- |
|
33 | 55 | |
|
34 | 56 | GitHub stats for 2017/02/24 - 2017/05/30 (tag: 5.3.0) |
|
35 | 57 | |
|
36 | 58 | These lists are automatically generated, and may be incomplete or contain duplicates. |
|
37 | 59 | |
|
38 | 60 | We closed 6 issues and merged 28 pull requests. |
|
39 | 61 | The full list can be seen `on GitHub <https://github.com/ipython/ipython/issues?q=milestone%3A5.3+>`__ |
|
40 | 62 | |
|
41 | 63 | The following 11 authors contributed 53 commits. |
|
42 | 64 | |
|
43 | 65 | * Benjamin Ragan-Kelley |
|
44 | 66 | * Carol Willing |
|
45 | 67 | * Justin Jent |
|
46 | 68 | * Kyle Kelley |
|
47 | 69 | * Lumir Balhar |
|
48 | 70 | * Matthias Bussonnier |
|
49 | 71 | * meeseeksdev[bot] |
|
50 | 72 | * Segev Finer |
|
51 | 73 | * Steven Maude |
|
52 | 74 | * Thomas A Caswell |
|
53 | 75 | * Thomas Kluyver |
|
54 | 76 | |
|
55 | 77 | |
|
56 | 78 | Issues closed in 5.2 |
|
57 | 79 | -------------------- |
|
58 | 80 | |
|
59 | 81 | GitHub stats for 2016/08/13 - 2017/01/29 (tag: 5.1.0) |
|
60 | 82 | |
|
61 | 83 | These lists are automatically generated, and may be incomplete or contain duplicates. |
|
62 | 84 | |
|
63 | 85 | We closed 30 issues and merged 74 pull requests. |
|
64 | 86 | The full list can be seen `on GitHub <https://github.com/ipython/ipython/issues?q=milestone%3A5.2+>`__ |
|
65 | 87 | |
|
66 | 88 | The following 40 authors contributed 434 commits. |
|
67 | 89 | |
|
68 | 90 | * Adam Eury |
|
69 | 91 | * anantkaushik89 |
|
70 | 92 | * anatoly techtonik |
|
71 | 93 | * Benjamin Ragan-Kelley |
|
72 | 94 | * Bibo Hao |
|
73 | 95 | * Carl Smith |
|
74 | 96 | * Carol Willing |
|
75 | 97 | * Chilaka Ramakrishna |
|
76 | 98 | * Christopher Welborn |
|
77 | 99 | * Denis S. Tereshchenko |
|
78 | 100 | * Diego Garcia |
|
79 | 101 | * fatData |
|
80 | 102 | * Fermi paradox |
|
81 | 103 | * Fernando Perez |
|
82 | 104 | * fuho |
|
83 | 105 | * Hassan Kibirige |
|
84 | 106 | * Jamshed Vesuna |
|
85 | 107 | * Jens Hedegaard Nielsen |
|
86 | 108 | * Jeroen Demeyer |
|
87 | 109 | * kaushikanant |
|
88 | 110 | * Kenneth Hoste |
|
89 | 111 | * Keshav Ramaswamy |
|
90 | 112 | * Kyle Kelley |
|
91 | 113 | * Matteo |
|
92 | 114 | * Matthias Bussonnier |
|
93 | 115 | * mbyt |
|
94 | 116 | * memeplex |
|
95 | 117 | * Moez Bouhlel |
|
96 | 118 | * Pablo Galindo |
|
97 | 119 | * Paul Ivanov |
|
98 | 120 | * pietvo |
|
99 | 121 | * Piotr Przetacznik |
|
100 | 122 | * Rounak Banik |
|
101 | 123 | * sachet-mittal |
|
102 | 124 | * Srinivas Reddy Thatiparthy |
|
103 | 125 | * Tamir Bahar |
|
104 | 126 | * Thomas A Caswell |
|
105 | 127 | * Thomas Kluyver |
|
106 | 128 | * tillahoffmann |
|
107 | 129 | * Yuri Numerov |
|
108 | 130 | |
|
109 | 131 | |
|
110 | 132 | Issues closed in 5.1 |
|
111 | 133 | -------------------- |
|
112 | 134 | |
|
113 | 135 | GitHub stats for 2016/07/08 - 2016/08/13 (tag: 5.0.0) |
|
114 | 136 | |
|
115 | 137 | These lists are automatically generated, and may be incomplete or contain duplicates. |
|
116 | 138 | |
|
117 | 139 | We closed 33 issues and merged 43 pull requests. |
|
118 | 140 | The full list can be seen `on GitHub <https://github.com/ipython/ipython/issues?q=milestone%3A5.1+>`__ |
|
119 | 141 | |
|
120 | 142 | The following 17 authors contributed 129 commits. |
|
121 | 143 | |
|
122 | 144 | * Antony Lee |
|
123 | 145 | * Benjamin Ragan-Kelley |
|
124 | 146 | * Carol Willing |
|
125 | 147 | * Danilo J. S. Bellini |
|
126 | 148 | * ε°ζ (`dongweiming <https://github.com/dongweiming>`__) |
|
127 | 149 | * Fernando Perez |
|
128 | 150 | * Gavin Cooper |
|
129 | 151 | * Gil Forsyth |
|
130 | 152 | * Jacob Niehus |
|
131 | 153 | * Julian Kuhlmann |
|
132 | 154 | * Matthias Bussonnier |
|
133 | 155 | * Michael Pacer |
|
134 | 156 | * Nik Nyby |
|
135 | 157 | * Pavol Juhas |
|
136 | 158 | * Luke Deen Taylor |
|
137 | 159 | * Thomas Kluyver |
|
138 | 160 | * Tamir Bahar |
|
139 | 161 | |
|
140 | 162 | |
|
141 | 163 | Issues closed in 5.0 |
|
142 | 164 | -------------------- |
|
143 | 165 | |
|
144 | 166 | GitHub stats for 2016/07/05 - 2016/07/07 (tag: 5.0.0) |
|
145 | 167 | |
|
146 | 168 | These lists are automatically generated, and may be incomplete or contain duplicates. |
|
147 | 169 | |
|
148 | 170 | We closed 95 issues and merged 191 pull requests. |
|
149 | 171 | The full list can be seen `on GitHub <https://github.com/ipython/ipython/issues?q=milestone%3A5.0+>`__ |
|
150 | 172 | |
|
151 | 173 | The following 27 authors contributed 229 commits. |
|
152 | 174 | |
|
153 | 175 | * Adam Greenhall |
|
154 | 176 | * Adrian |
|
155 | 177 | * Antony Lee |
|
156 | 178 | * Benjamin Ragan-Kelley |
|
157 | 179 | * Carlos Cordoba |
|
158 | 180 | * Carol Willing |
|
159 | 181 | * Chris |
|
160 | 182 | * Craig Citro |
|
161 | 183 | * Dmitry Zotikov |
|
162 | 184 | * Fernando Perez |
|
163 | 185 | * Gil Forsyth |
|
164 | 186 | * Jason Grout |
|
165 | 187 | * Jonathan Frederic |
|
166 | 188 | * Jonathan Slenders |
|
167 | 189 | * Justin Zymbaluk |
|
168 | 190 | * Kelly Liu |
|
169 | 191 | * klonuo |
|
170 | 192 | * Matthias Bussonnier |
|
171 | 193 | * nvdv |
|
172 | 194 | * Pavol Juhas |
|
173 | 195 | * Pierre Gerold |
|
174 | 196 | * sukisuki |
|
175 | 197 | * Sylvain Corlay |
|
176 | 198 | * Thomas A Caswell |
|
177 | 199 | * Thomas Kluyver |
|
178 | 200 | * Trevor Bekolay |
|
179 | 201 | * Yuri Numerov |
@@ -1,413 +1,431 b'' | |||
|
1 | 1 | ============ |
|
2 | 2 | 5.x Series |
|
3 | 3 | ============ |
|
4 | 4 | |
|
5 | .. _whatsnew560: | |
|
6 | ||
|
7 | IPython 5.6 | |
|
8 | =========== | |
|
9 | ||
|
10 | * In Python 3.6 and above, dictionaries preserve the order items were added to | |
|
11 | them. On these versions, IPython will display dictionaries in their native | |
|
12 | order, rather than sorting by the keys (:ghpull:`10958`). | |
|
13 | * :class:`~.IPython.display.ProgressBar` can now be used as an iterator | |
|
14 | (:ghpull:`10813`). | |
|
15 | * The shell object gains a :meth:`~.InteractiveShell.check_complete` method, | |
|
16 | to allow a smoother transition to new input processing machinery planned for | |
|
17 | IPython 7 (:ghpull:`11044`). | |
|
18 | * IPython should start faster, as it no longer looks for all available pygments | |
|
19 | styles on startup (:ghpull:`10859`). | |
|
20 | ||
|
21 | You can see all the PR marked for the `5.6. milestone <https://github.com/ipython/ipython/pulls?utf8=%E2%9C%93&q=is%3Apr+milestone%3A5.6+is%3Aclosed+NOT+%22Backport+PR%22+>`_, | |
|
22 | and all the `backport versions <https://github.com/ipython/ipython/pulls?utf8=%E2%9C%93&q=is%3Apr%20milestone%3A5.6%20is%3Aclosed%20%22Backport%20PR%22%20>`__. | |
|
5 | 23 | |
|
6 | 24 | .. _whatsnew550: |
|
7 | 25 | |
|
8 | 26 | IPython 5.5 |
|
9 | 27 | =========== |
|
10 | 28 | |
|
11 | 29 | System Wide config |
|
12 | 30 | ------------------ |
|
13 | 31 | |
|
14 | 32 | - IPython now looks for config files in ``{sys.prefix}/etc/ipython`` |
|
15 | 33 | for environment-specific configuration. |
|
16 | 34 | - Startup files can be found in ``/etc/ipython/startup`` or ``{sys.prefix}/etc/ipython/startup`` |
|
17 | 35 | in addition to the profile directory, for system-wide or env-specific startup files. |
|
18 | 36 | |
|
19 | 37 | See :ghpull:`10644` |
|
20 | 38 | |
|
21 | 39 | ProgressBar |
|
22 | 40 | ----------- |
|
23 | 41 | |
|
24 | 42 | |
|
25 | 43 | IPython now has built-in support for progressbars:: |
|
26 | 44 | |
|
27 | 45 | In[1]: from IPython.display import ProgressBar |
|
28 | 46 | ... : pb = ProgressBar(100) |
|
29 | 47 | ... : pb |
|
30 | 48 | |
|
31 | 49 | In[2]: pb.progress = 50 |
|
32 | 50 | |
|
33 | 51 | # progress bar in cell 1 updates. |
|
34 | 52 | |
|
35 | 53 | See :ghpull:`10755` |
|
36 | 54 | |
|
37 | 55 | |
|
38 | 56 | Misc |
|
39 | 57 | ---- |
|
40 | 58 | |
|
41 | 59 | - Fix ``IPython.core.display:Pretty._repr_pretty_`` had the wrong signature. |
|
42 | 60 | (:ghpull:`10625`) |
|
43 | 61 | - :magic:`timeit` now give a correct ``SyntaxError`` if naked ``return`` used. |
|
44 | 62 | (:ghpull:`10637`) |
|
45 | 63 | - Prepare the ``:ipython:`` directive to be compatible with Sphinx 1.7. |
|
46 | 64 | (:ghpull:`10668`) |
|
47 | 65 | - Make IPython work with OpenSSL in FIPS mode; change hash algorithm of input |
|
48 | 66 | from md5 to sha1. (:ghpull:`10696`) |
|
49 | 67 | - Clear breakpoints before running any script with debugger. (:ghpull:`10699`) |
|
50 | 68 | - Document that :magic:`profile` is deprecated, not to be confused with :magic:`prun`. (:ghpull:`10707`) |
|
51 | 69 | - Limit default number of returned completions to 500. (:ghpull:`10743`) |
|
52 | 70 | |
|
53 | 71 | You can see all the PR marked for the `5.5. milestone <https://github.com/ipython/ipython/pulls?q=is%3Apr%20milestone%3A5.5%20is%3Aclosed%20NOT%20%22Backport%20PR%22>`_, |
|
54 | 72 | and all the `backport versions <https://github.com/ipython/ipython/pulls?utf8=%E2%9C%93&q=is%3Apr%20milestone%3A5.5%20is%3Aclosed%20%22Backport%20PR%22%20>`_. |
|
55 | 73 | |
|
56 | 74 | |
|
57 | 75 | |
|
58 | 76 | |
|
59 | 77 | .. _whatsnew540: |
|
60 | 78 | |
|
61 | 79 | IPython 5.4 |
|
62 | 80 | =========== |
|
63 | 81 | |
|
64 | 82 | IPython 5.4-LTS is the first release of IPython after the release of the 6.x |
|
65 | 83 | series which is Python 3 only. It backports most of the new exposed API |
|
66 | 84 | additions made in IPython 6.0 and 6.1 and avoid having to write conditional |
|
67 | 85 | logics depending of the version of IPython. |
|
68 | 86 | |
|
69 | 87 | Please upgrade to pip 9 or greater before upgrading IPython. |
|
70 | 88 | Failing to do so on Python 2 may lead to a broken IPython install. |
|
71 | 89 | |
|
72 | 90 | Configurable TerminalInteractiveShell |
|
73 | 91 | ------------------------------------- |
|
74 | 92 | |
|
75 | 93 | Backported from the 6.x branch as an exceptional new feature. See |
|
76 | 94 | :ghpull:`10373` and :ghissue:`10364` |
|
77 | 95 | |
|
78 | 96 | IPython gained a new ``c.TerminalIPythonApp.interactive_shell_class`` option |
|
79 | 97 | that allow to customize the class used to start the terminal frontend. This |
|
80 | 98 | should allow user to use custom interfaces, like reviving the former readline |
|
81 | 99 | interface which is now a separate package not maintained by the core team. |
|
82 | 100 | |
|
83 | 101 | |
|
84 | 102 | Define ``_repr_mimebundle_`` |
|
85 | 103 | ---------------------------- |
|
86 | 104 | |
|
87 | 105 | Object can now define `_repr_mimebundle_` in place of multiple `_repr_*_` |
|
88 | 106 | methods and return a full mimebundle. This greatly simplify many implementation |
|
89 | 107 | and allow to publish custom mimetypes (like geojson, plotly, dataframes....). |
|
90 | 108 | See the ``Custom Display Logic`` example notebook for more information. |
|
91 | 109 | |
|
92 | 110 | Execution Heuristics |
|
93 | 111 | -------------------- |
|
94 | 112 | |
|
95 | 113 | The heuristic for execution in the command line interface is now more biased |
|
96 | 114 | toward executing for single statement. While in IPython 4.x and before a single |
|
97 | 115 | line would be executed when enter is pressed, IPython 5.x would insert a new |
|
98 | 116 | line. For single line statement this is not true anymore and if a single line is |
|
99 | 117 | valid Python, IPython will execute it regardless of the cursor position. Use |
|
100 | 118 | :kbd:`Ctrl-O` to insert a new line. :ghpull:`10489` |
|
101 | 119 | |
|
102 | 120 | |
|
103 | 121 | Implement Display IDs |
|
104 | 122 | --------------------- |
|
105 | 123 | |
|
106 | 124 | Implement display id and ability to update a given display. This should greatly |
|
107 | 125 | simplify a lot of code by removing the need for widgets and allow other frontend |
|
108 | 126 | to implement things like progress-bars. See :ghpull:`10048` |
|
109 | 127 | |
|
110 | 128 | Display function |
|
111 | 129 | ---------------- |
|
112 | 130 | |
|
113 | 131 | The :func:`display() <IPython.display.display>` function is now available by |
|
114 | 132 | default in an IPython session, meaning users can call it on any object to see |
|
115 | 133 | their rich representation. This should allow for better interactivity both at |
|
116 | 134 | the REPL and in notebook environment. |
|
117 | 135 | |
|
118 | 136 | Scripts and library that rely on display and may be run outside of IPython still |
|
119 | 137 | need to import the display function using ``from IPython.display import |
|
120 | 138 | display``. See :ghpull:`10596` |
|
121 | 139 | |
|
122 | 140 | |
|
123 | 141 | Miscs |
|
124 | 142 | ----- |
|
125 | 143 | |
|
126 | 144 | * ``_mp_main_`` is not reloaded which fixes issues with multiprocessing. |
|
127 | 145 | :ghpull:`10523` |
|
128 | 146 | * Use user colorscheme in Pdb as well :ghpull:`10479` |
|
129 | 147 | * Faster shutdown. :ghpull:`10408` |
|
130 | 148 | * Fix a crash in reverse search. :ghpull:`10371` |
|
131 | 149 | * added ``Completer.backslash_combining_completions`` boolean option to |
|
132 | 150 | deactivate backslash-tab completion that may conflict with windows path. |
|
133 | 151 | |
|
134 | 152 | IPython 5.3 |
|
135 | 153 | =========== |
|
136 | 154 | |
|
137 | 155 | Released on February 24th, 2017. Remarkable changes and fixes: |
|
138 | 156 | |
|
139 | 157 | * Fix a bug in ``set_next_input`` leading to a crash of terminal IPython. |
|
140 | 158 | :ghpull:`10231`, :ghissue:`10296`, :ghissue:`10229` |
|
141 | 159 | * Always wait for editor inputhook for terminal IPython :ghpull:`10239`, |
|
142 | 160 | :ghpull:`10240` |
|
143 | 161 | * Disable ``_ipython_display_`` in terminal :ghpull:`10249`, :ghpull:`10274` |
|
144 | 162 | * Update terminal colors to be more visible by default on windows |
|
145 | 163 | :ghpull:`10260`, :ghpull:`10238`, :ghissue:`10281` |
|
146 | 164 | * Add Ctrl-Z shortcut (suspend) in terminal debugger :ghpull:`10254`, |
|
147 | 165 | :ghissue:`10273` |
|
148 | 166 | * Indent on new line by looking at the text before the cursor :ghpull:`10264`, |
|
149 | 167 | :ghpull:`10275`, :ghissue:`9283` |
|
150 | 168 | * Update QtEventloop integration to fix some matplotlib integration issues |
|
151 | 169 | :ghpull:`10201`, :ghpull:`10311`, :ghissue:`10201` |
|
152 | 170 | * Respect completions display style in terminal debugger :ghpull:`10305`, |
|
153 | 171 | :ghpull:`10313` |
|
154 | 172 | * Add a config option ``TerminalInteractiveShell.extra_open_editor_shortcuts`` |
|
155 | 173 | to enable extra shortcuts to open the input in an editor. These are :kbd:`v` |
|
156 | 174 | in vi mode, and :kbd:`C-X C-E` in emacs mode (:ghpull:`10330`). |
|
157 | 175 | The :kbd:`F2` shortcut is always enabled. |
|
158 | 176 | |
|
159 | 177 | IPython 5.2.2 |
|
160 | 178 | ============= |
|
161 | 179 | |
|
162 | 180 | * Fix error when starting with ``IPCompleter.limit_to__all__`` configured. |
|
163 | 181 | |
|
164 | 182 | IPython 5.2.1 |
|
165 | 183 | ============= |
|
166 | 184 | |
|
167 | 185 | * Fix tab completion in the debugger. :ghpull:`10223` |
|
168 | 186 | |
|
169 | 187 | IPython 5.2 |
|
170 | 188 | =========== |
|
171 | 189 | |
|
172 | 190 | Released on January 29th, 2017. Remarkable changes and fixes: |
|
173 | 191 | |
|
174 | 192 | * restore IPython's debugger to raise on quit. :ghpull:`10009` |
|
175 | 193 | * The configuration value ``c.TerminalInteractiveShell.highlighting_style`` can |
|
176 | 194 | now directly take a class argument for custom color style. :ghpull:`9848` |
|
177 | 195 | * Correctly handle matplotlib figures dpi :ghpull:`9868` |
|
178 | 196 | * Deprecate ``-e`` flag for the ``%notebook`` magic that had no effects. |
|
179 | 197 | :ghpull:`9872` |
|
180 | 198 | * You can now press F2 while typing at a terminal prompt to edit the contents |
|
181 | 199 | in your favourite terminal editor. Set the :envvar:`EDITOR` environment |
|
182 | 200 | variable to pick which editor is used. :ghpull:`9929` |
|
183 | 201 | * sdists will now only be ``.tar.gz`` as per upstream PyPI requirements. |
|
184 | 202 | :ghpull:`9925` |
|
185 | 203 | * :any:`IPython.core.debugger` have gained a ``set_trace()`` method for |
|
186 | 204 | convenience. :ghpull:`9947` |
|
187 | 205 | * The 'smart command mode' added to the debugger in 5.0 was removed, as more |
|
188 | 206 | people preferred the previous behaviour. Therefore, debugger commands such as |
|
189 | 207 | ``c`` will act as debugger commands even when ``c`` is defined as a variable. |
|
190 | 208 | :ghpull:`10050` |
|
191 | 209 | * Fixes OS X event loop issues at startup, :ghpull:`10150` |
|
192 | 210 | * Deprecate the ``%autoindent`` magic. :ghpull:`10176` |
|
193 | 211 | * Emit a :any:`DeprecationWarning` when setting the deprecated |
|
194 | 212 | ``limit_to_all`` option of the completer. :ghpull:`10198` |
|
195 | 213 | * The :cellmagic:`capture` magic can now capture the result of a cell (from an |
|
196 | 214 | expression on the last line), as well as printed and displayed output. |
|
197 | 215 | :ghpull:`9851`. |
|
198 | 216 | |
|
199 | 217 | |
|
200 | 218 | Changes of behavior to :any:`InteractiveShellEmbed`. |
|
201 | 219 | |
|
202 | 220 | :any:`InteractiveShellEmbed` interactive behavior have changed a bit in between |
|
203 | 221 | 5.1 and 5.2. By default ``%kill_embedded`` magic will prevent further invocation |
|
204 | 222 | of the current ``call location`` instead of preventing further invocation of |
|
205 | 223 | the current instance creation location. For most use case this will not change |
|
206 | 224 | much for you, though previous behavior was confusing and less consistent with |
|
207 | 225 | previous IPython versions. |
|
208 | 226 | |
|
209 | 227 | You can now deactivate instances by using ``%kill_embedded --instance`` flag, |
|
210 | 228 | (or ``-i`` in short). The ``%kill_embedded`` magic also gained a |
|
211 | 229 | ``--yes``/``-y`` option which skip confirmation step, and ``-x``/``--exit`` |
|
212 | 230 | which also exit the current embedded call without asking for confirmation. |
|
213 | 231 | |
|
214 | 232 | See :ghpull:`10207`. |
|
215 | 233 | |
|
216 | 234 | |
|
217 | 235 | |
|
218 | 236 | IPython 5.1 |
|
219 | 237 | =========== |
|
220 | 238 | |
|
221 | 239 | * Broken ``%timeit`` on Python2 due to the use of ``__qualname__``. :ghpull:`9804` |
|
222 | 240 | * Restore ``%gui qt`` to create and return a ``QApplication`` if necessary. :ghpull:`9789` |
|
223 | 241 | * Don't set terminal title by default. :ghpull:`9801` |
|
224 | 242 | * Preserve indentation when inserting newlines with ``Ctrl-O``. :ghpull:`9770` |
|
225 | 243 | * Restore completion in debugger. :ghpull:`9785` |
|
226 | 244 | * Deprecate ``IPython.core.debugger.Tracer()`` in favor of simpler, newer, APIs. :ghpull:`9731` |
|
227 | 245 | * Restore ``NoOpContext`` context manager removed by mistake, and add `DeprecationWarning`. :ghpull:`9765` |
|
228 | 246 | * Add option allowing ``Prompt_toolkit`` to use 24bits colors. :ghpull:`9736` |
|
229 | 247 | * Fix for closing interactive matplotlib windows on OS X. :ghpull:`9854` |
|
230 | 248 | * An embedded interactive shell instance can be used more than once. :ghpull:`9843` |
|
231 | 249 | * More robust check for whether IPython is in a terminal. :ghpull:`9833` |
|
232 | 250 | * Better pretty-printing of dicts on PyPy. :ghpull:`9827` |
|
233 | 251 | * Some coloured output now looks better on dark background command prompts in Windows. |
|
234 | 252 | :ghpull:`9838` |
|
235 | 253 | * Improved tab completion of paths on Windows . :ghpull:`9826` |
|
236 | 254 | * Fix tkinter event loop integration on Python 2 with ``future`` installed. :ghpull:`9824` |
|
237 | 255 | * Restore ``Ctrl-\`` as a shortcut to quit IPython. |
|
238 | 256 | * Make ``get_ipython()`` accessible when modules are imported by startup files. :ghpull:`9818` |
|
239 | 257 | * Add support for running directories containing a ``__main__.py`` file with the |
|
240 | 258 | ``ipython`` command. :ghpull:`9813` |
|
241 | 259 | |
|
242 | 260 | |
|
243 | 261 | True Color feature |
|
244 | 262 | ------------------ |
|
245 | 263 | |
|
246 | 264 | ``prompt_toolkit`` uses pygments styles for syntax highlighting. By default, the |
|
247 | 265 | colors specified in the style are approximated using a standard 256-color |
|
248 | 266 | palette. ``prompt_toolkit`` also supports 24bit, a.k.a. "true", a.k.a. 16-million |
|
249 | 267 | color escape sequences which enable compatible terminals to display the exact |
|
250 | 268 | colors specified instead of an approximation. This true_color option exposes |
|
251 | 269 | that capability in prompt_toolkit to the IPython shell. |
|
252 | 270 | |
|
253 | 271 | Here is a good source for the current state of true color support in various |
|
254 | 272 | terminal emulators and software projects: https://gist.github.com/XVilka/8346728 |
|
255 | 273 | |
|
256 | 274 | |
|
257 | 275 | |
|
258 | 276 | IPython 5.0 |
|
259 | 277 | =========== |
|
260 | 278 | |
|
261 | 279 | Released July 7, 2016 |
|
262 | 280 | |
|
263 | 281 | New terminal interface |
|
264 | 282 | ---------------------- |
|
265 | 283 | |
|
266 | 284 | IPython 5 features a major upgrade to the terminal interface, bringing live |
|
267 | 285 | syntax highlighting as you type, proper multiline editing and multiline paste, |
|
268 | 286 | and tab completions that don't clutter up your history. |
|
269 | 287 | |
|
270 | 288 | .. image:: ../_images/ptshell_features.png |
|
271 | 289 | :alt: New terminal interface features |
|
272 | 290 | :align: center |
|
273 | 291 | :target: ../_images/ptshell_features.png |
|
274 | 292 | |
|
275 | 293 | These features are provided by the Python library `prompt_toolkit |
|
276 | 294 | <http://python-prompt-toolkit.readthedocs.io/en/stable/>`__, which replaces |
|
277 | 295 | ``readline`` throughout our terminal interface. |
|
278 | 296 | |
|
279 | 297 | Relying on this pure-Python, cross platform module also makes it simpler to |
|
280 | 298 | install IPython. We have removed dependencies on ``pyreadline`` for Windows and |
|
281 | 299 | ``gnureadline`` for Mac. |
|
282 | 300 | |
|
283 | 301 | Backwards incompatible changes |
|
284 | 302 | ------------------------------ |
|
285 | 303 | |
|
286 | 304 | - The ``%install_ext`` magic function, deprecated since 4.0, has now been deleted. |
|
287 | 305 | You can distribute and install extensions as packages on PyPI. |
|
288 | 306 | - Callbacks registered while an event is being handled will now only be called |
|
289 | 307 | for subsequent events; previously they could be called for the current event. |
|
290 | 308 | Similarly, callbacks removed while handling an event *will* always get that |
|
291 | 309 | event. See :ghissue:`9447` and :ghpull:`9453`. |
|
292 | 310 | - Integration with pydb has been removed since pydb development has been stopped |
|
293 | 311 | since 2012, and pydb is not installable from PyPI. |
|
294 | 312 | - The ``autoedit_syntax`` option has apparently been broken for many years. |
|
295 | 313 | It has been removed. |
|
296 | 314 | |
|
297 | 315 | New terminal interface |
|
298 | 316 | ~~~~~~~~~~~~~~~~~~~~~~ |
|
299 | 317 | |
|
300 | 318 | The overhaul of the terminal interface will probably cause a range of minor |
|
301 | 319 | issues for existing users. |
|
302 | 320 | This is inevitable for such a significant change, and we've done our best to |
|
303 | 321 | minimise these issues. |
|
304 | 322 | Some changes that we're aware of, with suggestions on how to handle them: |
|
305 | 323 | |
|
306 | 324 | IPython no longer uses readline configuration (``~/.inputrc``). We hope that |
|
307 | 325 | the functionality you want (e.g. vi input mode) will be available by configuring |
|
308 | 326 | IPython directly (see :doc:`/config/options/terminal`). |
|
309 | 327 | If something's missing, please file an issue. |
|
310 | 328 | |
|
311 | 329 | The ``PromptManager`` class has been removed, and the prompt machinery simplified. |
|
312 | 330 | See :ref:`custom_prompts` to customise prompts with the new machinery. |
|
313 | 331 | |
|
314 | 332 | :mod:`IPython.core.debugger` now provides a plainer interface. |
|
315 | 333 | :mod:`IPython.terminal.debugger` contains the terminal debugger using |
|
316 | 334 | prompt_toolkit. |
|
317 | 335 | |
|
318 | 336 | There are new options to configure the colours used in syntax highlighting. |
|
319 | 337 | We have tried to integrate them with our classic ``--colors`` option and |
|
320 | 338 | ``%colors`` magic, but there's a mismatch in possibilities, so some configurations |
|
321 | 339 | may produce unexpected results. See :ref:`termcolour` for more information. |
|
322 | 340 | |
|
323 | 341 | The new interface is not compatible with Emacs 'inferior-shell' feature. To |
|
324 | 342 | continue using this, add the ``--simple-prompt`` flag to the command Emacs |
|
325 | 343 | runs. This flag disables most IPython features, relying on Emacs to provide |
|
326 | 344 | things like tab completion. |
|
327 | 345 | |
|
328 | 346 | Provisional Changes |
|
329 | 347 | ------------------- |
|
330 | 348 | |
|
331 | 349 | Provisional changes are experimental functionality that may, or may not, make |
|
332 | 350 | it into a future version of IPython, and which API may change without warnings. |
|
333 | 351 | Activating these features and using these API are at your own risk, and may have |
|
334 | 352 | security implication for your system, especially if used with the Jupyter notebook, |
|
335 | 353 | |
|
336 | 354 | When running via the Jupyter notebook interfaces, or other compatible client, |
|
337 | 355 | you can enable rich documentation experimental functionality: |
|
338 | 356 | |
|
339 | 357 | When the ``docrepr`` package is installed setting the boolean flag |
|
340 | 358 | ``InteractiveShell.sphinxify_docstring`` to ``True``, will process the various |
|
341 | 359 | object through sphinx before displaying them (see the ``docrepr`` package |
|
342 | 360 | documentation for more information. |
|
343 | 361 | |
|
344 | 362 | You need to also enable the IPython pager display rich HTML representation |
|
345 | 363 | using the ``InteractiveShell.enable_html_pager`` boolean configuration option. |
|
346 | 364 | As usual you can set these configuration options globally in your configuration |
|
347 | 365 | files, alternatively you can turn them on dynamically using the following |
|
348 | 366 | snippet: |
|
349 | 367 | |
|
350 | 368 | .. code-block:: python |
|
351 | 369 | |
|
352 | 370 | ip = get_ipython() |
|
353 | 371 | ip.sphinxify_docstring = True |
|
354 | 372 | ip.enable_html_pager = True |
|
355 | 373 | |
|
356 | 374 | |
|
357 | 375 | You can test the effect of various combinations of the above configuration in |
|
358 | 376 | the Jupyter notebook, with things example like : |
|
359 | 377 | |
|
360 | 378 | .. code-block:: ipython |
|
361 | 379 | |
|
362 | 380 | import numpy as np |
|
363 | 381 | np.histogram? |
|
364 | 382 | |
|
365 | 383 | |
|
366 | 384 | This is part of an effort to make Documentation in Python richer and provide in |
|
367 | 385 | the long term if possible dynamic examples that can contain math, images, |
|
368 | 386 | widgets... As stated above this is nightly experimental feature with a lot of |
|
369 | 387 | (fun) problem to solve. We would be happy to get your feedback and expertise on |
|
370 | 388 | it. |
|
371 | 389 | |
|
372 | 390 | |
|
373 | 391 | |
|
374 | 392 | Deprecated Features |
|
375 | 393 | ------------------- |
|
376 | 394 | |
|
377 | 395 | Some deprecated features are listed in this section. Don't forget to enable |
|
378 | 396 | ``DeprecationWarning`` as an error if you are using IPython in a Continuous |
|
379 | 397 | Integration setup or in your testing in general: |
|
380 | 398 | |
|
381 | 399 | .. code-block:: python |
|
382 | 400 | |
|
383 | 401 | import warnings |
|
384 | 402 | warnings.filterwarnings('error', '.*', DeprecationWarning, module='yourmodule.*') |
|
385 | 403 | |
|
386 | 404 | |
|
387 | 405 | - ``hooks.fix_error_editor`` seems unused and is pending deprecation. |
|
388 | 406 | - `IPython/core/excolors.py:ExceptionColors` is deprecated. |
|
389 | 407 | - `IPython.core.InteractiveShell:write()` is deprecated; use `sys.stdout` instead. |
|
390 | 408 | - `IPython.core.InteractiveShell:write_err()` is deprecated; use `sys.stderr` instead. |
|
391 | 409 | - The `formatter` keyword argument to `Inspector.info` in `IPython.core.oinspec` has no effect. |
|
392 | 410 | - The `global_ns` keyword argument of IPython Embed was deprecated, and has no effect. Use `module` keyword argument instead. |
|
393 | 411 | |
|
394 | 412 | |
|
395 | 413 | Known Issues: |
|
396 | 414 | ------------- |
|
397 | 415 | |
|
398 | 416 | - ``<Esc>`` Key does not dismiss the completer and does not clear the current |
|
399 | 417 | buffer. This is an on purpose modification due to current technical |
|
400 | 418 | limitation. Cf :ghpull:`9572`. Escape the control character which is used |
|
401 | 419 | for other shortcut, and there is no practical way to distinguish. Use Ctr-G |
|
402 | 420 | or Ctrl-C as an alternative. |
|
403 | 421 | |
|
404 | 422 | - Cannot use ``Shift-Enter`` and ``Ctrl-Enter`` to submit code in terminal. cf |
|
405 | 423 | :ghissue:`9587` and :ghissue:`9401`. In terminal there is no practical way to |
|
406 | 424 | distinguish these key sequences from a normal new line return. |
|
407 | 425 | |
|
408 | 426 | - ``PageUp`` and ``pageDown`` do not move through completion menu. |
|
409 | 427 | |
|
410 | 428 | - Color styles might not adapt to terminal emulator themes. This will need new |
|
411 | 429 | version of Pygments to be released, and can be mitigated with custom themes. |
|
412 | 430 | |
|
413 | 431 |
General Comments 0
You need to be logged in to leave comments.
Login now