##// END OF EJS Templates
What's new 8.7
Matthias Bussonnier -
Show More
@@ -1,1260 +1,1286 b''
1 1 ============
2 2 8.x Series
3 3 ============
4 4
5
6 .. _version 8.7.0:
7
8 IPython 8.7.0
9 -------------
10
11
12 Small release of IPython with a couple of bug fixes and new features for this
13 month. Next month is end of year, it is unclear if there will be a release close
14 the new year's eve, or if the next release will be at end of January.
15
16 Here are a few of the relevant fixes,
17 as usual you can find the full list of PRs on GitHub under `the 8.7 milestone
18 <https://github.com/ipython/ipython/pulls?q=milestone%3A8.7>`__.
19
20
21 - :ghpull:`13834` bump the minimum prompt toolkit to 3.0.11.
22 - IPython shipped with the ``py.typed`` marker now, and we are progressively
23 adding more types. :ghpull:`13831`
24 - :ghpull:`13817` add configuration of code blacks formatting.
25
26
27 Thanks to the `D. E. Shaw group <https://deshaw.com/>`__ for sponsoring
28 work on IPython and related libraries.
29
30
5 31 .. _version 8.6.0:
6 32
7 33 IPython 8.6.0
8 34 -------------
9 35
10 36 Back to a more regular release schedule (at least I try), as Friday is
11 37 already over by more than 24h hours. This is a slightly bigger release with a
12 38 few new features that contain no less then 25 PRs.
13 39
14 40 We'll notably found a couple of non negligible changes:
15 41
16 42 The ``install_ext`` and related functions have been removed after being
17 43 deprecated for years. You can use pip to install extensions. ``pip`` did not
18 44 exists when ``install_ext`` was introduced. You can still load local extensions
19 45 without installing them. Just set your ``sys.path`` for example. :ghpull:`13744`
20 46
21 47 IPython now have extra entry points that that the major *and minor* version of
22 48 python. For some of you this mean that you can do a quick ``ipython3.10`` to
23 49 launch IPython from the Python 3.10 interpreter, while still using Python 3.11
24 50 as your main Python. :ghpull:`13743`
25 51
26 52 The completer matcher API have been improved. See :ghpull:`13745`. This should
27 53 improve the type inference and improve dict keys completions in many use case.
28 54 Tanks ``@krassowski`` for all the works, and the D.E. Shaw group for sponsoring
29 55 it.
30 56
31 57 The color of error nodes in tracebacks can now be customized. See
32 58 :ghpull:`13756`. This is a private attribute until someone find the time to
33 59 properly add a configuration option. Note that with Python 3.11 that also show
34 60 the relevant nodes in traceback, it would be good to leverage this informations
35 61 (plus the "did you mean" info added on attribute errors). But that's likely work
36 62 I won't have time to do before long, so contributions welcome.
37 63
38 64 As we follow NEP 29, we removed support for numpy 1.19 :ghpull:`13760`.
39 65
40 66
41 67 The ``open()`` function present in the user namespace by default will now refuse
42 68 to open the file descriptors 0,1,2 (stdin, out, err), to avoid crashing IPython.
43 This mostly occurs in teaching context when incorrect values get passed around.
69 This mostly occurs in teaching context when incorrect values get passed around.
44 70
45 71
46 72 The ``?``, ``??``, and corresponding ``pinfo``, ``pinfo2`` magics can now find
47 73 objects insides arrays. That is to say, the following now works::
48 74
49 75
50 76 >>> def my_func(*arg, **kwargs):pass
51 77 >>> container = [my_func]
52 78 >>> container[0]?
53 79
54 80
55 81 If ``container`` define a custom ``getitem``, this __will__ trigger the custom
56 82 method. So don't put side effects in your ``getitems``. Thanks the D.E. Shaw
57 83 group for the request and sponsoring the work.
58 84
59 85
60 86 As usual you can find the full list of PRs on GitHub under `the 8.6 milestone
61 87 <https://github.com/ipython/ipython/pulls?q=milestone%3A8.6>`__.
62 88
63 89 Thanks to all hacktoberfest contributors, please contribute to
64 90 `closember.org <https://closember.org/>`__.
65 91
66 92 Thanks to the `D. E. Shaw group <https://deshaw.com/>`__ for sponsoring
67 93 work on IPython and related libraries.
68 94
69 95 .. _version 8.5.0:
70 96
71 97 IPython 8.5.0
72 98 -------------
73 99
74 100 First release since a couple of month due to various reasons and timing preventing
75 101 me for sticking to the usual monthly release the last Friday of each month. This
76 102 is of non negligible size as it has more than two dozen PRs with various fixes
77 103 an bug fixes.
78 104
79 105 Many thanks to everybody who contributed PRs for your patience in review and
80 106 merges.
81 107
82 108 Here is a non exhaustive list of changes that have been implemented for IPython
83 109 8.5.0. As usual you can find the full list of issues and PRs tagged with `the
84 110 8.5 milestone
85 111 <https://github.com/ipython/ipython/pulls?q=is%3Aclosed+milestone%3A8.5+>`__.
86 112
87 113 - Added shortcut for accepting auto suggestion. The End key shortcut for
88 114 accepting auto-suggestion This binding works in Vi mode too, provided
89 115 ``TerminalInteractiveShell.emacs_bindings_in_vi_insert_mode`` is set to be
90 116 ``True`` :ghpull:`13566`.
91 117
92 118 - No popup in window for latex generation w hen generating latex (e.g. via
93 119 `_latex_repr_`) no popup window is shows under Windows. :ghpull:`13679`
94 120
95 121 - Fixed error raised when attempting to tab-complete an input string with
96 122 consecutive periods or forward slashes (such as "file:///var/log/...").
97 123 :ghpull:`13675`
98 124
99 125 - Relative filenames in Latex rendering :
100 126 The `latex_to_png_dvipng` command internally generates input and output file
101 127 arguments to `latex` and `dvipis`. These arguments are now generated as
102 128 relative files to the current working directory instead of absolute file
103 129 paths. This solves a problem where the current working directory contains
104 130 characters that are not handled properly by `latex` and `dvips`. There are
105 131 no changes to the user API. :ghpull:`13680`
106 132
107 133 - Stripping decorators bug: Fixed bug which meant that ipython code blocks in
108 134 restructured text documents executed with the ipython-sphinx extension
109 135 skipped any lines of code containing python decorators. :ghpull:`13612`
110 136
111 137 - Allow some modules with frozen dataclasses to be reloaded. :ghpull:`13732`
112 138 - Fix paste magic on wayland. :ghpull:`13671`
113 139 - show maxlen in deque's repr. :ghpull:`13648`
114 140
115 141 Restore line numbers for Input
116 142 ------------------------------
117 143
118 144 Line number information in tracebacks from input are restored.
119 145 Line numbers from input were removed during the transition to v8 enhanced traceback reporting.
120 146
121 147 So, instead of::
122 148
123 149 ---------------------------------------------------------------------------
124 150 ZeroDivisionError Traceback (most recent call last)
125 151 Input In [3], in <cell line: 1>()
126 152 ----> 1 myfunc(2)
127 153
128 154 Input In [2], in myfunc(z)
129 155 1 def myfunc(z):
130 156 ----> 2 foo.boo(z-1)
131 157
132 158 File ~/code/python/ipython/foo.py:3, in boo(x)
133 159 2 def boo(x):
134 160 ----> 3 return 1/(1-x)
135 161
136 162 ZeroDivisionError: division by zero
137 163
138 164 The error traceback now looks like::
139 165
140 166 ---------------------------------------------------------------------------
141 167 ZeroDivisionError Traceback (most recent call last)
142 168 Cell In [3], line 1
143 169 ----> 1 myfunc(2)
144 170
145 171 Cell In [2], line 2, in myfunc(z)
146 172 1 def myfunc(z):
147 173 ----> 2 foo.boo(z-1)
148 174
149 175 File ~/code/python/ipython/foo.py:3, in boo(x)
150 176 2 def boo(x):
151 177 ----> 3 return 1/(1-x)
152 178
153 179 ZeroDivisionError: division by zero
154 180
155 181 or, with xmode=Plain::
156 182
157 183 Traceback (most recent call last):
158 184 Cell In [12], line 1
159 185 myfunc(2)
160 186 Cell In [6], line 2 in myfunc
161 187 foo.boo(z-1)
162 188 File ~/code/python/ipython/foo.py:3 in boo
163 189 return 1/(1-x)
164 190 ZeroDivisionError: division by zero
165 191
166 192 :ghpull:`13560`
167 193
168 194 New setting to silence warning if working inside a virtual environment
169 195 ----------------------------------------------------------------------
170 196
171 197 Previously, when starting IPython in a virtual environment without IPython installed (so IPython from the global environment is used), the following warning was printed:
172 198
173 199 Attempting to work in a virtualenv. If you encounter problems, please install IPython inside the virtualenv.
174 200
175 201 This warning can be permanently silenced by setting ``c.InteractiveShell.warn_venv`` to ``False`` (the default is ``True``).
176 202
177 203 :ghpull:`13706`
178 204
179 205 -------
180 206
181 207 Thanks to the `D. E. Shaw group <https://deshaw.com/>`__ for sponsoring
182 208 work on IPython and related libraries.
183 209
184 210
185 211 .. _version 8.4.0:
186 212
187 213 IPython 8.4.0
188 214 -------------
189 215
190 216 As for 7.34, this version contains a single fix: fix uncaught BdbQuit exceptions on ipdb
191 217 exit :ghpull:`13668`, and a single typo fix in documentation: :ghpull:`13682`
192 218
193 219 Thanks to the `D. E. Shaw group <https://deshaw.com/>`__ for sponsoring
194 220 work on IPython and related libraries.
195 221
196 222
197 223 .. _version 8.3.0:
198 224
199 225 IPython 8.3.0
200 226 -------------
201 227
202 228 - :ghpull:`13625`, using ``?``, ``??``, ``*?`` will not call
203 229 ``set_next_input`` as most frontend allow proper multiline editing and it was
204 230 causing issues for many users of multi-cell frontends. This has been backported to 7.33
205 231
206 232
207 233 - :ghpull:`13600`, ``pre_run_*``-hooks will now have a ``cell_id`` attribute on
208 234 the info object when frontend provide it. This has been backported to 7.33
209 235
210 236 - :ghpull:`13624`, fixed :kbd:`End` key being broken after accepting an
211 237 auto-suggestion.
212 238
213 239 - :ghpull:`13657` fix issue where history from different sessions would be mixed.
214 240
215 241 .. _version 8.2.0:
216 242
217 243 IPython 8.2.0
218 244 -------------
219 245
220 246 IPython 8.2 mostly bring bugfixes to IPython.
221 247
222 248 - Auto-suggestion can now be elected with the ``end`` key. :ghpull:`13566`
223 249 - Some traceback issues with ``assert etb is not None`` have been fixed. :ghpull:`13588`
224 250 - History is now pulled from the sqitel database and not from in-memory.
225 251 In particular when using the ``%paste`` magic, the content of the pasted text will
226 252 be part of the history and not the verbatim text ``%paste`` anymore. :ghpull:`13592`
227 253 - Fix ``Ctrl-\\`` exit cleanup :ghpull:`13603`
228 254 - Fixes to ``ultratb`` ipdb support when used outside of IPython. :ghpull:`13498`
229 255
230 256
231 257 I am still trying to fix and investigate :ghissue:`13598`, which seem to be
232 258 random, and would appreciate help if you find reproducible minimal case. I've
233 259 tried to make various changes to the codebase to mitigate it, but a proper fix
234 260 will be difficult without understanding the cause.
235 261
236 262
237 263 All the issues on pull-requests for this release can be found in the `8.2
238 264 milestone. <https://github.com/ipython/ipython/milestone/100>`__ . And some
239 265 documentation only PR can be found as part of the `7.33 milestone
240 266 <https://github.com/ipython/ipython/milestone/101>`__ (currently not released).
241 267
242 268 Thanks to the `D. E. Shaw group <https://deshaw.com/>`__ for sponsoring
243 269 work on IPython and related libraries.
244 270
245 271 .. _version 8.1.1:
246 272
247 273 IPython 8.1.1
248 274 -------------
249 275
250 276 Fix an issue with virtualenv and Python 3.8 introduced in 8.1
251 277
252 278 Revert :ghpull:`13537` (fix an issue with symlinks in virtualenv) that raises an
253 279 error in Python 3.8, and fixed in a different way in :ghpull:`13559`.
254 280
255 281 .. _version 8.1:
256 282
257 283 IPython 8.1.0
258 284 -------------
259 285
260 286 IPython 8.1 is the first minor release after 8.0 and fixes a number of bugs and
261 287 Update a few behavior that were problematic with the 8.0 as with many new major
262 288 release.
263 289
264 290 Note that beyond the changes listed here, IPython 8.1.0 also contains all the
265 291 features listed in :ref:`version 7.32`.
266 292
267 293 - Misc and multiple fixes around quotation auto-closing. It is now disabled by
268 294 default. Run with ``TerminalInteractiveShell.auto_match=True`` to re-enabled
269 295 - Require pygments>=2.4.0 :ghpull:`13459`, this was implicit in the code, but
270 296 is now explicit in ``setup.cfg``/``setup.py``
271 297 - Docs improvement of ``core.magic_arguments`` examples. :ghpull:`13433`
272 298 - Multi-line edit executes too early with await. :ghpull:`13424`
273 299
274 300 - ``black`` is back as an optional dependency, and autoformatting disabled by
275 301 default until some fixes are implemented (black improperly reformat magics).
276 302 :ghpull:`13471` Additionally the ability to use ``yapf`` as a code
277 303 reformatter has been added :ghpull:`13528` . You can use
278 304 ``TerminalInteractiveShell.autoformatter="black"``,
279 305 ``TerminalInteractiveShell.autoformatter="yapf"`` to re-enable auto formating
280 306 with black, or switch to yapf.
281 307
282 308 - Fix and issue where ``display`` was not defined.
283 309
284 310 - Auto suggestions are now configurable. Currently only
285 311 ``AutoSuggestFromHistory`` (default) and ``None``. new provider contribution
286 312 welcomed. :ghpull:`13475`
287 313
288 314 - multiple packaging/testing improvement to simplify downstream packaging
289 315 (xfail with reasons, try to not access network...).
290 316
291 317 - Update deprecation. ``InteractiveShell.magic`` internal method has been
292 318 deprecated for many years but did not emit a warning until now.
293 319
294 320 - internal ``appended_to_syspath`` context manager has been deprecated.
295 321
296 322 - fix an issue with symlinks in virtualenv :ghpull:`13537` (Reverted in 8.1.1)
297 323
298 324 - Fix an issue with vim mode, where cursor would not be reset on exit :ghpull:`13472`
299 325
300 326 - ipython directive now remove only known pseudo-decorators :ghpull:`13532`
301 327
302 328 - ``IPython/lib/security`` which used to be used for jupyter notebook has been
303 329 removed.
304 330
305 331 - Fix an issue where ``async with`` would execute on new lines. :ghpull:`13436`
306 332
307 333
308 334 We want to remind users that IPython is part of the Jupyter organisations, and
309 335 thus governed by a Code of Conduct. Some of the behavior we have seen on GitHub is not acceptable.
310 336 Abuse and non-respectful comments on discussion will not be tolerated.
311 337
312 338 Many thanks to all the contributors to this release, many of the above fixed issue and
313 339 new features where done by first time contributors, showing there is still
314 340 plenty of easy contribution possible in IPython
315 341 . You can find all individual contributions
316 342 to this milestone `on github <https://github.com/ipython/ipython/milestone/91>`__.
317 343
318 344 Thanks as well to the `D. E. Shaw group <https://deshaw.com/>`__ for sponsoring
319 345 work on IPython and related libraries. In particular the Lazy autoloading of
320 346 magics that you will find described in the 7.32 release notes.
321 347
322 348
323 349 .. _version 8.0.1:
324 350
325 351 IPython 8.0.1 (CVE-2022-21699)
326 352 ------------------------------
327 353
328 354 IPython 8.0.1, 7.31.1 and 5.11 are security releases that change some default
329 355 values in order to prevent potential Execution with Unnecessary Privileges.
330 356
331 357 Almost all version of IPython looks for configuration and profiles in current
332 358 working directory. Since IPython was developed before pip and environments
333 359 existed it was used a convenient way to load code/packages in a project
334 360 dependant way.
335 361
336 362 In 2022, it is not necessary anymore, and can lead to confusing behavior where
337 363 for example cloning a repository and starting IPython or loading a notebook from
338 364 any Jupyter-Compatible interface that has ipython set as a kernel can lead to
339 365 code execution.
340 366
341 367
342 368 I did not find any standard way for packaged to advertise CVEs they fix, I'm
343 369 thus trying to add a ``__patched_cves__`` attribute to the IPython module that
344 370 list the CVEs that should have been fixed. This attribute is informational only
345 371 as if a executable has a flaw, this value can always be changed by an attacker.
346 372
347 373 .. code::
348 374
349 375 In [1]: import IPython
350 376
351 377 In [2]: IPython.__patched_cves__
352 378 Out[2]: {'CVE-2022-21699'}
353 379
354 380 In [3]: 'CVE-2022-21699' in IPython.__patched_cves__
355 381 Out[3]: True
356 382
357 383 Thus starting with this version:
358 384
359 385 - The current working directory is not searched anymore for profiles or
360 386 configurations files.
361 387 - Added a ``__patched_cves__`` attribute (set of strings) to IPython module that contain
362 388 the list of fixed CVE. This is informational only.
363 389
364 390 Further details can be read on the `GitHub Advisory <https://github.com/ipython/ipython/security/advisories/GHSA-pq7m-3gw7-gq5x>`__
365 391
366 392
367 393 .. _version 8.0:
368 394
369 395 IPython 8.0
370 396 -----------
371 397
372 398 IPython 8.0 is bringing a large number of new features and improvements to both the
373 399 user of the terminal and of the kernel via Jupyter. The removal of compatibility
374 400 with older version of Python is also the opportunity to do a couple of
375 401 performance improvements in particular with respect to startup time.
376 402 The 8.x branch started diverging from its predecessor around IPython 7.12
377 403 (January 2020).
378 404
379 405 This release contains 250+ pull requests, in addition to many of the features
380 406 and backports that have made it to the 7.x branch. Please see the
381 407 `8.0 milestone <https://github.com/ipython/ipython/milestone/73?closed=1>`__ for the full list of pull requests.
382 408
383 409 Please feel free to send pull requests to updates those notes after release,
384 410 I have likely forgotten a few things reviewing 250+ PRs.
385 411
386 412 Dependencies changes/downstream packaging
387 413 -----------------------------------------
388 414
389 415 Most of our building steps have been changed to be (mostly) declarative
390 416 and follow PEP 517. We are trying to completely remove ``setup.py`` (:ghpull:`13238`) and are
391 417 looking for help to do so.
392 418
393 419 - minimum supported ``traitlets`` version is now 5+
394 420 - we now require ``stack_data``
395 421 - minimal Python is now 3.8
396 422 - ``nose`` is not a testing requirement anymore
397 423 - ``pytest`` replaces nose.
398 424 - ``iptest``/``iptest3`` cli entrypoints do not exists anymore.
399 425 - minimum officially support ``numpy`` version has been bumped, but this should
400 426 not have much effect on packaging.
401 427
402 428
403 429 Deprecation and removal
404 430 -----------------------
405 431
406 432 We removed almost all features, arguments, functions, and modules that were
407 433 marked as deprecated between IPython 1.0 and 5.0. As a reminder, 5.0 was released
408 434 in 2016, and 1.0 in 2013. Last release of the 5 branch was 5.10.0, in May 2020.
409 435 The few remaining deprecated features we left have better deprecation warnings
410 436 or have been turned into explicit errors for better error messages.
411 437
412 438 I will use this occasion to add the following requests to anyone emitting a
413 439 deprecation warning:
414 440
415 441 - Please add at least ``stacklevel=2`` so that the warning is emitted into the
416 442 caller context, and not the callee one.
417 443 - Please add **since which version** something is deprecated.
418 444
419 445 As a side note, it is much easier to conditionally compare version
420 446 numbers rather than using ``try/except`` when functionality changes with a version.
421 447
422 448 I won't list all the removed features here, but modules like ``IPython.kernel``,
423 449 which was just a shim module around ``ipykernel`` for the past 8 years, have been
424 450 removed, and so many other similar things that pre-date the name **Jupyter**
425 451 itself.
426 452
427 453 We no longer need to add ``IPython.extensions`` to the PYTHONPATH because that is being
428 454 handled by ``load_extension``.
429 455
430 456 We are also removing ``Cythonmagic``, ``sympyprinting`` and ``rmagic`` as they are now in
431 457 other packages and no longer need to be inside IPython.
432 458
433 459
434 460 Documentation
435 461 -------------
436 462
437 463 The majority of our docstrings have now been reformatted and automatically fixed by
438 464 the experimental `VΓ©lin <https://pypi.org/project/velin/>`_ project to conform
439 465 to numpydoc.
440 466
441 467 Type annotations
442 468 ----------------
443 469
444 470 While IPython itself is highly dynamic and can't be completely typed, many of
445 471 the functions now have type annotations, and part of the codebase is now checked
446 472 by mypy.
447 473
448 474
449 475 Featured changes
450 476 ----------------
451 477
452 478 Here is a features list of changes in IPython 8.0. This is of course non-exhaustive.
453 479 Please note as well that many features have been added in the 7.x branch as well
454 480 (and hence why you want to read the 7.x what's new notes), in particular
455 481 features contributed by QuantStack (with respect to debugger protocol and Xeus
456 482 Python), as well as many debugger features that I was pleased to implement as
457 483 part of my work at QuanSight and sponsored by DE Shaw.
458 484
459 485 Traceback improvements
460 486 ~~~~~~~~~~~~~~~~~~~~~~
461 487
462 488 Previously, error tracebacks for errors happening in code cells were showing a
463 489 hash, the one used for compiling the Python AST::
464 490
465 491 In [1]: def foo():
466 492 ...: return 3 / 0
467 493 ...:
468 494
469 495 In [2]: foo()
470 496 ---------------------------------------------------------------------------
471 497 ZeroDivisionError Traceback (most recent call last)
472 498 <ipython-input-2-c19b6d9633cf> in <module>
473 499 ----> 1 foo()
474 500
475 501 <ipython-input-1-1595a74c32d5> in foo()
476 502 1 def foo():
477 503 ----> 2 return 3 / 0
478 504 3
479 505
480 506 ZeroDivisionError: division by zero
481 507
482 508 The error traceback is now correctly formatted, showing the cell number in which the error happened::
483 509
484 510 In [1]: def foo():
485 511 ...: return 3 / 0
486 512 ...:
487 513
488 514 Input In [2]: foo()
489 515 ---------------------------------------------------------------------------
490 516 ZeroDivisionError Traceback (most recent call last)
491 517 input In [2], in <module>
492 518 ----> 1 foo()
493 519
494 520 Input In [1], in foo()
495 521 1 def foo():
496 522 ----> 2 return 3 / 0
497 523
498 524 ZeroDivisionError: division by zero
499 525
500 526 The ``stack_data`` package has been integrated, which provides smarter information in the traceback;
501 527 in particular it will highlight the AST node where an error occurs which can help to quickly narrow down errors.
502 528
503 529 For example in the following snippet::
504 530
505 531 def foo(i):
506 532 x = [[[0]]]
507 533 return x[0][i][0]
508 534
509 535
510 536 def bar():
511 537 return foo(0) + foo(
512 538 1
513 539 ) + foo(2)
514 540
515 541
516 542 calling ``bar()`` would raise an ``IndexError`` on the return line of ``foo``,
517 543 and IPython 8.0 is capable of telling you where the index error occurs::
518 544
519 545
520 546 IndexError
521 547 Input In [2], in <module>
522 548 ----> 1 bar()
523 549 ^^^^^
524 550
525 551 Input In [1], in bar()
526 552 6 def bar():
527 553 ----> 7 return foo(0) + foo(
528 554 ^^^^
529 555 8 1
530 556 ^^^^^^^^
531 557 9 ) + foo(2)
532 558 ^^^^
533 559
534 560 Input In [1], in foo(i)
535 561 1 def foo(i):
536 562 2 x = [[[0]]]
537 563 ----> 3 return x[0][i][0]
538 564 ^^^^^^^
539 565
540 566 The corresponding locations marked here with ``^`` will show up highlighted in
541 567 the terminal and notebooks.
542 568
543 569 Finally, a colon ``::`` and line number is appended after a filename in
544 570 traceback::
545 571
546 572
547 573 ZeroDivisionError Traceback (most recent call last)
548 574 File ~/error.py:4, in <module>
549 575 1 def f():
550 576 2 1/0
551 577 ----> 4 f()
552 578
553 579 File ~/error.py:2, in f()
554 580 1 def f():
555 581 ----> 2 1/0
556 582
557 583 Many terminals and editors have integrations enabling you to directly jump to the
558 584 relevant file/line when this syntax is used, so this small addition may have a high
559 585 impact on productivity.
560 586
561 587
562 588 Autosuggestions
563 589 ~~~~~~~~~~~~~~~
564 590
565 591 Autosuggestion is a very useful feature available in `fish <https://fishshell.com/>`__, `zsh <https://en.wikipedia.org/wiki/Z_shell>`__, and `prompt-toolkit <https://python-prompt-toolkit.readthedocs.io/en/master/pages/asking_for_input.html#auto-suggestion>`__.
566 592
567 593 `Ptpython <https://github.com/prompt-toolkit/ptpython#ptpython>`__ allows users to enable this feature in
568 594 `ptpython/config.py <https://github.com/prompt-toolkit/ptpython/blob/master/examples/ptpython_config/config.py#L90>`__.
569 595
570 596 This feature allows users to accept autosuggestions with ctrl e, ctrl f,
571 597 or right arrow as described below.
572 598
573 599 1. Start ipython
574 600
575 601 .. image:: ../_images/8.0/auto_suggest_1_prompt_no_text.png
576 602
577 603 2. Run ``print("hello")``
578 604
579 605 .. image:: ../_images/8.0/auto_suggest_2_print_hello_suggest.png
580 606
581 607 3. start typing ``print`` again to see the autosuggestion
582 608
583 609 .. image:: ../_images/8.0/auto_suggest_3_print_hello_suggest.png
584 610
585 611 4. Press ``ctrl-f``, or ``ctrl-e``, or ``right-arrow`` to accept the suggestion
586 612
587 613 .. image:: ../_images/8.0/auto_suggest_4_print_hello.png
588 614
589 615 You can also complete word by word:
590 616
591 617 1. Run ``def say_hello(): print("hello")``
592 618
593 619 .. image:: ../_images/8.0/auto_suggest_second_prompt.png
594 620
595 621 2. Start typing the first letter if ``def`` to see the autosuggestion
596 622
597 623 .. image:: ../_images/8.0/auto_suggest_d_phantom.png
598 624
599 625 3. Press ``alt-f`` (or ``escape`` followed by ``f``), to accept the first word of the suggestion
600 626
601 627 .. image:: ../_images/8.0/auto_suggest_def_phantom.png
602 628
603 629 Importantly, this feature does not interfere with tab completion:
604 630
605 631 1. After running ``def say_hello(): print("hello")``, press d
606 632
607 633 .. image:: ../_images/8.0/auto_suggest_d_phantom.png
608 634
609 635 2. Press Tab to start tab completion
610 636
611 637 .. image:: ../_images/8.0/auto_suggest_d_completions.png
612 638
613 639 3A. Press Tab again to select the first option
614 640
615 641 .. image:: ../_images/8.0/auto_suggest_def_completions.png
616 642
617 643 3B. Press ``alt f`` (``escape``, ``f``) to accept to accept the first word of the suggestion
618 644
619 645 .. image:: ../_images/8.0/auto_suggest_def_phantom.png
620 646
621 647 3C. Press ``ctrl-f`` or ``ctrl-e`` to accept the entire suggestion
622 648
623 649 .. image:: ../_images/8.0/auto_suggest_match_parens.png
624 650
625 651
626 652 Currently, autosuggestions are only shown in the emacs or vi insert editing modes:
627 653
628 654 - The ctrl e, ctrl f, and alt f shortcuts work by default in emacs mode.
629 655 - To use these shortcuts in vi insert mode, you will have to create `custom keybindings in your config.py <https://github.com/mskar/setup/commit/2892fcee46f9f80ef7788f0749edc99daccc52f4/>`__.
630 656
631 657
632 658 Show pinfo information in ipdb using "?" and "??"
633 659 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
634 660
635 661 In IPDB, it is now possible to show the information about an object using "?"
636 662 and "??", in much the same way that it can be done when using the IPython prompt::
637 663
638 664 ipdb> partial?
639 665 Init signature: partial(self, /, *args, **kwargs)
640 666 Docstring:
641 667 partial(func, *args, **keywords) - new function with partial application
642 668 of the given arguments and keywords.
643 669 File: ~/.pyenv/versions/3.8.6/lib/python3.8/functools.py
644 670 Type: type
645 671 Subclasses:
646 672
647 673 Previously, ``pinfo`` or ``pinfo2`` command had to be used for this purpose.
648 674
649 675
650 676 Autoreload 3 feature
651 677 ~~~~~~~~~~~~~~~~~~~~
652 678
653 679 Example: When an IPython session is run with the 'autoreload' extension loaded,
654 680 you will now have the option '3' to select, which means the following:
655 681
656 682 1. replicate all functionality from option 2
657 683 2. autoload all new funcs/classes/enums/globals from the module when they are added
658 684 3. autoload all newly imported funcs/classes/enums/globals from external modules
659 685
660 686 Try ``%autoreload 3`` in an IPython session after running ``%load_ext autoreload``.
661 687
662 688 For more information please see the following unit test : ``extensions/tests/test_autoreload.py:test_autoload_newly_added_objects``
663 689
664 690 Auto formatting with black in the CLI
665 691 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
666 692
667 693 This feature was present in 7.x, but disabled by default.
668 694
669 695 In 8.0, input was automatically reformatted with Black when black was installed.
670 696 This feature has been reverted for the time being.
671 697 You can re-enable it by setting ``TerminalInteractiveShell.autoformatter`` to ``"black"``
672 698
673 699 History Range Glob feature
674 700 ~~~~~~~~~~~~~~~~~~~~~~~~~~
675 701
676 702 Previously, when using ``%history``, users could specify either
677 703 a range of sessions and lines, for example:
678 704
679 705 .. code-block:: python
680 706
681 707 ~8/1-~6/5 # see history from the first line of 8 sessions ago,
682 708 # to the fifth line of 6 sessions ago.``
683 709
684 710 Or users could specify a glob pattern:
685 711
686 712 .. code-block:: python
687 713
688 714 -g <pattern> # glob ALL history for the specified pattern.
689 715
690 716 However users could *not* specify both.
691 717
692 718 If a user *did* specify both a range and a glob pattern,
693 719 then the glob pattern would be used (globbing *all* history) *and the range would be ignored*.
694 720
695 721 With this enhancement, if a user specifies both a range and a glob pattern, then the glob pattern will be applied to the specified range of history.
696 722
697 723 Don't start a multi-line cell with sunken parenthesis
698 724 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
699 725
700 726 From now on, IPython will not ask for the next line of input when given a single
701 727 line with more closing than opening brackets. For example, this means that if
702 728 you (mis)type ``]]`` instead of ``[]``, a ``SyntaxError`` will show up, instead of
703 729 the ``...:`` prompt continuation.
704 730
705 731 IPython shell for ipdb interact
706 732 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
707 733
708 734 The ipdb ``interact`` starts an IPython shell instead of Python's built-in ``code.interact()``.
709 735
710 736 Automatic Vi prompt stripping
711 737 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
712 738
713 739 When pasting code into IPython, it will strip the leading prompt characters if
714 740 there are any. For example, you can paste the following code into the console -
715 741 it will still work, even though each line is prefixed with prompts (``In``,
716 742 ``Out``)::
717 743
718 744 In [1]: 2 * 2 == 4
719 745 Out[1]: True
720 746
721 747 In [2]: print("This still works as pasted")
722 748
723 749
724 750 Previously, this was not the case for the Vi-mode prompts::
725 751
726 752 In [1]: [ins] In [13]: 2 * 2 == 4
727 753 ...: Out[13]: True
728 754 ...:
729 755 File "<ipython-input-1-727bb88eaf33>", line 1
730 756 [ins] In [13]: 2 * 2 == 4
731 757 ^
732 758 SyntaxError: invalid syntax
733 759
734 760 This is now fixed, and Vi prompt prefixes - ``[ins]`` and ``[nav]`` - are
735 761 skipped just as the normal ``In`` would be.
736 762
737 763 IPython shell can be started in the Vi mode using ``ipython --TerminalInteractiveShell.editing_mode=vi``,
738 764 You should be able to change mode dynamically with ``%config TerminalInteractiveShell.editing_mode='vi'``
739 765
740 766 Empty History Ranges
741 767 ~~~~~~~~~~~~~~~~~~~~
742 768
743 769 A number of magics that take history ranges can now be used with an empty
744 770 range. These magics are:
745 771
746 772 * ``%save``
747 773 * ``%load``
748 774 * ``%pastebin``
749 775 * ``%pycat``
750 776
751 777 Using them this way will make them take the history of the current session up
752 778 to the point of the magic call (such that the magic itself will not be
753 779 included).
754 780
755 781 Therefore it is now possible to save the whole history to a file using
756 782 ``%save <filename>``, load and edit it using ``%load`` (makes for a nice usage
757 783 when followed with :kbd:`F2`), send it to `dpaste.org <http://dpast.org>`_ using
758 784 ``%pastebin``, or view the whole thing syntax-highlighted with a single
759 785 ``%pycat``.
760 786
761 787
762 788 Windows timing implementation: Switch to process_time
763 789 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
764 790 Timing on Windows, for example with ``%%time``, was changed from being based on ``time.perf_counter``
765 791 (which counted time even when the process was sleeping) to being based on ``time.process_time`` instead
766 792 (which only counts CPU time). This brings it closer to the behavior on Linux. See :ghpull:`12984`.
767 793
768 794 Miscellaneous
769 795 ~~~~~~~~~~~~~
770 796 - Non-text formatters are not disabled in the terminal, which should simplify
771 797 writing extensions displaying images or other mimetypes in supporting terminals.
772 798 :ghpull:`12315`
773 799 - It is now possible to automatically insert matching brackets in Terminal IPython using the
774 800 ``TerminalInteractiveShell.auto_match=True`` option. :ghpull:`12586`
775 801 - We are thinking of deprecating the current ``%%javascript`` magic in favor of a better replacement. See :ghpull:`13376`.
776 802 - ``~`` is now expanded when part of a path in most magics :ghpull:`13385`
777 803 - ``%/%%timeit`` magic now adds a comma every thousands to make reading a long number easier :ghpull:`13379`
778 804 - ``"info"`` messages can now be customised to hide some fields :ghpull:`13343`
779 805 - ``collections.UserList`` now pretty-prints :ghpull:`13320`
780 806 - The debugger now has a persistent history, which should make it less
781 807 annoying to retype commands :ghpull:`13246`
782 808 - ``!pip`` ``!conda`` ``!cd`` or ``!ls`` are likely doing the wrong thing. We
783 809 now warn users if they use one of those commands. :ghpull:`12954`
784 810 - Make ``%precision`` work for ``numpy.float64`` type :ghpull:`12902`
785 811
786 812 Re-added support for XDG config directories
787 813 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
788 814
789 815 XDG support through the years comes and goes. There is a tension between having
790 816 an identical location for configuration in all platforms versus having simple instructions.
791 817 After initial failures a couple of years ago, IPython was modified to automatically migrate XDG
792 818 config files back into ``~/.ipython``. That migration code has now been removed.
793 819 IPython now checks the XDG locations, so if you _manually_ move your config
794 820 files to your preferred location, IPython will not move them back.
795 821
796 822
797 823 Preparing for Python 3.10
798 824 -------------------------
799 825
800 826 To prepare for Python 3.10, we have started working on removing reliance and
801 827 any dependency that is not compatible with Python 3.10. This includes migrating our
802 828 test suite to pytest and starting to remove nose. This also means that the
803 829 ``iptest`` command is now gone and all testing is via pytest.
804 830
805 831 This was in large part thanks to the NumFOCUS Small Developer grant, which enabled us to
806 832 allocate \$4000 to hire `Nikita Kniazev (@Kojoley) <https://github.com/Kojoley>`_,
807 833 who did a fantastic job at updating our code base, migrating to pytest, pushing
808 834 our coverage, and fixing a large number of bugs. I highly recommend contacting
809 835 them if you need help with C++ and Python projects.
810 836
811 837 You can find all relevant issues and PRs with `the SDG 2021 tag <https://github.com/ipython/ipython/issues?q=label%3A%22Numfocus+SDG+2021%22+>`__
812 838
813 839 Removing support for older Python versions
814 840 ------------------------------------------
815 841
816 842
817 843 We are removing support for Python up through 3.7, allowing internal code to use the more
818 844 efficient ``pathlib`` and to make better use of type annotations.
819 845
820 846 .. image:: ../_images/8.0/pathlib_pathlib_everywhere.jpg
821 847 :alt: "Meme image of Toy Story with Woody and Buzz, with the text 'pathlib, pathlib everywhere'"
822 848
823 849
824 850 We had about 34 PRs only to update some logic to update some functions from managing strings to
825 851 using Pathlib.
826 852
827 853 The completer has also seen significant updates and now makes use of newer Jedi APIs,
828 854 offering faster and more reliable tab completion.
829 855
830 856 Misc Statistics
831 857 ---------------
832 858
833 859 Here are some numbers::
834 860
835 861 7.x: 296 files, 12561 blank lines, 20282 comments, 35142 line of code.
836 862 8.0: 252 files, 12053 blank lines, 19232 comments, 34505 line of code.
837 863
838 864 $ git diff --stat 7.x...master | tail -1
839 865 340 files changed, 13399 insertions(+), 12421 deletions(-)
840 866
841 867 We have commits from 162 authors, who contributed 1916 commits in 23 month, excluding merges (to not bias toward
842 868 maintainers pushing buttons).::
843 869
844 870 $ git shortlog -s --no-merges 7.x...master | sort -nr
845 871 535 Matthias Bussonnier
846 872 86 Nikita Kniazev
847 873 69 Blazej Michalik
848 874 49 Samuel Gaist
849 875 27 Itamar Turner-Trauring
850 876 18 Spas Kalaydzhisyki
851 877 17 Thomas Kluyver
852 878 17 Quentin Peter
853 879 17 James Morris
854 880 17 Artur Svistunov
855 881 15 Bart Skowron
856 882 14 Alex Hall
857 883 13 rushabh-v
858 884 13 Terry Davis
859 885 13 Benjamin Ragan-Kelley
860 886 8 martinRenou
861 887 8 farisachugthai
862 888 7 dswij
863 889 7 Gal B
864 890 7 Corentin Cadiou
865 891 6 yuji96
866 892 6 Martin Skarzynski
867 893 6 Justin Palmer
868 894 6 Daniel Goldfarb
869 895 6 Ben Greiner
870 896 5 Sammy Al Hashemi
871 897 5 Paul Ivanov
872 898 5 Inception95
873 899 5 Eyenpi
874 900 5 Douglas Blank
875 901 5 Coco Mishra
876 902 5 Bibo Hao
877 903 5 AndrΓ© A. Gomes
878 904 5 Ahmed Fasih
879 905 4 takuya fujiwara
880 906 4 palewire
881 907 4 Thomas A Caswell
882 908 4 Talley Lambert
883 909 4 Scott Sanderson
884 910 4 Ram Rachum
885 911 4 Nick Muoh
886 912 4 Nathan Goldbaum
887 913 4 Mithil Poojary
888 914 4 Michael T
889 915 4 Jakub Klus
890 916 4 Ian Castleden
891 917 4 Eli Rykoff
892 918 4 Ashwin Vishnu
893 919 3 谭九鼎
894 920 3 sleeping
895 921 3 Sylvain Corlay
896 922 3 Peter Corke
897 923 3 Paul Bissex
898 924 3 Matthew Feickert
899 925 3 Fernando Perez
900 926 3 Eric Wieser
901 927 3 Daniel Mietchen
902 928 3 Aditya Sathe
903 929 3 007vedant
904 930 2 rchiodo
905 931 2 nicolaslazo
906 932 2 luttik
907 933 2 gorogoroumaru
908 934 2 foobarbyte
909 935 2 bar-hen
910 936 2 Theo Ouzhinski
911 937 2 Strawkage
912 938 2 Samreen Zarroug
913 939 2 Pete Blois
914 940 2 Meysam Azad
915 941 2 Matthieu Ancellin
916 942 2 Mark Schmitz
917 943 2 Maor Kleinberger
918 944 2 MRCWirtz
919 945 2 Lumir Balhar
920 946 2 Julien Rabinow
921 947 2 Juan Luis Cano RodrΓ­guez
922 948 2 Joyce Er
923 949 2 Jakub
924 950 2 Faris A Chugthai
925 951 2 Ethan Madden
926 952 2 Dimitri Papadopoulos
927 953 2 Diego Fernandez
928 954 2 Daniel Shimon
929 955 2 Coco Bennett
930 956 2 Carlos Cordoba
931 957 2 Boyuan Liu
932 958 2 BaoGiang HoangVu
933 959 2 Augusto
934 960 2 Arthur Svistunov
935 961 2 Arthur Moreira
936 962 2 Ali Nabipour
937 963 2 Adam Hackbarth
938 964 1 richard
939 965 1 linar-jether
940 966 1 lbennett
941 967 1 juacrumar
942 968 1 gpotter2
943 969 1 digitalvirtuoso
944 970 1 dalthviz
945 971 1 Yonatan Goldschmidt
946 972 1 Tomasz KΕ‚oczko
947 973 1 Tobias Bengfort
948 974 1 Timur Kushukov
949 975 1 Thomas
950 976 1 Snir Broshi
951 977 1 Shao Yang Hong
952 978 1 Sanjana-03
953 979 1 Romulo Filho
954 980 1 Rodolfo Carvalho
955 981 1 Richard Shadrach
956 982 1 Reilly Tucker Siemens
957 983 1 Rakessh Roshan
958 984 1 Piers Titus van der Torren
959 985 1 PhanatosZou
960 986 1 Pavel Safronov
961 987 1 Paulo S. Costa
962 988 1 Paul McCarthy
963 989 1 NotWearingPants
964 990 1 Naelson Douglas
965 991 1 Michael Tiemann
966 992 1 Matt Wozniski
967 993 1 Markus Wageringel
968 994 1 Marcus Wirtz
969 995 1 Marcio Mazza
970 996 1 LumΓ­r 'Frenzy' Balhar
971 997 1 Lightyagami1
972 998 1 Leon Anavi
973 999 1 LeafyLi
974 1000 1 L0uisJ0shua
975 1001 1 Kyle Cutler
976 1002 1 Krzysztof Cybulski
977 1003 1 Kevin Kirsche
978 1004 1 KIU Shueng Chuan
979 1005 1 Jonathan Slenders
980 1006 1 Jay Qi
981 1007 1 Jake VanderPlas
982 1008 1 Iwan Briquemont
983 1009 1 Hussaina Begum Nandyala
984 1010 1 Gordon Ball
985 1011 1 Gabriel Simonetto
986 1012 1 Frank Tobia
987 1013 1 Erik
988 1014 1 Elliott Sales de Andrade
989 1015 1 Daniel Hahler
990 1016 1 Dan Green-Leipciger
991 1017 1 Dan Green
992 1018 1 Damian Yurzola
993 1019 1 Coon, Ethan T
994 1020 1 Carol Willing
995 1021 1 Brian Lee
996 1022 1 Brendan Gerrity
997 1023 1 Blake Griffin
998 1024 1 Bastian Ebeling
999 1025 1 Bartosz Telenczuk
1000 1026 1 Ankitsingh6299
1001 1027 1 Andrew Port
1002 1028 1 Andrew J. Hesford
1003 1029 1 Albert Zhang
1004 1030 1 Adam Johnson
1005 1031
1006 1032 This does not, of course, represent non-code contributions, for which we are also grateful.
1007 1033
1008 1034
1009 1035 API Changes using Frappuccino
1010 1036 -----------------------------
1011 1037
1012 1038 This is an experimental exhaustive API difference using `Frappuccino <https://pypi.org/project/frappuccino/>`_
1013 1039
1014 1040
1015 1041 The following items are new in IPython 8.0 ::
1016 1042
1017 1043 + IPython.core.async_helpers.get_asyncio_loop()
1018 1044 + IPython.core.completer.Dict
1019 1045 + IPython.core.completer.Pattern
1020 1046 + IPython.core.completer.Sequence
1021 1047 + IPython.core.completer.__skip_doctest__
1022 1048 + IPython.core.debugger.Pdb.precmd(self, line)
1023 1049 + IPython.core.debugger.__skip_doctest__
1024 1050 + IPython.core.display.__getattr__(name)
1025 1051 + IPython.core.display.warn
1026 1052 + IPython.core.display_functions
1027 1053 + IPython.core.display_functions.DisplayHandle
1028 1054 + IPython.core.display_functions.DisplayHandle.display(self, obj, **kwargs)
1029 1055 + IPython.core.display_functions.DisplayHandle.update(self, obj, **kwargs)
1030 1056 + IPython.core.display_functions.__all__
1031 1057 + IPython.core.display_functions.__builtins__
1032 1058 + IPython.core.display_functions.__cached__
1033 1059 + IPython.core.display_functions.__doc__
1034 1060 + IPython.core.display_functions.__file__
1035 1061 + IPython.core.display_functions.__loader__
1036 1062 + IPython.core.display_functions.__name__
1037 1063 + IPython.core.display_functions.__package__
1038 1064 + IPython.core.display_functions.__spec__
1039 1065 + IPython.core.display_functions.b2a_hex
1040 1066 + IPython.core.display_functions.clear_output(wait=False)
1041 1067 + IPython.core.display_functions.display(*objs, include='None', exclude='None', metadata='None', transient='None', display_id='None', raw=False, clear=False, **kwargs)
1042 1068 + IPython.core.display_functions.publish_display_data(data, metadata='None', source='<deprecated>', *, transient='None', **kwargs)
1043 1069 + IPython.core.display_functions.update_display(obj, *, display_id, **kwargs)
1044 1070 + IPython.core.extensions.BUILTINS_EXTS
1045 1071 + IPython.core.inputtransformer2.has_sunken_brackets(tokens)
1046 1072 + IPython.core.interactiveshell.Callable
1047 1073 + IPython.core.interactiveshell.__annotations__
1048 1074 + IPython.core.ultratb.List
1049 1075 + IPython.core.ultratb.Tuple
1050 1076 + IPython.lib.pretty.CallExpression
1051 1077 + IPython.lib.pretty.CallExpression.factory(name)
1052 1078 + IPython.lib.pretty.RawStringLiteral
1053 1079 + IPython.lib.pretty.RawText
1054 1080 + IPython.terminal.debugger.TerminalPdb.do_interact(self, arg)
1055 1081 + IPython.terminal.embed.Set
1056 1082
1057 1083 The following items have been removed (or moved to superclass)::
1058 1084
1059 1085 - IPython.core.application.BaseIPythonApplication.initialize_subcommand
1060 1086 - IPython.core.completer.Sentinel
1061 1087 - IPython.core.completer.skip_doctest
1062 1088 - IPython.core.debugger.Tracer
1063 1089 - IPython.core.display.DisplayHandle
1064 1090 - IPython.core.display.DisplayHandle.display
1065 1091 - IPython.core.display.DisplayHandle.update
1066 1092 - IPython.core.display.b2a_hex
1067 1093 - IPython.core.display.clear_output
1068 1094 - IPython.core.display.display
1069 1095 - IPython.core.display.publish_display_data
1070 1096 - IPython.core.display.update_display
1071 1097 - IPython.core.excolors.Deprec
1072 1098 - IPython.core.excolors.ExceptionColors
1073 1099 - IPython.core.history.warn
1074 1100 - IPython.core.hooks.late_startup_hook
1075 1101 - IPython.core.hooks.pre_run_code_hook
1076 1102 - IPython.core.hooks.shutdown_hook
1077 1103 - IPython.core.interactiveshell.InteractiveShell.init_deprecation_warnings
1078 1104 - IPython.core.interactiveshell.InteractiveShell.init_readline
1079 1105 - IPython.core.interactiveshell.InteractiveShell.write
1080 1106 - IPython.core.interactiveshell.InteractiveShell.write_err
1081 1107 - IPython.core.interactiveshell.get_default_colors
1082 1108 - IPython.core.interactiveshell.removed_co_newlocals
1083 1109 - IPython.core.magics.execution.ExecutionMagics.profile_missing_notice
1084 1110 - IPython.core.magics.script.PIPE
1085 1111 - IPython.core.prefilter.PrefilterManager.init_transformers
1086 1112 - IPython.core.release.classifiers
1087 1113 - IPython.core.release.description
1088 1114 - IPython.core.release.keywords
1089 1115 - IPython.core.release.long_description
1090 1116 - IPython.core.release.name
1091 1117 - IPython.core.release.platforms
1092 1118 - IPython.core.release.url
1093 1119 - IPython.core.ultratb.VerboseTB.format_records
1094 1120 - IPython.core.ultratb.find_recursion
1095 1121 - IPython.core.ultratb.findsource
1096 1122 - IPython.core.ultratb.fix_frame_records_filenames
1097 1123 - IPython.core.ultratb.inspect_error
1098 1124 - IPython.core.ultratb.is_recursion_error
1099 1125 - IPython.core.ultratb.with_patch_inspect
1100 1126 - IPython.external.__all__
1101 1127 - IPython.external.__builtins__
1102 1128 - IPython.external.__cached__
1103 1129 - IPython.external.__doc__
1104 1130 - IPython.external.__file__
1105 1131 - IPython.external.__loader__
1106 1132 - IPython.external.__name__
1107 1133 - IPython.external.__package__
1108 1134 - IPython.external.__path__
1109 1135 - IPython.external.__spec__
1110 1136 - IPython.kernel.KernelConnectionInfo
1111 1137 - IPython.kernel.__builtins__
1112 1138 - IPython.kernel.__cached__
1113 1139 - IPython.kernel.__warningregistry__
1114 1140 - IPython.kernel.pkg
1115 1141 - IPython.kernel.protocol_version
1116 1142 - IPython.kernel.protocol_version_info
1117 1143 - IPython.kernel.src
1118 1144 - IPython.kernel.version_info
1119 1145 - IPython.kernel.warn
1120 1146 - IPython.lib.backgroundjobs
1121 1147 - IPython.lib.backgroundjobs.BackgroundJobBase
1122 1148 - IPython.lib.backgroundjobs.BackgroundJobBase.run
1123 1149 - IPython.lib.backgroundjobs.BackgroundJobBase.traceback
1124 1150 - IPython.lib.backgroundjobs.BackgroundJobExpr
1125 1151 - IPython.lib.backgroundjobs.BackgroundJobExpr.call
1126 1152 - IPython.lib.backgroundjobs.BackgroundJobFunc
1127 1153 - IPython.lib.backgroundjobs.BackgroundJobFunc.call
1128 1154 - IPython.lib.backgroundjobs.BackgroundJobManager
1129 1155 - IPython.lib.backgroundjobs.BackgroundJobManager.flush
1130 1156 - IPython.lib.backgroundjobs.BackgroundJobManager.new
1131 1157 - IPython.lib.backgroundjobs.BackgroundJobManager.remove
1132 1158 - IPython.lib.backgroundjobs.BackgroundJobManager.result
1133 1159 - IPython.lib.backgroundjobs.BackgroundJobManager.status
1134 1160 - IPython.lib.backgroundjobs.BackgroundJobManager.traceback
1135 1161 - IPython.lib.backgroundjobs.__builtins__
1136 1162 - IPython.lib.backgroundjobs.__cached__
1137 1163 - IPython.lib.backgroundjobs.__doc__
1138 1164 - IPython.lib.backgroundjobs.__file__
1139 1165 - IPython.lib.backgroundjobs.__loader__
1140 1166 - IPython.lib.backgroundjobs.__name__
1141 1167 - IPython.lib.backgroundjobs.__package__
1142 1168 - IPython.lib.backgroundjobs.__spec__
1143 1169 - IPython.lib.kernel.__builtins__
1144 1170 - IPython.lib.kernel.__cached__
1145 1171 - IPython.lib.kernel.__doc__
1146 1172 - IPython.lib.kernel.__file__
1147 1173 - IPython.lib.kernel.__loader__
1148 1174 - IPython.lib.kernel.__name__
1149 1175 - IPython.lib.kernel.__package__
1150 1176 - IPython.lib.kernel.__spec__
1151 1177 - IPython.lib.kernel.__warningregistry__
1152 1178 - IPython.paths.fs_encoding
1153 1179 - IPython.terminal.debugger.DEFAULT_BUFFER
1154 1180 - IPython.terminal.debugger.cursor_in_leading_ws
1155 1181 - IPython.terminal.debugger.emacs_insert_mode
1156 1182 - IPython.terminal.debugger.has_selection
1157 1183 - IPython.terminal.debugger.vi_insert_mode
1158 1184 - IPython.terminal.interactiveshell.DISPLAY_BANNER_DEPRECATED
1159 1185 - IPython.terminal.ipapp.TerminalIPythonApp.parse_command_line
1160 1186 - IPython.testing.test
1161 1187 - IPython.utils.contexts.NoOpContext
1162 1188 - IPython.utils.io.IOStream
1163 1189 - IPython.utils.io.IOStream.close
1164 1190 - IPython.utils.io.IOStream.write
1165 1191 - IPython.utils.io.IOStream.writelines
1166 1192 - IPython.utils.io.__warningregistry__
1167 1193 - IPython.utils.io.atomic_writing
1168 1194 - IPython.utils.io.stderr
1169 1195 - IPython.utils.io.stdin
1170 1196 - IPython.utils.io.stdout
1171 1197 - IPython.utils.io.unicode_std_stream
1172 1198 - IPython.utils.path.get_ipython_cache_dir
1173 1199 - IPython.utils.path.get_ipython_dir
1174 1200 - IPython.utils.path.get_ipython_module_path
1175 1201 - IPython.utils.path.get_ipython_package_dir
1176 1202 - IPython.utils.path.locate_profile
1177 1203 - IPython.utils.path.unquote_filename
1178 1204 - IPython.utils.py3compat.PY2
1179 1205 - IPython.utils.py3compat.PY3
1180 1206 - IPython.utils.py3compat.buffer_to_bytes
1181 1207 - IPython.utils.py3compat.builtin_mod_name
1182 1208 - IPython.utils.py3compat.cast_bytes
1183 1209 - IPython.utils.py3compat.getcwd
1184 1210 - IPython.utils.py3compat.isidentifier
1185 1211 - IPython.utils.py3compat.u_format
1186 1212
1187 1213 The following signatures differ between 7.x and 8.0::
1188 1214
1189 1215 - IPython.core.completer.IPCompleter.unicode_name_matches(self, text)
1190 1216 + IPython.core.completer.IPCompleter.unicode_name_matches(text)
1191 1217
1192 1218 - IPython.core.completer.match_dict_keys(keys, prefix, delims)
1193 1219 + IPython.core.completer.match_dict_keys(keys, prefix, delims, extra_prefix='None')
1194 1220
1195 1221 - IPython.core.interactiveshell.InteractiveShell.object_inspect_mime(self, oname, detail_level=0)
1196 1222 + IPython.core.interactiveshell.InteractiveShell.object_inspect_mime(self, oname, detail_level=0, omit_sections='()')
1197 1223
1198 1224 - IPython.core.interactiveshell.InteractiveShell.set_hook(self, name, hook, priority=50, str_key='None', re_key='None', _warn_deprecated=True)
1199 1225 + IPython.core.interactiveshell.InteractiveShell.set_hook(self, name, hook, priority=50, str_key='None', re_key='None')
1200 1226
1201 1227 - IPython.core.oinspect.Inspector.info(self, obj, oname='', formatter='None', info='None', detail_level=0)
1202 1228 + IPython.core.oinspect.Inspector.info(self, obj, oname='', info='None', detail_level=0)
1203 1229
1204 1230 - IPython.core.oinspect.Inspector.pinfo(self, obj, oname='', formatter='None', info='None', detail_level=0, enable_html_pager=True)
1205 1231 + IPython.core.oinspect.Inspector.pinfo(self, obj, oname='', formatter='None', info='None', detail_level=0, enable_html_pager=True, omit_sections='()')
1206 1232
1207 1233 - IPython.core.profiledir.ProfileDir.copy_config_file(self, config_file, path='None', overwrite=False)
1208 1234 + IPython.core.profiledir.ProfileDir.copy_config_file(self, config_file, path, overwrite=False)
1209 1235
1210 1236 - IPython.core.ultratb.VerboseTB.format_record(self, frame, file, lnum, func, lines, index)
1211 1237 + IPython.core.ultratb.VerboseTB.format_record(self, frame_info)
1212 1238
1213 1239 - IPython.terminal.embed.InteractiveShellEmbed.mainloop(self, local_ns='None', module='None', stack_depth=0, display_banner='None', global_ns='None', compile_flags='None')
1214 1240 + IPython.terminal.embed.InteractiveShellEmbed.mainloop(self, local_ns='None', module='None', stack_depth=0, compile_flags='None')
1215 1241
1216 1242 - IPython.terminal.embed.embed(**kwargs)
1217 1243 + IPython.terminal.embed.embed(*, header='', compile_flags='None', **kwargs)
1218 1244
1219 1245 - IPython.terminal.interactiveshell.TerminalInteractiveShell.interact(self, display_banner='<object object at 0xffffff>')
1220 1246 + IPython.terminal.interactiveshell.TerminalInteractiveShell.interact(self)
1221 1247
1222 1248 - IPython.terminal.interactiveshell.TerminalInteractiveShell.mainloop(self, display_banner='<object object at 0xffffff>')
1223 1249 + IPython.terminal.interactiveshell.TerminalInteractiveShell.mainloop(self)
1224 1250
1225 1251 - IPython.utils.path.get_py_filename(name, force_win32='None')
1226 1252 + IPython.utils.path.get_py_filename(name)
1227 1253
1228 1254 The following are new attributes (that might be inherited)::
1229 1255
1230 1256 + IPython.core.completer.IPCompleter.unicode_names
1231 1257 + IPython.core.debugger.InterruptiblePdb.precmd
1232 1258 + IPython.core.debugger.Pdb.precmd
1233 1259 + IPython.core.ultratb.AutoFormattedTB.has_colors
1234 1260 + IPython.core.ultratb.ColorTB.has_colors
1235 1261 + IPython.core.ultratb.FormattedTB.has_colors
1236 1262 + IPython.core.ultratb.ListTB.has_colors
1237 1263 + IPython.core.ultratb.SyntaxTB.has_colors
1238 1264 + IPython.core.ultratb.TBTools.has_colors
1239 1265 + IPython.core.ultratb.VerboseTB.has_colors
1240 1266 + IPython.terminal.debugger.TerminalPdb.do_interact
1241 1267 + IPython.terminal.debugger.TerminalPdb.precmd
1242 1268
1243 1269 The following attribute/methods have been removed::
1244 1270
1245 1271 - IPython.core.application.BaseIPythonApplication.deprecated_subcommands
1246 1272 - IPython.core.ultratb.AutoFormattedTB.format_records
1247 1273 - IPython.core.ultratb.ColorTB.format_records
1248 1274 - IPython.core.ultratb.FormattedTB.format_records
1249 1275 - IPython.terminal.embed.InteractiveShellEmbed.init_deprecation_warnings
1250 1276 - IPython.terminal.embed.InteractiveShellEmbed.init_readline
1251 1277 - IPython.terminal.embed.InteractiveShellEmbed.write
1252 1278 - IPython.terminal.embed.InteractiveShellEmbed.write_err
1253 1279 - IPython.terminal.interactiveshell.TerminalInteractiveShell.init_deprecation_warnings
1254 1280 - IPython.terminal.interactiveshell.TerminalInteractiveShell.init_readline
1255 1281 - IPython.terminal.interactiveshell.TerminalInteractiveShell.write
1256 1282 - IPython.terminal.interactiveshell.TerminalInteractiveShell.write_err
1257 1283 - IPython.terminal.ipapp.LocateIPythonApp.deprecated_subcommands
1258 1284 - IPython.terminal.ipapp.LocateIPythonApp.initialize_subcommand
1259 1285 - IPython.terminal.ipapp.TerminalIPythonApp.deprecated_subcommands
1260 1286 - IPython.terminal.ipapp.TerminalIPythonApp.initialize_subcommand
General Comments 0
You need to be logged in to leave comments. Login now