| 1 |
============ |
| 2 |
8.x Series |
| 3 |
============ |
| 4 |
|
| 5 |
.. _version 8.37: |
| 6 |
|
| 7 |
IPython 8.37 |
| 8 |
============ |
| 9 |
|
| 10 |
This release includes fixes for the tab completer and LLM completer backported from IPython 9.4: |
| 11 |
|
| 12 |
- :ghpull:`14910` Eliminate startup delay when LLM completion provider is configured |
| 13 |
- :ghpull:`14898` Fix attribute completion for expressions with comparison operators |
| 14 |
|
| 15 |
.. _version 8.36: |
| 16 |
|
| 17 |
IPython 8.36 |
| 18 |
============ |
| 19 |
|
| 20 |
This is a small release with minor changes in the context passed to the LLM completion |
| 21 |
provider and a fix for interruption of execution magics: |
| 22 |
|
| 23 |
- :ghpull:`14890` Fixed interruption of ``%%time`` and ``%%debug`` magics |
| 24 |
- :ghpull:`14877` Removed spurious empty lines from ``prefix`` passed to LLM, and separated part after cursor into the ``suffix`` |
| 25 |
|
| 26 |
.. _version 8.35: |
| 27 |
|
| 28 |
IPython 8.35 |
| 29 |
============ |
| 30 |
|
| 31 |
This small early April release includes a few backports of bug fixes for tab and LLM completions: |
| 32 |
|
| 33 |
- :ghpull:`14838` Fixed tab-completion of global variables in lines with a dot when jedi is off |
| 34 |
- :ghpull:`14846` Fixed LLM request number always being set to zero and removed spurious logging |
| 35 |
- :ghpull:`14851` Passes current input history to LLMs |
| 36 |
|
| 37 |
|
| 38 |
.. _version 8.34: |
| 39 |
|
| 40 |
IPython 8.34 |
| 41 |
============ |
| 42 |
|
| 43 |
This tiny beginning of March release included two bug fixes: |
| 44 |
|
| 45 |
- :ghpull:`14823` Fixed right arrow incorrectly accepting invisible auto-suggestions |
| 46 |
- :ghpull:`14828` Fixed Qt backend crash |
| 47 |
|
| 48 |
along with a backport of improved documentation and configurability of LLM completions. |
| 49 |
|
| 50 |
.. _version 8.33: |
| 51 |
|
| 52 |
IPython 8.33 |
| 53 |
============ |
| 54 |
|
| 55 |
This small end of February release included a few backports of bug fixes and minor enhancements: |
| 56 |
|
| 57 |
- :ghpull:`14717` Fixed auto-suggestion on Prompt Toolkit < 3.0.49 |
| 58 |
- :ghpull:`14738` Fixed Python 3.13 compatibility of ``local_ns`` |
| 59 |
- :ghpull:`14700` Improved Qt object management and performance |
| 60 |
- :ghpull:`14790` Better documentation and configurability of LLM completions |
| 61 |
|
| 62 |
|
| 63 |
.. _version 8.32: |
| 64 |
|
| 65 |
IPython 8.32 |
| 66 |
============ |
| 67 |
|
| 68 |
Medium release of IPython for this end of January and this new year 2025. |
| 69 |
This is now a different branch than the main branch, and will only accumulate |
| 70 |
bugfixes and small improvements and requested backports, while 9.0 forges ahead. |
| 71 |
|
| 72 |
|
| 73 |
We'll note 4 bugfixes and an and unstable preview feature. |
| 74 |
|
| 75 |
- :ghpull:`14640` Fixes an error were a warning about virtualenvs was incorrectly triggered. |
| 76 |
|
| 77 |
- :ghpull:`14684` Fixes an issue on Python 3.12+ with post mortem debugging. |
| 78 |
- :ghpull:`14693` Fixes a bug where magics were ignoring SIGINT |
| 79 |
- :ghpull:`14695` Fixes an issue where magics would not display all subprocess output. |
| 80 |
|
| 81 |
|
| 82 |
As a preview feature, look into the ``examples`` folder on how to configure |
| 83 |
autosuggestion using a large language model. This is not yet ready for |
| 84 |
production use, has only partial documentation and can change without warning, |
| 85 |
but should allow you to hook in a Jupyter-ai LLM provider to suggest code in the |
| 86 |
CLI (currently only via a keyboard shortcut). See :ghpull:`14623` for more details |
| 87 |
until further documentation is available in 9.0. |
| 88 |
|
| 89 |
|
| 90 |
As usual you can find the full list of PRs on GitHub under `the 8.32 |
| 91 |
<https://github.com/ipython/ipython/milestone/140?closed=1>`__ milestone. |
| 92 |
|
| 93 |
For something completely different |
| 94 |
---------------------------------- |
| 95 |
|
| 96 |
`Dora Rudolfine Richter <https://en.wikipedia.org/wiki/Dora_Richter>`__ |
| 97 |
1892–1966 was a German trans woman and the first known person to undergo |
| 98 |
complete male-to-female gender-affirming surgery. After fleeing Nazi Germany, |
| 99 |
she lived in Czechoslovakia where she obtained her full legal name change in |
| 100 |
April 1934. She moved back to Germany in 1946 with the expulsion of Germans from |
| 101 |
Czechoslovakia where she lived until her death at the age of 74 in April 1966. |
| 102 |
|
| 103 |
Thanks |
| 104 |
------ |
| 105 |
|
| 106 |
Thanks to everyone who helped with the 8.32 release and working toward 9.0. |
| 107 |
|
| 108 |
Thanks as well to the `D. E. Shaw group <https://deshaw.com/>`__ for sponsoring |
| 109 |
work on IPython and related libraries, in particular the work around LLM |
| 110 |
integration. |
| 111 |
|
| 112 |
.. _version 8.31: |
| 113 |
|
| 114 |
IPython 8.31 |
| 115 |
============ |
| 116 |
|
| 117 |
Small release for this end of December; This release contains only two notable changes: |
| 118 |
|
| 119 |
- :ghpull:`14594` Fix completion in tuples, where the completion was |
| 120 |
suggesting tuples methods instead of methods and attributes of the current |
| 121 |
element. |
| 122 |
- :ghpull:`14598` Fix pdb issue with Python 3.13.1, this fix is not perfect |
| 123 |
(see :ghissue:`14620`) but should be sufficient for now. |
| 124 |
|
| 125 |
|
| 126 |
As usual you can find the full list of PRs on GitHub under `the 8.31 |
| 127 |
<https://github.com/ipython/ipython/milestone/138?closed=1>`__ milestone. |
| 128 |
|
| 129 |
|
| 130 |
Road to 9.0 |
| 131 |
----------- |
| 132 |
|
| 133 |
The current main branch is now on it's way to be 9.0; do not expect many new |
| 134 |
features but a large codebase refactor, and cleanup with many deprecated code |
| 135 |
removed, and more aggressive codestyle enforcement. |
| 136 |
|
| 137 |
For something completely different |
| 138 |
---------------------------------- |
| 139 |
|
| 140 |
`Emmy Noether <https://en.wikipedia.org/wiki/Emmy_Noether>`__ was a German |
| 141 |
mathematician who made groundbreaking contributions to abstract algebra and |
| 142 |
theoretical physics. Her work on Noether's theorem, which describes the |
| 143 |
relationship between symmetries and conservation laws, has had a profound impact |
| 144 |
on the development of modern physics. Noether's work was largely overlooked |
| 145 |
during her lifetime, but her legacy as one of the most important mathematicians |
| 146 |
of the 20th century has been recognized and celebrated in recent years. |
| 147 |
|
| 148 |
Thanks |
| 149 |
------ |
| 150 |
|
| 151 |
Thanks as well to the `D. E. Shaw group <https://deshaw.com/>`__ for sponsoring |
| 152 |
work on IPython and related libraries. |
| 153 |
|
| 154 |
.. _version 8.30: |
| 155 |
|
| 156 |
IPython 8.30 |
| 157 |
============ |
| 158 |
|
| 159 |
Small release for this end of november; |
| 160 |
|
| 161 |
- :ghpull:`14579` improve the documentatation for custom IPython formatters, and how |
| 162 |
you can register formatters for custom mime types. |
| 163 |
- :ghpull:`14580` fix a bug in which commands that were not assigned a shortcut |
| 164 |
could not be assigned one. |
| 165 |
- :ghpull:`12690` fix a bug in which a single ``/`` on an empty line would not be |
| 166 |
an error. This is due to the ``autocall`` behavior that we are thinking of |
| 167 |
deprecating. |
| 168 |
|
| 169 |
The rest of the PRs are mostly maintenance and documentation improvements. |
| 170 |
|
| 171 |
As usual you can find the full list of PRs on GitHub under `the 8.30 |
| 172 |
<https://github.com/ipython/ipython/milestone/137?closed=1>`__ milestone. |
| 173 |
|
| 174 |
|
| 175 |
For something completely different |
| 176 |
---------------------------------- |
| 177 |
|
| 178 |
`Ada Lovelace <https://en.wikipedia.org/wiki/Ada_Lovelace>`__ is considered the |
| 179 |
first computer programmer. In the 1840s, she wrote what is recognized as the |
| 180 |
first algorithm intended to be processed by a machine - Charles Babbage's |
| 181 |
proposed Analytical Engine. Her notes included what would today be called a |
| 182 |
computer program, making her the first programmer in history. She also uniquely |
| 183 |
understood that computers could go beyond mere calculation and could be used to |
| 184 |
create music or art - a visionary insight that was far ahead of her time. |
| 185 |
Despite living in an era when women had limited access to scientific education, |
| 186 |
she made groundbreaking contributions that laid the foundation for modern |
| 187 |
computing. |
| 188 |
|
| 189 |
Thanks |
| 190 |
------ |
| 191 |
|
| 192 |
Thanks as well to the `D. E. Shaw group <https://deshaw.com/>`__ for sponsoring |
| 193 |
work on IPython and related libraries. |
| 194 |
|
| 195 |
|
| 196 |
.. _version 8.29: |
| 197 |
|
| 198 |
IPython 8.29 |
| 199 |
============ |
| 200 |
|
| 201 |
Medium release for this end of october; |
| 202 |
|
| 203 |
- Misc Python 3.13 compatibility :ghpull:`14536`, :ghpull:`14559` |
| 204 |
- Add a ``uv`` line magic :ghpull:`14537` |
| 205 |
- Add support for WEBP to ``IPython.display.Image``. :ghpull:`14526` |
| 206 |
- And many more bugfixes and quality of life improvements. |
| 207 |
|
| 208 |
As usual you can find the full list of PRs on GitHub under `the 8.29 |
| 209 |
<https://github.com/ipython/ipython/milestone/136?closed=1>`__ milestone. |
| 210 |
|
| 211 |
Preparing for 9.0 |
| 212 |
----------------- |
| 213 |
|
| 214 |
IPython 3.13 was released earlier this month, and this means that according to |
| 215 |
`Spec-0 <https://scientific-python.org/specs/spec-0000/>`__, support for 3.10 |
| 216 |
will end soon. |
| 217 |
|
| 218 |
There have been many minor version of IPython 8.x, so it is likely that one of |
| 219 |
the next version will simply bump to 9.0 and remove a lot of code mark as |
| 220 |
deprecated, and documentation/examples not relevant for terminal IPython. |
| 221 |
|
| 222 |
The frequency of release and my time reviewing will also likely decrease more |
| 223 |
than it has already. |
| 224 |
|
| 225 |
|
| 226 |
For something completely different |
| 227 |
---------------------------------- |
| 228 |
|
| 229 |
`Rosalind Franklin <https://en.wikipedia.org/wiki/Rosalind_Franklin>`__ made |
| 230 |
some of the biggest contribution to the discovery of the helix structure of DNA. |
| 231 |
Unfortunately her work was `not recognized |
| 232 |
<https://www.nature.com/scitable/topicpage/rosalind-franklin-a-crucial-contribution-6538012/>`__ |
| 233 |
|
| 234 |
Thanks |
| 235 |
------ |
| 236 |
|
| 237 |
Thanks as well to the `D. E. Shaw group <https://deshaw.com/>`__ for sponsoring |
| 238 |
work on IPython and related libraries. |
| 239 |
|
| 240 |
.. _version 8.28: |
| 241 |
|
| 242 |
IPython 8.28 |
| 243 |
============ |
| 244 |
|
| 245 |
Slight delay of this September release as I was busy at Pydata Paris last week. |
| 246 |
Not many user visible changes for this release, a couple of bug fixes and |
| 247 |
workaround: |
| 248 |
|
| 249 |
- :ghpull:`14480` AssertionError: assert _xterm_term_title_saved in WSL – It is |
| 250 |
unclear why the terminal title is not saved in WSL, if you've WSL experience |
| 251 |
we'd love your feedback and help to not just ignore an error |
| 252 |
- :ghpull:`14510` Fix use of pyside6 >= 6.7.0 |
| 253 |
- :ghpull:`14518` Make values public (_tb_highlight & _tb_highlight_style) |
| 254 |
- :ghpull:`14515` Use environment variable to identify conda / mamba |
| 255 |
|
| 256 |
|
| 257 |
As usual you can find the full list of PRs on GitHub under `the 8.28 |
| 258 |
<https://github.com/ipython/ipython/milestone/135?closed=1>`__ milestone. |
| 259 |
|
| 260 |
For something completely different |
| 261 |
---------------------------------- |
| 262 |
|
| 263 |
One of the first works of Science Fiction (`Frankenstein |
| 264 |
<https://en.wikipedia.org/wiki/Frankenstein>`__), was written by `Mary Shelley |
| 265 |
<https://en.wikipedia.org/wiki/Mary_Shelley>`__ when she was 18, before being |
| 266 |
published in London on 1 January 1818 when she was 20. This is often overlooked, |
| 267 |
and the role of founders of science fiction attribute to Edgar Allan Poe and |
| 268 |
Jules Verne despite being published later. |
| 269 |
|
| 270 |
Thanks |
| 271 |
------ |
| 272 |
|
| 273 |
Thanks as well to the `D. E. Shaw group <https://deshaw.com/>`__ for sponsoring |
| 274 |
work on IPython and related libraries. |
| 275 |
|
| 276 |
|
| 277 |
.. _version 8.27: |
| 278 |
|
| 279 |
IPython 8.27 |
| 280 |
============ |
| 281 |
|
| 282 |
New release of IPython after a month off (not enough changes). We can see a few |
| 283 |
important changes for this release. |
| 284 |
|
| 285 |
- autocall was being call getitem, :ghpull:`14486` |
| 286 |
- Only copy files in startup dir if we just created it. :ghpull:`14497` |
| 287 |
- Fix some tests on Python 3.13 RC1 :ghpull:`14504`; this one I guess make this |
| 288 |
the first IPython release officially compatible with Python 3.13; you will |
| 289 |
need the most recent ``executing`` and ``stack_data``, we won't pin to avoid |
| 290 |
forcing user of older Python version to upgrade. |
| 291 |
|
| 292 |
|
| 293 |
As usual you can find the full list of PRs on GitHub under `the 8.27 |
| 294 |
<https://github.com/ipython/ipython/milestone/134?closed=1>`__ milestone. |
| 295 |
|
| 296 |
Thanks |
| 297 |
------ |
| 298 |
|
| 299 |
Many thanks to `@Kleirre <https://github.com/Kleirre>`__ our June intern for |
| 300 |
doing her first contribution to open source, doing the releases notes and |
| 301 |
release. I guess you didn't even notice it was not me who released :-). I wish |
| 302 |
her all the best in her future endeavor and look forward for her work in |
| 303 |
astrophysics. |
| 304 |
|
| 305 |
Thanks as well to the `D. E. Shaw group <https://deshaw.com/>`__ for sponsoring |
| 306 |
work on IPython and related libraries. |
| 307 |
|
| 308 |
.. _version 8.26: |
| 309 |
|
| 310 |
IPython 8.26 |
| 311 |
============ |
| 312 |
|
| 313 |
Hey, the release of IPython for this month is here! (I know you were waiting for it) |
| 314 |
|
| 315 |
- :ghpull:`14453` bugfix for call to structured_traceback |
| 316 |
|
| 317 |
- :ghpull:`14466` fixed honoring custom repr for NamedTuple if assigned by partialmethod |
| 318 |
|
| 319 |
- :ghpull:`14451` Convert matplotlib gui name in enable_gui |
| 320 |
|
| 321 |
As usual you can find the full list of PRs on GitHub under `the 8.26 |
| 322 |
<https://github.com/ipython/ipython/milestone/133?closed=1>`__ milestone. |
| 323 |
|
| 324 |
Thanks |
| 325 |
------ |
| 326 |
|
| 327 |
Thanks to the `D. E. Shaw group <https://deshaw.com/>`__ for sponsoring |
| 328 |
work on IPython and related libraries. |
| 329 |
|
| 330 |
|
| 331 |
.. _version 8.25: |
| 332 |
|
| 333 |
IPython 8.25 |
| 334 |
============ |
| 335 |
|
| 336 |
Mostly internal changes for this end of may release of IPython. |
| 337 |
|
| 338 |
We'll count about a dozen PRs for this moth, with small bugfixes related to |
| 339 |
matplotlib fixes. |
| 340 |
|
| 341 |
Of notable interest, |
| 342 |
|
| 343 |
- :ghpull:`14426` replaces the unicode micro symbol with greek letter mu, |
| 344 |
visually identical but should fix nfkc normalisations issues. |
| 345 |
|
| 346 |
- :ghpull:`14444` introduces ``intersphinx_registry`` as a new dependency |
| 347 |
which is recommended only to build documentation. |
| 348 |
|
| 349 |
As usual you can find the full list of PRs on GitHub under `the 8.25 |
| 350 |
<https://github.com/ipython/ipython/milestone/132?closed=1>`__ milestone. |
| 351 |
|
| 352 |
Thanks |
| 353 |
------ |
| 354 |
|
| 355 |
Thanks to the `D. E. Shaw group <https://deshaw.com/>`__ for sponsoring |
| 356 |
work on IPython and related libraries. |
| 357 |
|
| 358 |
|
| 359 |
.. _version 8.24: |
| 360 |
|
| 361 |
IPython 8.24 |
| 362 |
============ |
| 363 |
|
| 364 |
Back on regular release schedule, as usual month releases are relatively tiny. |
| 365 |
|
| 366 |
The biggest change is the move of the matplotlib backend handling from IPython |
| 367 |
to matplotlib. :ghpull:`14371` :ghpull:`14403`. |
| 368 |
|
| 369 |
We will note: |
| 370 |
|
| 371 |
- pytest 8 compatibility :ghpull:`14413` |
| 372 |
- ``typing-extension`` now needs 4.6 or newer. It was already the case, but not |
| 373 |
explicated. :ghpull:`14380` |
| 374 |
- Attempt to speed running code under debugger in some cases. :ghpull:`14386` |
| 375 |
:ghpull:`14418`. |
| 376 |
- Multiple fixes to documentation for ipyparallel, simple_prompt and emacs |
| 377 |
:ghpull:`14384` :ghpull:`14404` :ghpull:`14407` |
| 378 |
- Maintenance and cleanup of debugger :ghpull:`14387` :ghpull:`14393` |
| 379 |
|
| 380 |
As usual you can find the full list of PRs on GitHub under `the 8.24 |
| 381 |
<https://github.com/ipython/ipython/milestone/131?closed=1>`__ milestone. |
| 382 |
|
| 383 |
Thanks |
| 384 |
------ |
| 385 |
|
| 386 |
Thanks to the `D. E. Shaw group <https://deshaw.com/>`__ for sponsoring |
| 387 |
work on IPython and related libraries. |
| 388 |
|
| 389 |
|
| 390 |
.. _version 8.23: |
| 391 |
|
| 392 |
IPython 8.23 |
| 393 |
============ |
| 394 |
|
| 395 |
Super tiny release of IPython on Sunday – a bit later than usual, which is also |
| 396 |
`🏳️⚧️ International Transgender Day of Visibility🏳️⚧️ |
| 397 |
<https://en.wikipedia.org/wiki/International_Transgender_Day_of_Visibility>`_ – |
| 398 |
so a though for you on this day, you matter and you are valid [1]_. |
| 399 |
|
| 400 |
This is a minuscule release with only 5 Pull requests. |
| 401 |
|
| 402 |
Main change is :ghpull:`14357` which improve inference from return type |
| 403 |
annotations in completer and the introduction of the optional target |
| 404 |
``ipython[matplotlib]`` to explicitly request the matplotlib optional |
| 405 |
dependencies. |
| 406 |
|
| 407 |
As usual you can find the full list of PRs on GitHub under `the 8.23 |
| 408 |
<https://github.com/ipython/ipython/milestone/130?closed=1>`__ milestone. |
| 409 |
|
| 410 |
Thanks |
| 411 |
------ |
| 412 |
|
| 413 |
Thanks to the `D. E. Shaw group <https://deshaw.com/>`__ for sponsoring |
| 414 |
work on IPython and related libraries. |
| 415 |
|
| 416 |
|
| 417 |
.. _version 8.22: |
| 418 |
|
| 419 |
IPython 8.22, 8.22.1 and 8.22.2 |
| 420 |
=============================== |
| 421 |
|
| 422 |
Quick release of IPython for this short month of February, with quite a bit of |
| 423 |
activity with more than 15 PRs. |
| 424 |
|
| 425 |
I am not going to details all the changes, but among other we have : |
| 426 |
|
| 427 |
- More compatibility with emscripten :ghpull:`14316`, :ghpull:`14318`, |
| 428 |
- Test more downstream project to avoid breakage :ghpull:`14317` |
| 429 |
- Fix recently introduced bug with the ``store`` magic. |
| 430 |
- Fix issues with multiple call to ``matplotlib.pyplot.switch_backend`` |
| 431 |
- Fix crashing IPython when some tracebacks encounter dynamically evaluated |
| 432 |
code. |
| 433 |
|
| 434 |
IPython 8.22.1 increase the minimal traitlets version, and 8.22.2 fix a critical |
| 435 |
bug on emscripten preventing to use some magics like ``%matplotlib`` on |
| 436 |
jupyter-light. |
| 437 |
|
| 438 |
API changes |
| 439 |
----------- |
| 440 |
|
| 441 |
One of the largest change is the update the mimehooks and inspector API, see |
| 442 |
:ghpull:`14342`. It should be backward compatible, but many hooks now receive a |
| 443 |
single object with many fields allowing us flexibility to update the API later. |
| 444 |
|
| 445 |
|
| 446 |
Packaging changes |
| 447 |
----------------- |
| 448 |
|
| 449 |
Thanks to `@mkoppe <https://github.com/mkoeppe>`__, we are slowly getting rid of |
| 450 |
setup.py finally migrating to ``pyproject.toml``. There is still quite a bit of |
| 451 |
work, and please open an issue if you encounter any problem. |
| 452 |
|
| 453 |
|
| 454 |
Deprecation |
| 455 |
----------- |
| 456 |
|
| 457 |
A number of unused functions have been marked deprecated or pending deprecation. |
| 458 |
Please let us know if you encounter any of those deprecation messages for us to |
| 459 |
adjust the removal timeline. |
| 460 |
|
| 461 |
|
| 462 |
Thanks |
| 463 |
------ |
| 464 |
|
| 465 |
Many thanks to `@mkoppe <https://github.com/mkoeppe>`__ and `@krassowski |
| 466 |
<https://github.com/krassowski>`__ for their multiple contributions and codebase |
| 467 |
cleanup. |
| 468 |
|
| 469 |
As usual you can find the full list of PRs on GitHub under `the 8.22 |
| 470 |
<https://github.com/ipython/ipython/milestone/129?closed=1>`__ milestone. |
| 471 |
|
| 472 |
Thanks to the `D. E. Shaw group <https://deshaw.com/>`__ for sponsoring |
| 473 |
work on IPython and related libraries. |
| 474 |
|
| 475 |
|
| 476 |
.. _version 8.21: |
| 477 |
|
| 478 |
IPython 8.21 |
| 479 |
============ |
| 480 |
|
| 481 |
More substantial release of IPython slightly out of schedule as it was not |
| 482 |
possible for me to make a release last Friday. |
| 483 |
|
| 484 |
Few new features are present, but the codebase has been cleaned, and a couple |
| 485 |
of API are _considered_ for deprecation. They are not deprecated yet, but as |
| 486 |
they do not seem to be quite used, they may emit a warning, in which case please |
| 487 |
comment on the relevant issue to inform me of _which_ project use those feature |
| 488 |
and how you use them. Depending on the feedback I might change the timeline for |
| 489 |
deprecation. |
| 490 |
|
| 491 |
This release saw 14 PRs, with more outside contribution than usual, |
| 492 |
I'll note in particular PRs related to making IPython work on emscripten. |
| 493 |
|
| 494 |
I also want to point that we are _trying_ to keep compatibility with Python 3.13, |
| 495 |
but it's a cat and mouse game. Plus I am low on time, so I would appreciate any |
| 496 |
help with that. |
| 497 |
|
| 498 |
Deprecations |
| 499 |
------------ |
| 500 |
|
| 501 |
- :ghpull:`14307` Pending Deprecation of |
| 502 |
``ColorSchemeTable.set_active_scheme(...)``'s ``case_sensitive`` Parameter. |
| 503 |
- :ghpull:`14305` Pending Deprecation of constructing ``ColorScheme`` via |
| 504 |
``kwargs``, in favor passing a single dict. |
| 505 |
|
| 506 |
|
| 507 |
Fixes |
| 508 |
----- |
| 509 |
|
| 510 |
- :ghpull:`14284` TerminalIPythonApp's would warn that ``auto_create`` option is not |
| 511 |
recognized. |
| 512 |
- :ghpull:`14286` Fix a crash with ``NotOneValueFound`` when rendering complex |
| 513 |
tracebacks. |
| 514 |
|
| 515 |
- :ghpull:`14287` Partial Python 3.13 compatibility |
| 516 |
- :ghpull:`14290` Docs/Typos. |
| 517 |
|
| 518 |
Changes |
| 519 |
~~~~~~~ |
| 520 |
|
| 521 |
- :ghpull:`14289` ``ipdb.set_trace()`` now accepts ``header=`` for better |
| 522 |
compatibility with ``pdb.set_trace()`` |
| 523 |
|
| 524 |
- :ghpull:`14300` and :ghpull:`14301` Add hooking ability to produce |
| 525 |
mimebundle. |
| 526 |
|
| 527 |
We'll outline :ghpull:`14300`, it is now possible to extend the ``?/??`` |
| 528 |
operator to return more mimetypes to render richer help in frontends that |
| 529 |
support it. In particular you could send a json representation of the help that |
| 530 |
could be displayed in a customizable way. |
| 531 |
|
| 532 |
Miscellaneous |
| 533 |
------------- |
| 534 |
|
| 535 |
- :ghpull:`14291` Misc Refactor of Color handling |
| 536 |
- :ghpull:`14295` Misc test skip on problematic Pypy versions. |
| 537 |
|
| 538 |
|
| 539 |
Thanks |
| 540 |
~~~~~~ |
| 541 |
|
| 542 |
Special thanks to all our contributors, and to the Pypy team that was extremely |
| 543 |
reactive in helping to investigate a fixing a rare unicode+windows bug. |
| 544 |
|
| 545 |
As usual you can find the full list of PRs on GitHub under `the 8.21 |
| 546 |
<https://github.com/ipython/ipython/milestone/128?closed=1>`__ milestone. |
| 547 |
|
| 548 |
Thanks to the `D. E. Shaw group <https://deshaw.com/>`__ for sponsoring |
| 549 |
work on IPython and related libraries. |
| 550 |
|
| 551 |
|
| 552 |
.. _version 8.20: |
| 553 |
|
| 554 |
IPython 8.20 |
| 555 |
============ |
| 556 |
|
| 557 |
Quick IPython release in this beginning of 2024, barely 2 weeks after the previous |
| 558 |
release. |
| 559 |
|
| 560 |
This is mostly to fix a backward compatibility issue, I would have done a patch |
| 561 |
release earlier if I could. As a few other cleanup are also part of this |
| 562 |
release, this will get a minor version bump. |
| 563 |
|
| 564 |
|
| 565 |
The crux of this release is :ghpull:`14274` (Inspect continuation prompt |
| 566 |
signature and pass only viable arguments), the rest of the changes are mostly |
| 567 |
type annotation, and a few compatibility issues with Python 3.13 that are |
| 568 |
getting addressed. |
| 569 |
|
| 570 |
Python 3.13 compatibility is still not complete (help welcomed). |
| 571 |
|
| 572 |
As usual you can find the full list of PRs on GitHub under `the 8.20 |
| 573 |
<https://github.com/ipython/ipython/milestone/127?closed=1>`__ milestone. |
| 574 |
|
| 575 |
Thanks to the `D. E. Shaw group <https://deshaw.com/>`__ for sponsoring |
| 576 |
work on IPython and related libraries. |
| 577 |
|
| 578 |
|
| 579 |
.. _version 8.19: |
| 580 |
|
| 581 |
IPython 8.19 |
| 582 |
============ |
| 583 |
|
| 584 |
New release of IPython a bit before the end of the month, and end of the year. |
| 585 |
|
| 586 |
Mostly cleanup and deprecation, due to upstream deprecation and removal. |
| 587 |
|
| 588 |
Remove of Python 3.9 support |
| 589 |
---------------------------- |
| 590 |
|
| 591 |
A bit later than originally plan, IPython 8.19 does not support Python 3.9 |
| 592 |
anymore, as well as the few conditional code that were executing only on Python |
| 593 |
3.9. :ghpull:`14254` |
| 594 |
|
| 595 |
We used the opportunity to deprecate ``IPython.utils.tz`` :ghpull:`14256`, due |
| 596 |
to upstream deprecation of some timezone utilities. It will be removed at a later |
| 597 |
date. |
| 598 |
|
| 599 |
We now also run CI on Python 3.12 (what I likely should have done before), but |
| 600 |
running on too many Python version uses a lot of CI time. |
| 601 |
|
| 602 |
Absolute and relative Line Numbers in Prompts |
| 603 |
--------------------------------------------- |
| 604 |
|
| 605 |
Thanks to the contribution of ``cohml``, IPython CLI now support absolute and |
| 606 |
relative line numbers in both vi and emacs prompt, use for example |
| 607 |
``c.TerminalInteractiveShell.prompt_line_number_format='{line: 4d}/{rel_line:+03d} | '`` |
| 608 |
configuration option to display both in a custom format. |
| 609 |
|
| 610 |
Miscellaneous |
| 611 |
------------- |
| 612 |
|
| 613 |
In addition to various bugfixes, I unpinned pytest, let me know if there are any |
| 614 |
issues and we'll re-pin. |
| 615 |
|
| 616 |
See you in 2024 |
| 617 |
--------------- |
| 618 |
|
| 619 |
As usual you can find the full list of PRs on GitHub under `the 8.19 |
| 620 |
<https://github.com/ipython/ipython/milestone/126?closed=1>`__ milestone. |
| 621 |
|
| 622 |
Thanks to the `D. E. Shaw group <https://deshaw.com/>`__ for sponsoring |
| 623 |
work on IPython and related libraries. |
| 624 |
|
| 625 |
.. _version 8.18: |
| 626 |
|
| 627 |
IPython 8.18 and 8.18.1 |
| 628 |
======================= |
| 629 |
|
| 630 |
8.18.1 is identical to 8.18 but pin ``prompt_toolkit`` to greater than ``3.0.41`` |
| 631 |
|
| 632 |
Small release of IPython that fixes a small number of inconveniences. |
| 633 |
|
| 634 |
- :ghpull:`14251` Fix a memory leak in qt event loop integration by setting |
| 635 |
the Loop parent to None. |
| 636 |
- :ghpull:`14252` Pickleshare was made an optional dependency in 8.17, this |
| 637 |
leads to warnings in some installations when using modules completions. The |
| 638 |
warning has been silenced. |
| 639 |
- :ghpull:`14241` Update event loop code for compatibility with more recent |
| 640 |
``prompt_toolkit`` due to deprecations in Python 3.12. |
| 641 |
- :ghpull:`14245` Fix doc example on Pygments styles |
| 642 |
- :ghpull:`14238` Remove dependency on app_nope, this is actually only a |
| 643 |
dependency of IPykernel. |
| 644 |
|
| 645 |
As usual you can find the full list of PRs on GitHub under `the 8.18 |
| 646 |
<https://github.com/ipython/ipython/milestone/125?closed=1>`__ milestone. |
| 647 |
|
| 648 |
Thanks to the `D. E. Shaw group <https://deshaw.com/>`__ for sponsoring |
| 649 |
work on IPython and related libraries. |
| 650 |
|
| 651 |
.. _version 8.17.1: |
| 652 |
.. _version 8.17: |
| 653 |
|
| 654 |
IPython 8.17, 8.17.1 |
| 655 |
==================== |
| 656 |
|
| 657 |
Medium-sized release of IPython that includes some cleanup (backcall, python2 leftovers) |
| 658 |
and some refactoring improvements (typing, pathlib) and a fix on completion. |
| 659 |
|
| 660 |
- :ghpull:`14216` remove backcall dependency |
| 661 |
- :ghpull:`14217` make pickleshare dependency optional |
| 662 |
- :ghpull:`14185` support completion based on type annotations of calls |
| 663 |
|
| 664 |
Reverted in 8.17.1: |
| 665 |
|
| 666 |
- :ghpull:`14190` remove support for python 2 in lexers (reverted in 8.17.1 as it is imported by qtconsole/spyder) |
| 667 |
|
| 668 |
|
| 669 |
Mamba and Micromamba magic commands |
| 670 |
------------------------------------ |
| 671 |
|
| 672 |
In addition to the ``%conda`` magic command for calling ``conda`` in IPython, |
| 673 |
the ``%mamba`` and ``%micromamba`` magic commands now |
| 674 |
call ``mamba`` and ``micromamba`` if they are on ``sys.path``. |
| 675 |
|
| 676 |
.. code:: |
| 677 |
|
| 678 |
%mamba install pkgname |
| 679 |
%micromamba install pkgname |
| 680 |
%conda install pkgname |
| 681 |
%pip install pkgname |
| 682 |
|
| 683 |
%mamba --help |
| 684 |
%micromamba --help |
| 685 |
%conda --help |
| 686 |
%pip --help # works w/ JupyterLite |
| 687 |
!pip --help |
| 688 |
|
| 689 |
|
| 690 |
:ghpull:`14191` |
| 691 |
|
| 692 |
---- |
| 693 |
|
| 694 |
As usual you can find the full list of PRs on GitHub under `the 8.17 |
| 695 |
<https://github.com/ipython/ipython/milestone/123?closed=1>`__ milestone. |
| 696 |
|
| 697 |
Thanks to the `D. E. Shaw group <https://deshaw.com/>`__ for sponsoring |
| 698 |
work on IPython and related libraries. |
| 699 |
|
| 700 |
.. _version 8.16: |
| 701 |
.. _version 8.16.1: |
| 702 |
|
| 703 |
IPython 8.16, 8.16.1 |
| 704 |
==================== |
| 705 |
|
| 706 |
Small double release of IPython (with the 8.12.3 release notes just below). |
| 707 |
Mostly bug fixes and cleanups, and type annotations. Of interest for users: |
| 708 |
|
| 709 |
- :ghpull:`14153` Fix a bug of the new iPdb chained traceback where some |
| 710 |
Exception would not have any traceback. (see upstream fix in CPython for more |
| 711 |
details). |
| 712 |
- :ghpull:`14168` Fix case with spurious message about event loops when using |
| 713 |
matplotlib. |
| 714 |
|
| 715 |
This PR is in 8.16.0 but reverted in 8.16.1, we'll rework the fix for 8.17 |
| 716 |
|
| 717 |
- :ghpull:`14163` Fix an error where semicolon would not suppress output. |
| 718 |
|
| 719 |
As usual you can find the full list of PRs on GitHub under `the 8.16 |
| 720 |
<https://github.com/ipython/ipython/milestone/121?closed=1>`__ and `8.16.1 milestone |
| 721 |
<https://github.com/ipython/ipython/milestone/124?closed=1>`__. |
| 722 |
|
| 723 |
Thanks to the `D. E. Shaw group <https://deshaw.com/>`__ for sponsoring |
| 724 |
work on IPython and related libraries. |
| 725 |
|
| 726 |
.. _version 8.12.3: |
| 727 |
|
| 728 |
IPython 8.12.3 |
| 729 |
============== |
| 730 |
|
| 731 |
Tiny release of 8.12.3 that backport a small number of fixes for users still |
| 732 |
using Python 3.8. |
| 733 |
|
| 734 |
- :ghpull:`14080` add passthrough filter shortcuts |
| 735 |
- :ghpull:`14169` Fix `InteractiveShellEmbed` |
| 736 |
|
| 737 |
.. _version 8.15: |
| 738 |
|
| 739 |
IPython 8.15 |
| 740 |
============ |
| 741 |
|
| 742 |
Medium release of IPython after a couple of month hiatus, and a bit |
| 743 |
off-schedule. |
| 744 |
|
| 745 |
Among other, IPython 8.15: |
| 746 |
|
| 747 |
- Improve compatibility with future version of Python 3.12/3.13 |
| 748 |
:ghpull:`14107`, :ghpull:`14139`, |
| 749 |
- Improve support for ``ExceptionGroups``, :ghpull:`14108` |
| 750 |
- Fix hangs in ``%gui osx``, :ghpull:`14125` |
| 751 |
- Fix memory lead with ``%reset``, :ghpull:`14133` |
| 752 |
- Unstable config option to modify traceback highlighting that is sometime hard |
| 753 |
to read :ghpull:`14138` |
| 754 |
- Support ``.`` in ``ipdb`` as an argument to the ``list`` command |
| 755 |
:ghpull:`14121` |
| 756 |
- Workroud ``parso`` showing warning message when the default logger level is |
| 757 |
changed :ghpull:`14119` |
| 758 |
- Fix multiple issues with matplotlib interactive mode, qt5/qt6 :ghpull:`14128` |
| 759 |
|
| 760 |
Support for PEP-678 Exception Notes |
| 761 |
----------------------------------- |
| 762 |
|
| 763 |
Ultratb now shows :pep:`678` notes, improving your debugging experience on |
| 764 |
Python 3.11+ or with libraries such as Pytest and Hypothesis. |
| 765 |
|
| 766 |
Native fallback for displaying ExceptionGroup |
| 767 |
--------------------------------------------- |
| 768 |
ExceptionGroups are now displayed with ``traceback.print_exc``, as a temporary fix until UltraTB properly supports displaying child exceptions. |
| 769 |
|
| 770 |
|
| 771 |
We have two larger features: |
| 772 |
|
| 773 |
AST-based macros |
| 774 |
---------------- |
| 775 |
|
| 776 |
:ghpull:`14100` introduce a new and efficient way to modify each execution block |
| 777 |
(cell) using an template-ast-based transform. Unlike IPython pre and post code |
| 778 |
execution hooks, this actually transform the code that is execute with as |
| 779 |
minimal as possible overhead. While it was already technically possible to |
| 780 |
register ast transformers for IPython this was far from evident. |
| 781 |
|
| 782 |
This should make it trivial to hook into IPython to implement custom hooks, that |
| 783 |
for example time or profile your code, catch exceptions to provide error |
| 784 |
messages for students or do any other kind of transformations. |
| 785 |
|
| 786 |
In addition to programmatic API there is also a magic to quickly register |
| 787 |
hooks:: |
| 788 |
|
| 789 |
In [1]: %%code_wrap before_after |
| 790 |
...: print('before') |
| 791 |
...: __code__ |
| 792 |
...: print('after') |
| 793 |
...: __ret__ |
| 794 |
|
| 795 |
This mean that for any subsequent execution code will be executed. |
| 796 |
You can modify the above to print the date, compute the execution time, |
| 797 |
retry the code in a for loop.... |
| 798 |
|
| 799 |
|
| 800 |
Allow IPdb/Pdb to move between chained exceptions |
| 801 |
------------------------------------------------- |
| 802 |
|
| 803 |
The main change is the addition of the ability to move between chained |
| 804 |
exceptions when using IPdb, this feature was also contributed to upstream Pdb |
| 805 |
and is thus native to CPython in Python 3.13+ Though ipdb should support this |
| 806 |
feature in older version of Python. I invite you to look at the `CPython changes |
| 807 |
and docs <https://github.com/python/cpython/pull/106676>`__ for more details. |
| 808 |
|
| 809 |
In short, once in post-mortem debugger (``%debug``), you can use the ipdb |
| 810 |
``exceptions`` command to switch exceptions, for example: |
| 811 |
|
| 812 |
.. code-block:: ipython |
| 813 |
|
| 814 |
In [1]: def foo(x): |
| 815 |
...: try: |
| 816 |
...: bar(x) |
| 817 |
...: except Exception as e: |
| 818 |
...: raise ValueError("foo (): bar failed") from e |
| 819 |
...: |
| 820 |
...: def bar(x): |
| 821 |
...: 1 / X |
| 822 |
...: |
| 823 |
|
| 824 |
In [2]: foo(0) |
| 825 |
--------------------------------------------------------------------------- |
| 826 |
NameError Traceback (most recent call last) |
| 827 |
Cell In[1], line 3, in foo(x) |
| 828 |
2 try: |
| 829 |
----> 3 bar(x) |
| 830 |
4 except Exception as e: |
| 831 |
|
| 832 |
Cell In[1], line 9, in bar(x) |
| 833 |
8 def bar(x): |
| 834 |
----> 9 1 / X |
| 835 |
|
| 836 |
NameError: name 'X' is not defined |
| 837 |
|
| 838 |
The above exception was the direct cause of the following exception: |
| 839 |
|
| 840 |
ValueError Traceback (most recent call last) |
| 841 |
Cell In[2], line 1 |
| 842 |
----> 1 foo(0) |
| 843 |
|
| 844 |
Cell In[1], line 5, in foo(x) |
| 845 |
3 bar(x) |
| 846 |
4 except Exception as e: |
| 847 |
----> 5 raise ValueError("foo (): bar failed") from e |
| 848 |
|
| 849 |
ValueError: foo (): bar failed |
| 850 |
|
| 851 |
In [3]: %debug |
| 852 |
> <ipython-input-1-b0bbdc271ffb>(5)foo() |
| 853 |
3 bar(x) |
| 854 |
4 except Exception as e: |
| 855 |
----> 5 raise ValueError("foo (): bar failed") from e |
| 856 |
|
| 857 |
In previous ipdb you could not go into the bar error, now from within pdb you |
| 858 |
can use ``exceptions``: |
| 859 |
|
| 860 |
.. code-block:: ipython |
| 861 |
|
| 862 |
ipdb> exceptions |
| 863 |
0 NameError("name 'X' is not defined") |
| 864 |
> 1 ValueError('foo (): bar failed') |
| 865 |
|
| 866 |
ipdb> exceptions 0 |
| 867 |
> <ipython-input-1-b0bbdc271ffb>(9)bar() |
| 868 |
6 |
| 869 |
7 |
| 870 |
8 def bar(x): |
| 871 |
----> 9 1 / X |
| 872 |
10 |
| 873 |
|
| 874 |
ipdb> |
| 875 |
|
| 876 |
In particular I want to thank the `D.E. Shaw group <https://www.deshaw.com/>`__ |
| 877 |
for suggesting and funding the two largest feature as well as many bug fixes of |
| 878 |
this release. |
| 879 |
|
| 880 |
As usual you can find the full list of PRs on GitHub under `the 8.15 milestone |
| 881 |
<https://github.com/ipython/ipython/milestone/120?closed=1>`__. |
| 882 |
|
| 883 |
|
| 884 |
|
| 885 |
.. _version 8.14: |
| 886 |
|
| 887 |
IPython 8.14 |
| 888 |
============ |
| 889 |
|
| 890 |
Small release of IPython. |
| 891 |
|
| 892 |
- :ghpull:`14080` fixes some shortcuts issues. |
| 893 |
- :ghpull:`14056` Add option to ``%autoreload`` to hide errors when reloading code. This will be the default for spyder |
| 894 |
user is my understanding. |
| 895 |
- :ghpull:`14039` (and :ghpull:`14040`) to show exception notes in tracebacks. |
| 896 |
|
| 897 |
- :ghpull:`14076` Add option to EventManager to prevent printing |
| 898 |
|
| 899 |
|
| 900 |
SPEC 0 and SPEC 4 |
| 901 |
----------------- |
| 902 |
|
| 903 |
You've heard about the NEPs, (NumPy enhancement Proposal), having a NEP for something non-numpy specific was sometime confusing. |
| 904 |
Long live the `SPECs <https://scientific-python.org/specs/>`_. |
| 905 |
|
| 906 |
We are now trying to follow SPEC 0 (aka old NEP 29) for support of upstream libraries. |
| 907 |
|
| 908 |
We also now try to follow SPEC 4 (test and publish nightly on a centralized nightly repository). |
| 909 |
We encourage you to do so as well in order to report breakage, and contribute to the SPEC process ! |
| 910 |
|
| 911 |
|
| 912 |
Python 3.12 compatibility ? |
| 913 |
--------------------------- |
| 914 |
|
| 915 |
Python 3.12 changed its tokenizer to have better support for f-strings and allow arbitrary expression. |
| 916 |
This is a great new feature and performance improvement in Python 3.12. |
| 917 |
|
| 918 |
Unfortunately this means the new tokenizer does not support incomplete or invalid Python which will |
| 919 |
break many features of IPython. Thus compatibility of IPython with Python 3.12 is not guaranteed. |
| 920 |
It is unclear to which extent IPython is affected, and whether we can/should try to still support magics, shell |
| 921 |
escape (``! ....``), ..., as well as how to do it if we can. |
| 922 |
|
| 923 |
In addition even if we there is technical feasibility to do so, it is no clear we have the resources to do it. |
| 924 |
We are thus looking for your help if you can _test_ on Python 3.12 to see to which extent this affects users and which |
| 925 |
features are critical. |
| 926 |
|
| 927 |
We are not going to pin IPython to Python ``<3.12`` as otherwise on install pip would downgrade/resolve to IPython 8.13, |
| 928 |
so if you plan to update to Python 3.12 after its release, we encourage for extra care. |
| 929 |
|
| 930 |
|
| 931 |
.. _version 8.13.1: |
| 932 |
.. _version 8.13.2: |
| 933 |
.. _version 8.12.2: |
| 934 |
|
| 935 |
IPython 8.13.1, 8.13.2 and 8.12.2 |
| 936 |
================================= |
| 937 |
|
| 938 |
3 quick in succession patch release of IPython in addition to IPython 8.13.0 |
| 939 |
having been yanked. |
| 940 |
|
| 941 |
IPython 8.13.0 was improperly tagged as still compatible with Python 3.8, and |
| 942 |
still had some mention of compatibility with 3.8. IPython 8.13.1 is identical to |
| 943 |
8.13 but with the exception of being correctly tagged. This release and yank was |
| 944 |
mostly done to fix CI. |
| 945 |
|
| 946 |
IPython 8.12.2 and 8.13.2 contain UI fixes, with respect to right arrow not |
| 947 |
working in some case in the terminal, and 8.12.2 contain also a requested |
| 948 |
backport of :ghpull:`14029` (Allow safe access to the ``__getattribute__`` |
| 949 |
method of modules) for tab completion. |
| 950 |
|
| 951 |
.. _version 8.13: |
| 952 |
|
| 953 |
IPython 8.13 |
| 954 |
============ |
| 955 |
|
| 956 |
As usual for the end of the month, minor release of IPython. This release is |
| 957 |
significant in that it not only has a number of bugfixes, but also drop support |
| 958 |
for Python 3.8 as per NEP 29 (:ghpull:`14023`). |
| 959 |
|
| 960 |
All the critical bugfixes have been backported onto the 8.12.1 release (see |
| 961 |
below). In addition to that went into 8.12.1 you'll find: |
| 962 |
|
| 963 |
- Pretty representation for ``Counter`` has been fixed to match the Python one |
| 964 |
and be in decreasing order. :ghpull:`14032` |
| 965 |
- Module completion is better when jedi is disabled :ghpull:`14029`. |
| 966 |
- Improvement of ``%%bash`` magic that would get stuck :ghpull:`14019` |
| 967 |
|
| 968 |
|
| 969 |
We hope you enjoy this release an will maybe see you at JupyterCon in less than |
| 970 |
two weeks. |
| 971 |
|
| 972 |
As usual you can find the full list of PRs on GitHub under `the 8.13 milestone |
| 973 |
<https://github.com/ipython/ipython/milestone/115?closed=1>`__. |
| 974 |
|
| 975 |
Thanks to the `D. E. Shaw group <https://deshaw.com/>`__ for sponsoring |
| 976 |
work on IPython and related libraries. |
| 977 |
|
| 978 |
|
| 979 |
.. _version 8.12.1: |
| 980 |
|
| 981 |
IPython 8.12.1 |
| 982 |
============== |
| 983 |
|
| 984 |
This is the twin release of IPython 8.13 that contain only critical UI and bug |
| 985 |
fixes. The next minor version of IPython has dropped support for Python 3.8 – as |
| 986 |
per Nep 29 and this IPython 8.12.x will now only receive bugfixes. |
| 987 |
|
| 988 |
|
| 989 |
- :ghpull:`14004` Fix a bug introduced in IPython 8.12 that crash when |
| 990 |
inspecting some docstrings. |
| 991 |
- :ghpull:`14010` Fix fast traceback code that was not working in some case. |
| 992 |
- :ghpull:`14014` Fix ``%page`` magic broken in some case. |
| 993 |
- :ghpull:`14026`, :ghpull:`14027` Tweak default shortcut with respect to |
| 994 |
autosuggestions. |
| 995 |
- :ghpull:`14033` add back the ability to use ``.get()`` on OInfo object for |
| 996 |
backward compatibility with h5py (this will be re-deprecated later, and h5py |
| 997 |
will also get a fix). |
| 998 |
|
| 999 |
As usual you can find the full list of PRs on GitHub under `the 8.12.1 milestone |
| 1000 |
<https://github.com/ipython/ipython/milestone/116?closed=1>`__. |
| 1001 |
|
| 1002 |
Thanks to the `D. E. Shaw group <https://deshaw.com/>`__ for sponsoring |
| 1003 |
work on IPython and related libraries. |
| 1004 |
|
| 1005 |
.. _version 8.12.0: |
| 1006 |
|
| 1007 |
IPython 8.12 |
| 1008 |
============ |
| 1009 |
|
| 1010 |
Hopefully slightly early release for IPython 8.12. Last Thursday of the month, |
| 1011 |
even if I guess it's likely already Friday somewhere in the pacific ocean. |
| 1012 |
|
| 1013 |
A number of PRs and bug fixes this month with close to 20 PRs merged ! |
| 1014 |
|
| 1015 |
|
| 1016 |
The IPython repo reached :ghpull:`14000` !! Actually the PR that create those exact release |
| 1017 |
note is :ghpull:`14000`. Ok, more issues and PR is not always better, and I'd |
| 1018 |
love to have more time to close issues and Pull Requests. |
| 1019 |
|
| 1020 |
Let's note that in less than 2 month JupyterCon is back, in Paris please visit |
| 1021 |
`jupytercon.com <https://jupytercon.com>`__, and looking forward to see you |
| 1022 |
there. |
| 1023 |
|
| 1024 |
Packagers should take note that ``typing_extension`` is now a mandatory dependency |
| 1025 |
for Python versions ``<3.10``. |
| 1026 |
|
| 1027 |
|
| 1028 |
|
| 1029 |
Let's note also that according to `NEP29 |
| 1030 |
<https://numpy.org/neps/nep-0029-deprecation_policy.html>`__, It is soon time to |
| 1031 |
stop support for Python 3.8 that will be release more than 3 and 1/2 years ago:: |
| 1032 |
|
| 1033 |
On Apr 14, 2023 drop support for Python 3.8 (initially released on Oct 14, 2019) |
| 1034 |
|
| 1035 |
Thus I am likely to stop advertising support for Python 3.8 in the next |
| 1036 |
release at the end of April. |
| 1037 |
|
| 1038 |
|
| 1039 |
Here are some miscellaneous updates of interest: |
| 1040 |
|
| 1041 |
- :ghpull:`13957` brings updates to the Qt integration, particularly for Qt6. |
| 1042 |
- :ghpull:`13960` fixes the %debug magic command to give access to the local |
| 1043 |
scope. |
| 1044 |
- :ghpull:`13964` fixes some crashes with the new fast traceback code. Note that |
| 1045 |
there are still some issues with the fast traceback code, and I a, likely |
| 1046 |
to fix and tweak behavior. |
| 1047 |
- :ghpull:`13973` We are slowly migrating IPython internals to use proper type |
| 1048 |
objects/dataclasses instead of dictionaries to allow static typing checks. |
| 1049 |
These are technically public API and could lead to breakage, so please let us |
| 1050 |
know if that's the case and I'll mitigate. |
| 1051 |
- :ghpull:`13990`, :ghpull:`13991`, :ghpull:`13994` all improve keybinding and |
| 1052 |
shortcut configurability. |
| 1053 |
|
| 1054 |
As usual you can find the full list of PRs on GitHub under `the 8.12 milestone |
| 1055 |
<https://github.com/ipython/ipython/milestone/114?closed=1>`__. |
| 1056 |
|
| 1057 |
We want to thank the D.E. Shaw group for requesting and sponsoring the work on |
| 1058 |
the following big feature. We had productive discussions on how to best expose |
| 1059 |
this feature |
| 1060 |
|
| 1061 |
Dynamic documentation dispatch |
| 1062 |
------------------------------ |
| 1063 |
|
| 1064 |
We are experimenting with dynamic documentation dispatch for object attribute. |
| 1065 |
See :ghissue:`13860`. The goal is to allow object to define documentation for |
| 1066 |
their attributes, properties, even when those are dynamically defined with |
| 1067 |
`__getattr__`. |
| 1068 |
|
| 1069 |
In particular when those objects are base types it can be useful to show the |
| 1070 |
documentation |
| 1071 |
|
| 1072 |
|
| 1073 |
.. code-block:: ipython |
| 1074 |
|
| 1075 |
|
| 1076 |
In [1]: class User: |
| 1077 |
...: |
| 1078 |
...: __custom_documentations__ = { |
| 1079 |
...: "first": "The first name of the user.", |
| 1080 |
...: "last": "The last name of the user.", |
| 1081 |
...: } |
| 1082 |
...: |
| 1083 |
...: first:str |
| 1084 |
...: last:str |
| 1085 |
...: |
| 1086 |
...: def __init__(self, first, last): |
| 1087 |
...: self.first = first |
| 1088 |
...: self.last = last |
| 1089 |
...: |
| 1090 |
...: @property |
| 1091 |
...: def full(self): |
| 1092 |
...: """`self.first` and `self.last` joined by a space.""" |
| 1093 |
...: return self.first + " " + self.last |
| 1094 |
...: |
| 1095 |
...: |
| 1096 |
...: user = Person('Jane', 'Doe') |
| 1097 |
|
| 1098 |
In [2]: user.first? |
| 1099 |
Type: str |
| 1100 |
String form: Jane |
| 1101 |
Length: 4 |
| 1102 |
Docstring: the first name of a the person object, a str |
| 1103 |
Class docstring: |
| 1104 |
.... |
| 1105 |
|
| 1106 |
In [3]: user.last? |
| 1107 |
Type: str |
| 1108 |
String form: Doe |
| 1109 |
Length: 3 |
| 1110 |
Docstring: the last name, also a str |
| 1111 |
... |
| 1112 |
|
| 1113 |
|
| 1114 |
We can see here the symmetry with IPython looking for the docstring on the |
| 1115 |
properties: |
| 1116 |
|
| 1117 |
.. code-block:: ipython |
| 1118 |
|
| 1119 |
|
| 1120 |
In [4]: user.full? |
| 1121 |
HERE |
| 1122 |
Type: property |
| 1123 |
String form: <property object at 0x102bb15d0> |
| 1124 |
Docstring: first and last join by a space |
| 1125 |
|
| 1126 |
|
| 1127 |
Note that while in the above example we use a static dictionary, libraries may |
| 1128 |
decide to use a custom object that define ``__getitem__``, we caution against |
| 1129 |
using objects that would trigger computation to show documentation, but it is |
| 1130 |
sometime preferable for highly dynamic code that for example export an API as |
| 1131 |
object. |
| 1132 |
|
| 1133 |
|
| 1134 |
|
| 1135 |
.. _version 8.11.0: |
| 1136 |
|
| 1137 |
IPython 8.11 |
| 1138 |
============ |
| 1139 |
|
| 1140 |
Back on almost regular monthly schedule for IPython with end-of-month |
| 1141 |
really-late-Friday release to make sure some bugs are properly fixed. |
| 1142 |
Small addition of with a few new features, bugfix and UX improvements. |
| 1143 |
|
| 1144 |
This is a non-exhaustive list, but among other you will find: |
| 1145 |
|
| 1146 |
Faster Traceback Highlighting |
| 1147 |
----------------------------- |
| 1148 |
|
| 1149 |
Resurrection of pre-IPython-8 traceback highlighting code. |
| 1150 |
|
| 1151 |
Really long and complicated files were slow to highlight in traceback with |
| 1152 |
IPython 8 despite upstream improvement that make many case better. Therefore |
| 1153 |
starting with IPython 8.11 when one of the highlighted file is more than 10 000 |
| 1154 |
line long by default, we'll fallback to a faster path that does not have all the |
| 1155 |
features of highlighting failing AST nodes. |
| 1156 |
|
| 1157 |
This can be configures by setting the value of |
| 1158 |
``IPython.code.ultratb.FAST_THRESHOLD`` to an arbitrary low or large value. |
| 1159 |
|
| 1160 |
|
| 1161 |
Autoreload verbosity |
| 1162 |
-------------------- |
| 1163 |
|
| 1164 |
We introduce more descriptive names for the ``%autoreload`` parameter: |
| 1165 |
|
| 1166 |
- ``%autoreload now`` (also ``%autoreload``) - perform autoreload immediately. |
| 1167 |
- ``%autoreload off`` (also ``%autoreload 0``) - turn off autoreload. |
| 1168 |
- ``%autoreload explicit`` (also ``%autoreload 1``) - turn on autoreload only for modules |
| 1169 |
whitelisted by ``%aimport`` statements. |
| 1170 |
- ``%autoreload all`` (also ``%autoreload 2``) - turn on autoreload for all modules except those |
| 1171 |
blacklisted by ``%aimport`` statements. |
| 1172 |
- ``%autoreload complete`` (also ``%autoreload 3``) - all the features of ``all`` but also adding new |
| 1173 |
objects from the imported modules (see |
| 1174 |
IPython/extensions/tests/test_autoreload.py::test_autoload_newly_added_objects). |
| 1175 |
|
| 1176 |
The original designations (e.g. "2") still work, and these new ones are case-insensitive. |
| 1177 |
|
| 1178 |
Additionally, the option ``--print`` or ``-p`` can be added to the line to print the names of |
| 1179 |
modules being reloaded. Similarly, ``--log`` or ``-l`` will output the names to the logger at INFO |
| 1180 |
level. Both can be used simultaneously. |
| 1181 |
|
| 1182 |
The parsing logic for ``%aimport`` is now improved such that modules can be whitelisted and |
| 1183 |
blacklisted in the same line, e.g. it's now possible to call ``%aimport os, -math`` to include |
| 1184 |
``os`` for ``%autoreload explicit`` and exclude ``math`` for modes ``all`` and ``complete``. |
| 1185 |
|
| 1186 |
Terminal shortcuts customization |
| 1187 |
-------------------------------- |
| 1188 |
|
| 1189 |
Previously modifying shortcuts was only possible by hooking into startup files |
| 1190 |
and practically limited to adding new shortcuts or removing all shortcuts bound |
| 1191 |
to a specific key. This release enables users to override existing terminal |
| 1192 |
shortcuts, disable them or add new keybindings. |
| 1193 |
|
| 1194 |
For example, to set the :kbd:`right` to accept a single character of auto-suggestion |
| 1195 |
you could use:: |
| 1196 |
|
| 1197 |
my_shortcuts = [ |
| 1198 |
{ |
| 1199 |
"command": "IPython:auto_suggest.accept_character", |
| 1200 |
"new_keys": ["right"] |
| 1201 |
} |
| 1202 |
] |
| 1203 |
%config TerminalInteractiveShell.shortcuts = my_shortcuts |
| 1204 |
|
| 1205 |
You can learn more in :std:configtrait:`TerminalInteractiveShell.shortcuts` |
| 1206 |
configuration reference. |
| 1207 |
|
| 1208 |
Miscellaneous |
| 1209 |
------------- |
| 1210 |
|
| 1211 |
- ``%gui`` should now support PySide6. :ghpull:`13864` |
| 1212 |
- Cli shortcuts can now be configured :ghpull:`13928`, see above. |
| 1213 |
(note that there might be an issue with prompt_toolkit 3.0.37 and shortcut configuration). |
| 1214 |
|
| 1215 |
- Capture output should now respect ``;`` semicolon to suppress output. |
| 1216 |
:ghpull:`13940` |
| 1217 |
- Base64 encoded images (in jupyter frontend), will not have trailing newlines. |
| 1218 |
:ghpull:`13941` |
| 1219 |
|
| 1220 |
As usual you can find the full list of PRs on GitHub under `the 8.11 milestone |
| 1221 |
<https://github.com/ipython/ipython/milestone/113?closed=1>`__. |
| 1222 |
|
| 1223 |
Thanks to the `D. E. Shaw group <https://deshaw.com/>`__ for sponsoring |
| 1224 |
work on IPython and related libraries. |
| 1225 |
|
| 1226 |
.. _version 8.10.0: |
| 1227 |
|
| 1228 |
IPython 8.10 |
| 1229 |
============ |
| 1230 |
|
| 1231 |
Out of schedule release of IPython with minor fixes to patch a potential CVE-2023-24816. |
| 1232 |
This is a really low severity CVE that you most likely are not affected by unless: |
| 1233 |
|
| 1234 |
- You are on windows. |
| 1235 |
- You have a custom build of Python without ``_ctypes`` |
| 1236 |
- You cd or start IPython or Jupyter in untrusted directory which names may be |
| 1237 |
valid shell commands. |
| 1238 |
|
| 1239 |
You can read more on `the advisory |
| 1240 |
<https://github.com/ipython/ipython/security/advisories/GHSA-29gw-9793-fvw7>`__. |
| 1241 |
|
| 1242 |
In addition to fixing this CVE we also fix a couple of outstanding bugs and issues. |
| 1243 |
|
| 1244 |
As usual you can find the full list of PRs on GitHub under `the 8.10 milestone |
| 1245 |
<https://github.com/ipython/ipython/milestone/112?closed=1>`__. |
| 1246 |
|
| 1247 |
In Particular: |
| 1248 |
|
| 1249 |
- bump minimum numpy to `>=1.21` version following NEP29. :ghpull:`13930` |
| 1250 |
- fix for compatibility with MyPy 1.0. :ghpull:`13933` |
| 1251 |
- fix nbgrader stalling when IPython's ``showtraceback`` function is |
| 1252 |
monkeypatched. :ghpull:`13934` |
| 1253 |
|
| 1254 |
|
| 1255 |
|
| 1256 |
As this release also contains those minimal changes in addition to fixing the |
| 1257 |
CVE I decided to bump the minor version anyway. |
| 1258 |
|
| 1259 |
This will not affect the normal release schedule, so IPython 8.11 is due in |
| 1260 |
about 2 weeks. |
| 1261 |
|
| 1262 |
.. _version 8.9.0: |
| 1263 |
|
| 1264 |
IPython 8.9.0 |
| 1265 |
============= |
| 1266 |
|
| 1267 |
Second release of IPython in 2023, last Friday of the month, we are back on |
| 1268 |
track. This is a small release with a few bug-fixes, and improvements, mostly |
| 1269 |
with respect to terminal shortcuts. |
| 1270 |
|
| 1271 |
|
| 1272 |
The biggest improvement for 8.9 is a drastic amelioration of the |
| 1273 |
auto-suggestions sponsored by D.E. Shaw and implemented by the more and more |
| 1274 |
active contributor `@krassowski <https://github.com/krassowski>`__. |
| 1275 |
|
| 1276 |
- ``right`` accepts a single character from suggestion |
| 1277 |
- ``ctrl+right`` accepts a semantic token (macos default shortcuts take |
| 1278 |
precedence and need to be disabled to make this work) |
| 1279 |
- ``backspace`` deletes a character and resumes hinting autosuggestions |
| 1280 |
- ``ctrl-left`` accepts suggestion and moves cursor left one character. |
| 1281 |
- ``backspace`` deletes a character and resumes hinting autosuggestions |
| 1282 |
- ``down`` moves to suggestion to later in history when no lines are present below the cursors. |
| 1283 |
- ``up`` moves to suggestion from earlier in history when no lines are present above the cursor. |
| 1284 |
|
| 1285 |
This is best described by the Gif posted by `@krassowski |
| 1286 |
<https://github.com/krassowski>`__, and in the PR itself :ghpull:`13888`. |
| 1287 |
|
| 1288 |
.. image:: ../_images/autosuggest.gif |
| 1289 |
|
| 1290 |
Please report any feedback in order for us to improve the user experience. |
| 1291 |
In particular we are also working on making the shortcuts configurable. |
| 1292 |
|
| 1293 |
If you are interested in better terminal shortcuts, I also invite you to |
| 1294 |
participate in issue `13879 |
| 1295 |
<https://github.com/ipython/ipython/issues/13879>`__. |
| 1296 |
|
| 1297 |
|
| 1298 |
As we follow `NEP29 |
| 1299 |
<https://numpy.org/neps/nep-0029-deprecation_policy.html>`__, next version of |
| 1300 |
IPython will officially stop supporting numpy 1.20, and will stop supporting |
| 1301 |
Python 3.8 after April release. |
| 1302 |
|
| 1303 |
As usual you can find the full list of PRs on GitHub under `the 8.9 milestone |
| 1304 |
<https://github.com/ipython/ipython/milestone/111?closed=1>`__. |
| 1305 |
|
| 1306 |
|
| 1307 |
Thanks to the `D. E. Shaw group <https://deshaw.com/>`__ for sponsoring |
| 1308 |
work on IPython and related libraries. |
| 1309 |
|
| 1310 |
.. _version 8.8.0: |
| 1311 |
|
| 1312 |
IPython 8.8.0 |
| 1313 |
============= |
| 1314 |
|
| 1315 |
First release of IPython in 2023 as there was no release at the end of |
| 1316 |
December. |
| 1317 |
|
| 1318 |
This is an unusually big release (relatively speaking) with more than 15 Pull |
| 1319 |
Requests merged. |
| 1320 |
|
| 1321 |
Of particular interest are: |
| 1322 |
|
| 1323 |
- :ghpull:`13852` that replaces the greedy completer and improves |
| 1324 |
completion, in particular for dictionary keys. |
| 1325 |
- :ghpull:`13858` that adds ``py.typed`` to ``setup.cfg`` to make sure it is |
| 1326 |
bundled in wheels. |
| 1327 |
- :ghpull:`13869` that implements tab completions for IPython options in the |
| 1328 |
shell when using `argcomplete <https://github.com/kislyuk/argcomplete>`. I |
| 1329 |
believe this also needs a recent version of Traitlets. |
| 1330 |
- :ghpull:`13865` makes the ``inspector`` class of `InteractiveShell` |
| 1331 |
configurable. |
| 1332 |
- :ghpull:`13880` that removes minor-version entrypoints as the minor version |
| 1333 |
entry points that would be included in the wheel would be the one of the |
| 1334 |
Python version that was used to build the ``whl`` file. |
| 1335 |
|
| 1336 |
In no particular order, the rest of the changes update the test suite to be |
| 1337 |
compatible with Pygments 2.14, various docfixes, testing on more recent python |
| 1338 |
versions and various updates. |
| 1339 |
|
| 1340 |
As usual you can find the full list of PRs on GitHub under `the 8.8 milestone |
| 1341 |
<https://github.com/ipython/ipython/milestone/110>`__. |
| 1342 |
|
| 1343 |
Many thanks to @krassowski for the many PRs and @jasongrout for reviewing and |
| 1344 |
merging contributions. |
| 1345 |
|
| 1346 |
Thanks to the `D. E. Shaw group <https://deshaw.com/>`__ for sponsoring |
| 1347 |
work on IPython and related libraries. |
| 1348 |
|
| 1349 |
.. _version 8.7.0: |
| 1350 |
|
| 1351 |
IPython 8.7.0 |
| 1352 |
============= |
| 1353 |
|
| 1354 |
|
| 1355 |
Small release of IPython with a couple of bug fixes and new features for this |
| 1356 |
month. Next month is the end of year, it is unclear if there will be a release |
| 1357 |
close to the new year's eve, or if the next release will be at the end of January. |
| 1358 |
|
| 1359 |
Here are a few of the relevant fixes, |
| 1360 |
as usual you can find the full list of PRs on GitHub under `the 8.7 milestone |
| 1361 |
<https://github.com/ipython/ipython/pulls?q=milestone%3A8.7>`__. |
| 1362 |
|
| 1363 |
|
| 1364 |
- :ghpull:`13834` bump the minimum prompt toolkit to 3.0.11. |
| 1365 |
- IPython shipped with the ``py.typed`` marker now, and we are progressively |
| 1366 |
adding more types. :ghpull:`13831` |
| 1367 |
- :ghpull:`13817` add configuration of code blacks formatting. |
| 1368 |
|
| 1369 |
|
| 1370 |
Thanks to the `D. E. Shaw group <https://deshaw.com/>`__ for sponsoring |
| 1371 |
work on IPython and related libraries. |
| 1372 |
|
| 1373 |
|
| 1374 |
.. _version 8.6.0: |
| 1375 |
|
| 1376 |
IPython 8.6.0 |
| 1377 |
============= |
| 1378 |
|
| 1379 |
Back to a more regular release schedule (at least I try), as Friday is |
| 1380 |
already over by more than 24h hours. This is a slightly bigger release with a |
| 1381 |
few new features that contain no less than 25 PRs. |
| 1382 |
|
| 1383 |
We'll notably found a couple of non negligible changes: |
| 1384 |
|
| 1385 |
The ``install_ext`` and related functions have been removed after being |
| 1386 |
deprecated for years. You can use pip to install extensions. ``pip`` did not |
| 1387 |
exist when ``install_ext`` was introduced. You can still load local extensions |
| 1388 |
without installing them. Just set your ``sys.path`` for example. :ghpull:`13744` |
| 1389 |
|
| 1390 |
IPython now has extra entry points that use the major *and minor* version of |
| 1391 |
python. For some of you this means that you can do a quick ``ipython3.10`` to |
| 1392 |
launch IPython from the Python 3.10 interpreter, while still using Python 3.11 |
| 1393 |
as your main Python. :ghpull:`13743` |
| 1394 |
|
| 1395 |
The completer matcher API has been improved. See :ghpull:`13745`. This should |
| 1396 |
improve the type inference and improve dict keys completions in many use case. |
| 1397 |
Thanks ``@krassowski`` for all the work, and the D.E. Shaw group for sponsoring |
| 1398 |
it. |
| 1399 |
|
| 1400 |
The color of error nodes in tracebacks can now be customized. See |
| 1401 |
:ghpull:`13756`. This is a private attribute until someone finds the time to |
| 1402 |
properly add a configuration option. Note that with Python 3.11 that also shows |
| 1403 |
the relevant nodes in traceback, it would be good to leverage this information |
| 1404 |
(plus the "did you mean" info added on attribute errors). But that's likely work |
| 1405 |
I won't have time to do before long, so contributions welcome. |
| 1406 |
|
| 1407 |
As we follow NEP 29, we removed support for numpy 1.19 :ghpull:`13760`. |
| 1408 |
|
| 1409 |
|
| 1410 |
The ``open()`` function present in the user namespace by default will now refuse |
| 1411 |
to open the file descriptors 0,1,2 (stdin, out, err), to avoid crashing IPython. |
| 1412 |
This mostly occurs in teaching context when incorrect values get passed around. |
| 1413 |
|
| 1414 |
|
| 1415 |
The ``?``, ``??``, and corresponding ``pinfo``, ``pinfo2`` magics can now find |
| 1416 |
objects inside arrays. That is to say, the following now works:: |
| 1417 |
|
| 1418 |
|
| 1419 |
>>> def my_func(*arg, **kwargs):pass |
| 1420 |
>>> container = [my_func] |
| 1421 |
>>> container[0]? |
| 1422 |
|
| 1423 |
|
| 1424 |
If ``container`` define a custom ``getitem``, this __will__ trigger the custom |
| 1425 |
method. So don't put side effects in your ``getitems``. Thanks to the D.E. Shaw |
| 1426 |
group for the request and sponsoring the work. |
| 1427 |
|
| 1428 |
|
| 1429 |
As usual you can find the full list of PRs on GitHub under `the 8.6 milestone |
| 1430 |
<https://github.com/ipython/ipython/pulls?q=milestone%3A8.6>`__. |
| 1431 |
|
| 1432 |
Thanks to all hacktoberfest contributors, please contribute to |
| 1433 |
`closember.org <https://closember.org/>`__. |
| 1434 |
|
| 1435 |
Thanks to the `D. E. Shaw group <https://deshaw.com/>`__ for sponsoring |
| 1436 |
work on IPython and related libraries. |
| 1437 |
|
| 1438 |
.. _version 8.5.0: |
| 1439 |
|
| 1440 |
IPython 8.5.0 |
| 1441 |
============= |
| 1442 |
|
| 1443 |
First release since a couple of month due to various reasons and timing preventing |
| 1444 |
me for sticking to the usual monthly release the last Friday of each month. This |
| 1445 |
is of non negligible size as it has more than two dozen PRs with various fixes |
| 1446 |
an bug fixes. |
| 1447 |
|
| 1448 |
Many thanks to everybody who contributed PRs for your patience in review and |
| 1449 |
merges. |
| 1450 |
|
| 1451 |
Here is a non-exhaustive list of changes that have been implemented for IPython |
| 1452 |
8.5.0. As usual you can find the full list of issues and PRs tagged with `the |
| 1453 |
8.5 milestone |
| 1454 |
<https://github.com/ipython/ipython/pulls?q=is%3Aclosed+milestone%3A8.5+>`__. |
| 1455 |
|
| 1456 |
- Added a shortcut for accepting auto suggestion. The End key shortcut for |
| 1457 |
accepting auto-suggestion This binding works in Vi mode too, provided |
| 1458 |
``TerminalInteractiveShell.emacs_bindings_in_vi_insert_mode`` is set to be |
| 1459 |
``True`` :ghpull:`13566`. |
| 1460 |
|
| 1461 |
- No popup in window for latex generation when generating latex (e.g. via |
| 1462 |
`_latex_repr_`) no popup window is shows under Windows. :ghpull:`13679` |
| 1463 |
|
| 1464 |
- Fixed error raised when attempting to tab-complete an input string with |
| 1465 |
consecutive periods or forward slashes (such as "file:///var/log/..."). |
| 1466 |
:ghpull:`13675` |
| 1467 |
|
| 1468 |
- Relative filenames in Latex rendering : |
| 1469 |
The `latex_to_png_dvipng` command internally generates input and output file |
| 1470 |
arguments to `latex` and `dvipis`. These arguments are now generated as |
| 1471 |
relative files to the current working directory instead of absolute file |
| 1472 |
paths. This solves a problem where the current working directory contains |
| 1473 |
characters that are not handled properly by `latex` and `dvips`. There are |
| 1474 |
no changes to the user API. :ghpull:`13680` |
| 1475 |
|
| 1476 |
- Stripping decorators bug: Fixed bug which meant that ipython code blocks in |
| 1477 |
restructured text documents executed with the ipython-sphinx extension |
| 1478 |
skipped any lines of code containing python decorators. :ghpull:`13612` |
| 1479 |
|
| 1480 |
- Allow some modules with frozen dataclasses to be reloaded. :ghpull:`13732` |
| 1481 |
- Fix paste magic on wayland. :ghpull:`13671` |
| 1482 |
- show maxlen in deque's repr. :ghpull:`13648` |
| 1483 |
|
| 1484 |
Restore line numbers for Input |
| 1485 |
------------------------------ |
| 1486 |
|
| 1487 |
Line number information in tracebacks from input are restored. |
| 1488 |
Line numbers from input were removed during the transition to v8 enhanced traceback reporting. |
| 1489 |
|
| 1490 |
So, instead of:: |
| 1491 |
|
| 1492 |
--------------------------------------------------------------------------- |
| 1493 |
ZeroDivisionError Traceback (most recent call last) |
| 1494 |
Input In [3], in <cell line: 1>() |
| 1495 |
----> 1 myfunc(2) |
| 1496 |
|
| 1497 |
Input In [2], in myfunc(z) |
| 1498 |
1 def myfunc(z): |
| 1499 |
----> 2 foo.boo(z-1) |
| 1500 |
|
| 1501 |
File ~/code/python/ipython/foo.py:3, in boo(x) |
| 1502 |
2 def boo(x): |
| 1503 |
----> 3 return 1/(1-x) |
| 1504 |
|
| 1505 |
ZeroDivisionError: division by zero |
| 1506 |
|
| 1507 |
The error traceback now looks like:: |
| 1508 |
|
| 1509 |
--------------------------------------------------------------------------- |
| 1510 |
ZeroDivisionError Traceback (most recent call last) |
| 1511 |
Cell In [3], line 1 |
| 1512 |
----> 1 myfunc(2) |
| 1513 |
|
| 1514 |
Cell In [2], line 2, in myfunc(z) |
| 1515 |
1 def myfunc(z): |
| 1516 |
----> 2 foo.boo(z-1) |
| 1517 |
|
| 1518 |
File ~/code/python/ipython/foo.py:3, in boo(x) |
| 1519 |
2 def boo(x): |
| 1520 |
----> 3 return 1/(1-x) |
| 1521 |
|
| 1522 |
ZeroDivisionError: division by zero |
| 1523 |
|
| 1524 |
or, with xmode=Plain:: |
| 1525 |
|
| 1526 |
Traceback (most recent call last): |
| 1527 |
Cell In [12], line 1 |
| 1528 |
myfunc(2) |
| 1529 |
Cell In [6], line 2 in myfunc |
| 1530 |
foo.boo(z-1) |
| 1531 |
File ~/code/python/ipython/foo.py:3 in boo |
| 1532 |
return 1/(1-x) |
| 1533 |
ZeroDivisionError: division by zero |
| 1534 |
|
| 1535 |
:ghpull:`13560` |
| 1536 |
|
| 1537 |
New setting to silence warning if working inside a virtual environment |
| 1538 |
---------------------------------------------------------------------- |
| 1539 |
|
| 1540 |
Previously, when starting IPython in a virtual environment without IPython installed (so IPython from the global environment is used), the following warning was printed: |
| 1541 |
|
| 1542 |
Attempting to work in a virtualenv. If you encounter problems, please install IPython inside the virtualenv. |
| 1543 |
|
| 1544 |
This warning can be permanently silenced by setting ``c.InteractiveShell.warn_venv`` to ``False`` (the default is ``True``). |
| 1545 |
|
| 1546 |
:ghpull:`13706` |
| 1547 |
|
| 1548 |
------- |
| 1549 |
|
| 1550 |
Thanks to the `D. E. Shaw group <https://deshaw.com/>`__ for sponsoring |
| 1551 |
work on IPython and related libraries. |
| 1552 |
|
| 1553 |
|
| 1554 |
.. _version 8.4.0: |
| 1555 |
|
| 1556 |
IPython 8.4.0 |
| 1557 |
============= |
| 1558 |
|
| 1559 |
As for 7.34, this version contains a single fix: fix uncaught BdbQuit exceptions on ipdb |
| 1560 |
exit :ghpull:`13668`, and a single typo fix in documentation: :ghpull:`13682` |
| 1561 |
|
| 1562 |
Thanks to the `D. E. Shaw group <https://deshaw.com/>`__ for sponsoring |
| 1563 |
work on IPython and related libraries. |
| 1564 |
|
| 1565 |
|
| 1566 |
.. _version 8.3.0: |
| 1567 |
|
| 1568 |
IPython 8.3.0 |
| 1569 |
============= |
| 1570 |
|
| 1571 |
- :ghpull:`13625`, using ``?``, ``??``, ``*?`` will not call |
| 1572 |
``set_next_input`` as most frontend allow proper multiline editing and it was |
| 1573 |
causing issues for many users of multi-cell frontends. This has been backported to 7.33 |
| 1574 |
|
| 1575 |
|
| 1576 |
- :ghpull:`13600`, ``pre_run_*``-hooks will now have a ``cell_id`` attribute on |
| 1577 |
the info object when frontend provides it. This has been backported to 7.33 |
| 1578 |
|
| 1579 |
- :ghpull:`13624`, fixed :kbd:`End` key being broken after accepting an |
| 1580 |
auto-suggestion. |
| 1581 |
|
| 1582 |
- :ghpull:`13657` fixed an issue where history from different sessions would be mixed. |
| 1583 |
|
| 1584 |
.. _version 8.2.0: |
| 1585 |
|
| 1586 |
IPython 8.2.0 |
| 1587 |
============= |
| 1588 |
|
| 1589 |
IPython 8.2 mostly bring bugfixes to IPython. |
| 1590 |
|
| 1591 |
- Auto-suggestion can now be elected with the ``end`` key. :ghpull:`13566` |
| 1592 |
- Some traceback issues with ``assert etb is not None`` have been fixed. :ghpull:`13588` |
| 1593 |
- History is now pulled from the sqitel database and not from in-memory. |
| 1594 |
In particular when using the ``%paste`` magic, the content of the pasted text will |
| 1595 |
be part of the history and not the verbatim text ``%paste`` anymore. :ghpull:`13592` |
| 1596 |
- Fix ``Ctrl-\\`` exit cleanup :ghpull:`13603` |
| 1597 |
- Fixes to ``ultratb`` ipdb support when used outside of IPython. :ghpull:`13498` |
| 1598 |
|
| 1599 |
|
| 1600 |
I am still trying to fix and investigate :ghissue:`13598`, which seems to be |
| 1601 |
random, and would appreciate help if you find a reproducible minimal case. I've |
| 1602 |
tried to make various changes to the codebase to mitigate it, but a proper fix |
| 1603 |
will be difficult without understanding the cause. |
| 1604 |
|
| 1605 |
|
| 1606 |
All the issues on pull-requests for this release can be found in the `8.2 |
| 1607 |
milestone. <https://github.com/ipython/ipython/milestone/100>`__ . And some |
| 1608 |
documentation only PR can be found as part of the `7.33 milestone |
| 1609 |
<https://github.com/ipython/ipython/milestone/101>`__ (currently not released). |
| 1610 |
|
| 1611 |
Thanks to the `D. E. Shaw group <https://deshaw.com/>`__ for sponsoring |
| 1612 |
work on IPython and related libraries. |
| 1613 |
|
| 1614 |
.. _version 8.1.1: |
| 1615 |
|
| 1616 |
IPython 8.1.1 |
| 1617 |
============= |
| 1618 |
|
| 1619 |
Fix an issue with virtualenv and Python 3.8 introduced in 8.1 |
| 1620 |
|
| 1621 |
Revert :ghpull:`13537` (fix an issue with symlinks in virtualenv) that raises an |
| 1622 |
error in Python 3.8, and fixed in a different way in :ghpull:`13559`. |
| 1623 |
|
| 1624 |
.. _version 8.1: |
| 1625 |
|
| 1626 |
IPython 8.1.0 |
| 1627 |
============= |
| 1628 |
|
| 1629 |
IPython 8.1 is the first minor release after 8.0 and fixes a number of bugs and |
| 1630 |
updates a few behaviors that were problematic with the 8.0 as with many new major |
| 1631 |
release. |
| 1632 |
|
| 1633 |
Note that beyond the changes listed here, IPython 8.1.0 also contains all the |
| 1634 |
features listed in :ref:`version 7.32`. |
| 1635 |
|
| 1636 |
- Misc and multiple fixes around quotation auto-closing. It is now disabled by |
| 1637 |
default. Run with ``TerminalInteractiveShell.auto_match=True`` to re-enabled |
| 1638 |
- Require pygments>=2.4.0 :ghpull:`13459`, this was implicit in the code, but |
| 1639 |
is now explicit in ``setup.cfg``/``setup.py`` |
| 1640 |
- Docs improvement of ``core.magic_arguments`` examples. :ghpull:`13433` |
| 1641 |
- Multi-line edit executes too early with await. :ghpull:`13424` |
| 1642 |
|
| 1643 |
- ``black`` is back as an optional dependency, and autoformatting disabled by |
| 1644 |
default until some fixes are implemented (black improperly reformat magics). |
| 1645 |
:ghpull:`13471` Additionally the ability to use ``yapf`` as a code |
| 1646 |
reformatter has been added :ghpull:`13528` . You can use |
| 1647 |
``TerminalInteractiveShell.autoformatter="black"``, |
| 1648 |
``TerminalInteractiveShell.autoformatter="yapf"`` to re-enable auto formatting |
| 1649 |
with black, or switch to yapf. |
| 1650 |
|
| 1651 |
- Fix and issue where ``display`` was not defined. |
| 1652 |
|
| 1653 |
- Auto suggestions are now configurable. Currently only |
| 1654 |
``AutoSuggestFromHistory`` (default) and ``None``. new provider contribution |
| 1655 |
welcomed. :ghpull:`13475` |
| 1656 |
|
| 1657 |
- multiple packaging/testing improvement to simplify downstream packaging |
| 1658 |
(xfail with reasons, try to not access network...). |
| 1659 |
|
| 1660 |
- Update deprecation. ``InteractiveShell.magic`` internal method has been |
| 1661 |
deprecated for many years but did not emit a warning until now. |
| 1662 |
|
| 1663 |
- internal ``appended_to_syspath`` context manager has been deprecated. |
| 1664 |
|
| 1665 |
- fix an issue with symlinks in virtualenv :ghpull:`13537` (Reverted in 8.1.1) |
| 1666 |
|
| 1667 |
- Fix an issue with vim mode, where cursor would not be reset on exit :ghpull:`13472` |
| 1668 |
|
| 1669 |
- ipython directive now remove only known pseudo-decorators :ghpull:`13532` |
| 1670 |
|
| 1671 |
- ``IPython/lib/security`` which used to be used for jupyter notebook has been |
| 1672 |
removed. |
| 1673 |
|
| 1674 |
- Fix an issue where ``async with`` would execute on new lines. :ghpull:`13436` |
| 1675 |
|
| 1676 |
|
| 1677 |
We want to remind users that IPython is part of the Jupyter organisations, and |
| 1678 |
thus governed by a Code of Conduct. Some of the behavior we have seen on GitHub is not acceptable. |
| 1679 |
Abuse and non-respectful comments on discussion will not be tolerated. |
| 1680 |
|
| 1681 |
Many thanks to all the contributors to this release, many of the above fixed issues and |
| 1682 |
new features were done by first time contributors, showing there is still |
| 1683 |
plenty of easy contribution possible in IPython |
| 1684 |
. You can find all individual contributions |
| 1685 |
to this milestone `on github <https://github.com/ipython/ipython/milestone/91>`__. |
| 1686 |
|
| 1687 |
Thanks as well to the `D. E. Shaw group <https://deshaw.com/>`__ for sponsoring |
| 1688 |
work on IPython and related libraries. In particular the Lazy autoloading of |
| 1689 |
magics that you will find described in the 7.32 release notes. |
| 1690 |
|
| 1691 |
|
| 1692 |
.. _version 8.0.1: |
| 1693 |
|
| 1694 |
IPython 8.0.1 (CVE-2022-21699) |
| 1695 |
============================== |
| 1696 |
|
| 1697 |
IPython 8.0.1, 7.31.1 and 5.11 are security releases that change some default |
| 1698 |
values in order to prevent potential Execution with Unnecessary Privileges. |
| 1699 |
|
| 1700 |
Almost all version of IPython looks for configuration and profiles in current |
| 1701 |
working directory. Since IPython was developed before pip and environments |
| 1702 |
existed it was used a convenient way to load code/packages in a project |
| 1703 |
dependent way. |
| 1704 |
|
| 1705 |
In 2022, it is not necessary anymore, and can lead to confusing behavior where |
| 1706 |
for example cloning a repository and starting IPython or loading a notebook from |
| 1707 |
any Jupyter-Compatible interface that has ipython set as a kernel can lead to |
| 1708 |
code execution. |
| 1709 |
|
| 1710 |
|
| 1711 |
I did not find any standard way for packaged to advertise CVEs they fix, I'm |
| 1712 |
thus trying to add a ``__patched_cves__`` attribute to the IPython module that |
| 1713 |
list the CVEs that should have been fixed. This attribute is informational only |
| 1714 |
as if a executable has a flaw, this value can always be changed by an attacker. |
| 1715 |
|
| 1716 |
.. code:: |
| 1717 |
|
| 1718 |
In [1]: import IPython |
| 1719 |
|
| 1720 |
In [2]: IPython.__patched_cves__ |
| 1721 |
Out[2]: {'CVE-2022-21699'} |
| 1722 |
|
| 1723 |
In [3]: 'CVE-2022-21699' in IPython.__patched_cves__ |
| 1724 |
Out[3]: True |
| 1725 |
|
| 1726 |
Thus starting with this version: |
| 1727 |
|
| 1728 |
- The current working directory is not searched anymore for profiles or |
| 1729 |
configurations files. |
| 1730 |
- Added a ``__patched_cves__`` attribute (set of strings) to IPython module that contain |
| 1731 |
the list of fixed CVE. This is informational only. |
| 1732 |
|
| 1733 |
Further details can be read on the `GitHub Advisory <https://github.com/ipython/ipython/security/advisories/GHSA-pq7m-3gw7-gq5x>`__ |
| 1734 |
|
| 1735 |
|
| 1736 |
.. _version 8.0: |
| 1737 |
|
| 1738 |
IPython 8.0 |
| 1739 |
=========== |
| 1740 |
|
| 1741 |
IPython 8.0 is bringing a large number of new features and improvements to both the |
| 1742 |
user of the terminal and of the kernel via Jupyter. The removal of compatibility |
| 1743 |
with an older version of Python is also the opportunity to do a couple of |
| 1744 |
performance improvements in particular with respect to startup time. |
| 1745 |
The 8.x branch started diverging from its predecessor around IPython 7.12 |
| 1746 |
(January 2020). |
| 1747 |
|
| 1748 |
This release contains 250+ pull requests, in addition to many of the features |
| 1749 |
and backports that have made it to the 7.x branch. Please see the |
| 1750 |
`8.0 milestone <https://github.com/ipython/ipython/milestone/73?closed=1>`__ for the full list of pull requests. |
| 1751 |
|
| 1752 |
Please feel free to send pull requests to update those notes after release, |
| 1753 |
I have likely forgotten a few things reviewing 250+ PRs. |
| 1754 |
|
| 1755 |
Dependencies changes/downstream packaging |
| 1756 |
----------------------------------------- |
| 1757 |
|
| 1758 |
Most of our building steps have been changed to be (mostly) declarative |
| 1759 |
and follow PEP 517. We are trying to completely remove ``setup.py`` (:ghpull:`13238`) and are |
| 1760 |
looking for help to do so. |
| 1761 |
|
| 1762 |
- minimum supported ``traitlets`` version is now 5+ |
| 1763 |
- we now require ``stack_data`` |
| 1764 |
- minimal Python is now 3.8 |
| 1765 |
- ``nose`` is not a testing requirement anymore |
| 1766 |
- ``pytest`` replaces nose. |
| 1767 |
- ``iptest``/``iptest3`` cli entrypoints do not exist anymore. |
| 1768 |
- the minimum officially supported ``numpy`` version has been bumped, but this should |
| 1769 |
not have much effect on packaging. |
| 1770 |
|
| 1771 |
|
| 1772 |
Deprecation and removal |
| 1773 |
----------------------- |
| 1774 |
|
| 1775 |
We removed almost all features, arguments, functions, and modules that were |
| 1776 |
marked as deprecated between IPython 1.0 and 5.0. As a reminder, 5.0 was released |
| 1777 |
in 2016, and 1.0 in 2013. Last release of the 5 branch was 5.10.0, in May 2020. |
| 1778 |
The few remaining deprecated features we left have better deprecation warnings |
| 1779 |
or have been turned into explicit errors for better error messages. |
| 1780 |
|
| 1781 |
I will use this occasion to add the following requests to anyone emitting a |
| 1782 |
deprecation warning: |
| 1783 |
|
| 1784 |
- Please add at least ``stacklevel=2`` so that the warning is emitted into the |
| 1785 |
caller context, and not the callee one. |
| 1786 |
- Please add **since which version** something is deprecated. |
| 1787 |
|
| 1788 |
As a side note, it is much easier to conditionally compare version |
| 1789 |
numbers rather than using ``try/except`` when functionality changes with a version. |
| 1790 |
|
| 1791 |
I won't list all the removed features here, but modules like ``IPython.kernel``, |
| 1792 |
which was just a shim module around ``ipykernel`` for the past 8 years, have been |
| 1793 |
removed, and so many other similar things that pre-date the name **Jupyter** |
| 1794 |
itself. |
| 1795 |
|
| 1796 |
We no longer need to add ``IPython.extensions`` to the PYTHONPATH because that is being |
| 1797 |
handled by ``load_extension``. |
| 1798 |
|
| 1799 |
We are also removing ``Cythonmagic``, ``sympyprinting`` and ``rmagic`` as they are now in |
| 1800 |
other packages and no longer need to be inside IPython. |
| 1801 |
|
| 1802 |
|
| 1803 |
Documentation |
| 1804 |
------------- |
| 1805 |
|
| 1806 |
The majority of our docstrings have now been reformatted and automatically fixed by |
| 1807 |
the experimental `Vélin <https://pypi.org/project/velin/>`_ project to conform |
| 1808 |
to numpydoc. |
| 1809 |
|
| 1810 |
Type annotations |
| 1811 |
---------------- |
| 1812 |
|
| 1813 |
While IPython itself is highly dynamic and can't be completely typed, many of |
| 1814 |
the functions now have type annotations, and part of the codebase is now checked |
| 1815 |
by mypy. |
| 1816 |
|
| 1817 |
|
| 1818 |
Featured changes |
| 1819 |
---------------- |
| 1820 |
|
| 1821 |
Here is a features list of changes in IPython 8.0. This is of course non-exhaustive. |
| 1822 |
Please note as well that many features have been added in the 7.x branch as well |
| 1823 |
(and hence why you want to read the 7.x what's new notes), in particular |
| 1824 |
features contributed by QuantStack (with respect to debugger protocol and Xeus |
| 1825 |
Python), as well as many debugger features that I was pleased to implement as |
| 1826 |
part of my work at QuanSight and sponsored by DE Shaw. |
| 1827 |
|
| 1828 |
Traceback improvements |
| 1829 |
~~~~~~~~~~~~~~~~~~~~~~ |
| 1830 |
|
| 1831 |
Previously, error tracebacks for errors happening in code cells were showing a |
| 1832 |
hash, the one used for compiling the Python AST:: |
| 1833 |
|
| 1834 |
In [1]: def foo(): |
| 1835 |
...: return 3 / 0 |
| 1836 |
...: |
| 1837 |
|
| 1838 |
In [2]: foo() |
| 1839 |
--------------------------------------------------------------------------- |
| 1840 |
ZeroDivisionError Traceback (most recent call last) |
| 1841 |
<ipython-input-2-c19b6d9633cf> in <module> |
| 1842 |
----> 1 foo() |
| 1843 |
|
| 1844 |
<ipython-input-1-1595a74c32d5> in foo() |
| 1845 |
1 def foo(): |
| 1846 |
----> 2 return 3 / 0 |
| 1847 |
3 |
| 1848 |
|
| 1849 |
ZeroDivisionError: division by zero |
| 1850 |
|
| 1851 |
The error traceback is now correctly formatted, showing the cell number in which the error happened:: |
| 1852 |
|
| 1853 |
In [1]: def foo(): |
| 1854 |
...: return 3 / 0 |
| 1855 |
...: |
| 1856 |
|
| 1857 |
Input In [2]: foo() |
| 1858 |
--------------------------------------------------------------------------- |
| 1859 |
ZeroDivisionError Traceback (most recent call last) |
| 1860 |
input In [2], in <module> |
| 1861 |
----> 1 foo() |
| 1862 |
|
| 1863 |
Input In [1], in foo() |
| 1864 |
1 def foo(): |
| 1865 |
----> 2 return 3 / 0 |
| 1866 |
|
| 1867 |
ZeroDivisionError: division by zero |
| 1868 |
|
| 1869 |
The ``stack_data`` package has been integrated, which provides smarter information in the traceback; |
| 1870 |
in particular it will highlight the AST node where an error occurs which can help to quickly narrow down errors. |
| 1871 |
|
| 1872 |
For example in the following snippet:: |
| 1873 |
|
| 1874 |
def foo(i): |
| 1875 |
x = [[[0]]] |
| 1876 |
return x[0][i][0] |
| 1877 |
|
| 1878 |
|
| 1879 |
def bar(): |
| 1880 |
return foo(0) + foo( |
| 1881 |
1 |
| 1882 |
) + foo(2) |
| 1883 |
|
| 1884 |
|
| 1885 |
calling ``bar()`` would raise an ``IndexError`` on the return line of ``foo``, |
| 1886 |
and IPython 8.0 is capable of telling you where the index error occurs:: |
| 1887 |
|
| 1888 |
|
| 1889 |
IndexError |
| 1890 |
Input In [2], in <module> |
| 1891 |
----> 1 bar() |
| 1892 |
^^^^^ |
| 1893 |
|
| 1894 |
Input In [1], in bar() |
| 1895 |
6 def bar(): |
| 1896 |
----> 7 return foo(0) + foo( |
| 1897 |
^^^^ |
| 1898 |
8 1 |
| 1899 |
^^^^^^^^ |
| 1900 |
9 ) + foo(2) |
| 1901 |
^^^^ |
| 1902 |
|
| 1903 |
Input In [1], in foo(i) |
| 1904 |
1 def foo(i): |
| 1905 |
2 x = [[[0]]] |
| 1906 |
----> 3 return x[0][i][0] |
| 1907 |
^^^^^^^ |
| 1908 |
|
| 1909 |
The corresponding locations marked here with ``^`` will show up highlighted in |
| 1910 |
the terminal and notebooks. |
| 1911 |
|
| 1912 |
Finally, a colon ``::`` and line number is appended after a filename in |
| 1913 |
traceback:: |
| 1914 |
|
| 1915 |
|
| 1916 |
ZeroDivisionError Traceback (most recent call last) |
| 1917 |
File ~/error.py:4, in <module> |
| 1918 |
1 def f(): |
| 1919 |
2 1/0 |
| 1920 |
----> 4 f() |
| 1921 |
|
| 1922 |
File ~/error.py:2, in f() |
| 1923 |
1 def f(): |
| 1924 |
----> 2 1/0 |
| 1925 |
|
| 1926 |
Many terminals and editors have integrations enabling you to directly jump to the |
| 1927 |
relevant file/line when this syntax is used, so this small addition may have a high |
| 1928 |
impact on productivity. |
| 1929 |
|
| 1930 |
|
| 1931 |
Autosuggestions |
| 1932 |
~~~~~~~~~~~~~~~ |
| 1933 |
|
| 1934 |
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>`__. |
| 1935 |
|
| 1936 |
`Ptpython <https://github.com/prompt-toolkit/ptpython#ptpython>`__ allows users to enable this feature in |
| 1937 |
`ptpython/config.py <https://github.com/prompt-toolkit/ptpython/blob/master/examples/ptpython_config/config.py#L90>`__. |
| 1938 |
|
| 1939 |
This feature allows users to accept autosuggestions with ctrl e, ctrl f, |
| 1940 |
or right arrow as described below. |
| 1941 |
|
| 1942 |
1. Start ipython |
| 1943 |
|
| 1944 |
.. image:: ../_images/8.0/auto_suggest_1_prompt_no_text.png |
| 1945 |
|
| 1946 |
2. Run ``print("hello")`` |
| 1947 |
|
| 1948 |
.. image:: ../_images/8.0/auto_suggest_2_print_hello_suggest.png |
| 1949 |
|
| 1950 |
3. start typing ``print`` again to see the autosuggestion |
| 1951 |
|
| 1952 |
.. image:: ../_images/8.0/auto_suggest_3_print_hello_suggest.png |
| 1953 |
|
| 1954 |
4. Press ``ctrl-f``, or ``ctrl-e``, or ``right-arrow`` to accept the suggestion |
| 1955 |
|
| 1956 |
.. image:: ../_images/8.0/auto_suggest_4_print_hello.png |
| 1957 |
|
| 1958 |
You can also complete word by word: |
| 1959 |
|
| 1960 |
1. Run ``def say_hello(): print("hello")`` |
| 1961 |
|
| 1962 |
.. image:: ../_images/8.0/auto_suggest_second_prompt.png |
| 1963 |
|
| 1964 |
2. Start typing the first letter if ``def`` to see the autosuggestion |
| 1965 |
|
| 1966 |
.. image:: ../_images/8.0/auto_suggest_d_phantom.png |
| 1967 |
|
| 1968 |
3. Press ``alt-f`` (or ``escape`` followed by ``f``), to accept the first word of the suggestion |
| 1969 |
|
| 1970 |
.. image:: ../_images/8.0/auto_suggest_def_phantom.png |
| 1971 |
|
| 1972 |
Importantly, this feature does not interfere with tab completion: |
| 1973 |
|
| 1974 |
1. After running ``def say_hello(): print("hello")``, press d |
| 1975 |
|
| 1976 |
.. image:: ../_images/8.0/auto_suggest_d_phantom.png |
| 1977 |
|
| 1978 |
2. Press Tab to start tab completion |
| 1979 |
|
| 1980 |
.. image:: ../_images/8.0/auto_suggest_d_completions.png |
| 1981 |
|
| 1982 |
3A. Press Tab again to select the first option |
| 1983 |
|
| 1984 |
.. image:: ../_images/8.0/auto_suggest_def_completions.png |
| 1985 |
|
| 1986 |
3B. Press ``alt f`` (``escape``, ``f``) to accept to accept the first word of the suggestion |
| 1987 |
|
| 1988 |
.. image:: ../_images/8.0/auto_suggest_def_phantom.png |
| 1989 |
|
| 1990 |
3C. Press ``ctrl-f`` or ``ctrl-e`` to accept the entire suggestion |
| 1991 |
|
| 1992 |
.. image:: ../_images/8.0/auto_suggest_match_parens.png |
| 1993 |
|
| 1994 |
|
| 1995 |
Currently, autosuggestions are only shown in the emacs or vi insert editing modes: |
| 1996 |
|
| 1997 |
- The ctrl e, ctrl f, and alt f shortcuts work by default in emacs mode. |
| 1998 |
- 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/>`__. |
| 1999 |
|
| 2000 |
|
| 2001 |
Show pinfo information in ipdb using "?" and "??" |
| 2002 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 2003 |
|
| 2004 |
In IPDB, it is now possible to show the information about an object using "?" |
| 2005 |
and "??", in much the same way that it can be done when using the IPython prompt:: |
| 2006 |
|
| 2007 |
ipdb> partial? |
| 2008 |
Init signature: partial(self, /, *args, **kwargs) |
| 2009 |
Docstring: |
| 2010 |
partial(func, *args, **keywords) - new function with partial application |
| 2011 |
of the given arguments and keywords. |
| 2012 |
File: ~/.pyenv/versions/3.8.6/lib/python3.8/functools.py |
| 2013 |
Type: type |
| 2014 |
Subclasses: |
| 2015 |
|
| 2016 |
Previously, ``pinfo`` or ``pinfo2`` command had to be used for this purpose. |
| 2017 |
|
| 2018 |
|
| 2019 |
Autoreload 3 feature |
| 2020 |
~~~~~~~~~~~~~~~~~~~~ |
| 2021 |
|
| 2022 |
Example: When an IPython session is run with the 'autoreload' extension loaded, |
| 2023 |
you will now have the option '3' to select, which means the following: |
| 2024 |
|
| 2025 |
1. replicate all functionality from option 2 |
| 2026 |
2. autoload all new funcs/classes/enums/globals from the module when they are added |
| 2027 |
3. autoload all newly imported funcs/classes/enums/globals from external modules |
| 2028 |
|
| 2029 |
Try ``%autoreload 3`` in an IPython session after running ``%load_ext autoreload``. |
| 2030 |
|
| 2031 |
For more information please see the following unit test : ``extensions/tests/test_autoreload.py:test_autoload_newly_added_objects`` |
| 2032 |
|
| 2033 |
Auto formatting with black in the CLI |
| 2034 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 2035 |
|
| 2036 |
This feature was present in 7.x, but disabled by default. |
| 2037 |
|
| 2038 |
In 8.0, input was automatically reformatted with Black when black was installed. |
| 2039 |
This feature has been reverted for the time being. |
| 2040 |
You can re-enable it by setting ``TerminalInteractiveShell.autoformatter`` to ``"black"`` |
| 2041 |
|
| 2042 |
History Range Glob feature |
| 2043 |
~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 2044 |
|
| 2045 |
Previously, when using ``%history``, users could specify either |
| 2046 |
a range of sessions and lines, for example: |
| 2047 |
|
| 2048 |
.. code-block:: python |
| 2049 |
|
| 2050 |
~8/1-~6/5 # see history from the first line of 8 sessions ago, |
| 2051 |
# to the fifth line of 6 sessions ago.`` |
| 2052 |
|
| 2053 |
Or users could specify a glob pattern: |
| 2054 |
|
| 2055 |
.. code-block:: python |
| 2056 |
|
| 2057 |
-g <pattern> # glob ALL history for the specified pattern. |
| 2058 |
|
| 2059 |
However users could *not* specify both. |
| 2060 |
|
| 2061 |
If a user *did* specify both a range and a glob pattern, |
| 2062 |
then the glob pattern would be used (globbing *all* history) *and the range would be ignored*. |
| 2063 |
|
| 2064 |
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. |
| 2065 |
|
| 2066 |
Don't start a multi-line cell with sunken parenthesis |
| 2067 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 2068 |
|
| 2069 |
From now on, IPython will not ask for the next line of input when given a single |
| 2070 |
line with more closing than opening brackets. For example, this means that if |
| 2071 |
you (mis)type ``]]`` instead of ``[]``, a ``SyntaxError`` will show up, instead of |
| 2072 |
the ``...:`` prompt continuation. |
| 2073 |
|
| 2074 |
IPython shell for ipdb interact |
| 2075 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 2076 |
|
| 2077 |
The ipdb ``interact`` starts an IPython shell instead of Python's built-in ``code.interact()``. |
| 2078 |
|
| 2079 |
Automatic Vi prompt stripping |
| 2080 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 2081 |
|
| 2082 |
When pasting code into IPython, it will strip the leading prompt characters if |
| 2083 |
there are any. For example, you can paste the following code into the console - |
| 2084 |
it will still work, even though each line is prefixed with prompts (``In``, |
| 2085 |
``Out``):: |
| 2086 |
|
| 2087 |
In [1]: 2 * 2 == 4 |
| 2088 |
Out[1]: True |
| 2089 |
|
| 2090 |
In [2]: print("This still works as pasted") |
| 2091 |
|
| 2092 |
|
| 2093 |
Previously, this was not the case for the Vi-mode prompts:: |
| 2094 |
|
| 2095 |
In [1]: [ins] In [13]: 2 * 2 == 4 |
| 2096 |
...: Out[13]: True |
| 2097 |
...: |
| 2098 |
File "<ipython-input-1-727bb88eaf33>", line 1 |
| 2099 |
[ins] In [13]: 2 * 2 == 4 |
| 2100 |
^ |
| 2101 |
SyntaxError: invalid syntax |
| 2102 |
|
| 2103 |
This is now fixed, and Vi prompt prefixes - ``[ins]`` and ``[nav]`` - are |
| 2104 |
skipped just as the normal ``In`` would be. |
| 2105 |
|
| 2106 |
IPython shell can be started in the Vi mode using ``ipython --TerminalInteractiveShell.editing_mode=vi``, |
| 2107 |
You should be able to change mode dynamically with ``%config TerminalInteractiveShell.editing_mode='vi'`` |
| 2108 |
|
| 2109 |
Empty History Ranges |
| 2110 |
~~~~~~~~~~~~~~~~~~~~ |
| 2111 |
|
| 2112 |
A number of magics that take history ranges can now be used with an empty |
| 2113 |
range. These magics are: |
| 2114 |
|
| 2115 |
* ``%save`` |
| 2116 |
* ``%load`` |
| 2117 |
* ``%pastebin`` |
| 2118 |
* ``%pycat`` |
| 2119 |
|
| 2120 |
Using them this way will make them take the history of the current session up |
| 2121 |
to the point of the magic call (such that the magic itself will not be |
| 2122 |
included). |
| 2123 |
|
| 2124 |
Therefore it is now possible to save the whole history to a file using |
| 2125 |
``%save <filename>``, load and edit it using ``%load`` (makes for a nice usage |
| 2126 |
when followed with :kbd:`F2`), send it to `dpaste.org <http://dpast.org>`_ using |
| 2127 |
``%pastebin``, or view the whole thing syntax-highlighted with a single |
| 2128 |
``%pycat``. |
| 2129 |
|
| 2130 |
|
| 2131 |
Windows timing implementation: Switch to process_time |
| 2132 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 2133 |
Timing on Windows, for example with ``%%time``, was changed from being based on ``time.perf_counter`` |
| 2134 |
(which counted time even when the process was sleeping) to being based on ``time.process_time`` instead |
| 2135 |
(which only counts CPU time). This brings it closer to the behavior on Linux. See :ghpull:`12984`. |
| 2136 |
|
| 2137 |
Miscellaneous |
| 2138 |
~~~~~~~~~~~~~ |
| 2139 |
- Non-text formatters are not disabled in the terminal, which should simplify |
| 2140 |
writing extensions displaying images or other mimetypes in supporting terminals. |
| 2141 |
:ghpull:`12315` |
| 2142 |
- It is now possible to automatically insert matching brackets in Terminal IPython using the |
| 2143 |
``TerminalInteractiveShell.auto_match=True`` option. :ghpull:`12586` |
| 2144 |
- We are thinking of deprecating the current ``%%javascript`` magic in favor of a better replacement. See :ghpull:`13376`. |
| 2145 |
- ``~`` is now expanded when part of a path in most magics :ghpull:`13385` |
| 2146 |
- ``%/%%timeit`` magic now adds a comma every thousands to make reading a long number easier :ghpull:`13379` |
| 2147 |
- ``"info"`` messages can now be customised to hide some fields :ghpull:`13343` |
| 2148 |
- ``collections.UserList`` now pretty-prints :ghpull:`13320` |
| 2149 |
- The debugger now has a persistent history, which should make it less |
| 2150 |
annoying to retype commands :ghpull:`13246` |
| 2151 |
- ``!pip`` ``!conda`` ``!cd`` or ``!ls`` are likely doing the wrong thing. We |
| 2152 |
now warn users if they use one of those commands. :ghpull:`12954` |
| 2153 |
- Make ``%precision`` work for ``numpy.float64`` type :ghpull:`12902` |
| 2154 |
|
| 2155 |
Re-added support for XDG config directories |
| 2156 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 2157 |
|
| 2158 |
XDG support through the years comes and goes. There is a tension between having |
| 2159 |
an identical location for configuration in all platforms versus having simple instructions. |
| 2160 |
After initial failures a couple of years ago, IPython was modified to automatically migrate XDG |
| 2161 |
config files back into ``~/.ipython``. That migration code has now been removed. |
| 2162 |
IPython now checks the XDG locations, so if you _manually_ move your config |
| 2163 |
files to your preferred location, IPython will not move them back. |
| 2164 |
|
| 2165 |
|
| 2166 |
Preparing for Python 3.10 |
| 2167 |
------------------------- |
| 2168 |
|
| 2169 |
To prepare for Python 3.10, we have started working on removing reliance and |
| 2170 |
any dependency that is not compatible with Python 3.10. This includes migrating our |
| 2171 |
test suite to pytest and starting to remove nose. This also means that the |
| 2172 |
``iptest`` command is now gone and all testing is via pytest. |
| 2173 |
|
| 2174 |
This was in large part thanks to the NumFOCUS Small Developer grant, which enabled us to |
| 2175 |
allocate \$4000 to hire `Nikita Kniazev (@Kojoley) <https://github.com/Kojoley>`_, |
| 2176 |
who did a fantastic job at updating our code base, migrating to pytest, pushing |
| 2177 |
our coverage, and fixing a large number of bugs. I highly recommend contacting |
| 2178 |
them if you need help with C++ and Python projects. |
| 2179 |
|
| 2180 |
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+>`__ |
| 2181 |
|
| 2182 |
Removing support for older Python versions |
| 2183 |
------------------------------------------ |
| 2184 |
|
| 2185 |
|
| 2186 |
We are removing support for Python up through 3.7, allowing internal code to use the more |
| 2187 |
efficient ``pathlib`` and to make better use of type annotations. |
| 2188 |
|
| 2189 |
.. image:: ../_images/8.0/pathlib_pathlib_everywhere.jpg |
| 2190 |
:alt: "Meme image of Toy Story with Woody and Buzz, with the text 'pathlib, pathlib everywhere'" |
| 2191 |
|
| 2192 |
|
| 2193 |
We had about 34 PRs only to update some logic to update some functions from managing strings to |
| 2194 |
using Pathlib. |
| 2195 |
|
| 2196 |
The completer has also seen significant updates and now makes use of newer Jedi APIs, |
| 2197 |
offering faster and more reliable tab completion. |
| 2198 |
|
| 2199 |
Misc Statistics |
| 2200 |
--------------- |
| 2201 |
|
| 2202 |
Here are some numbers:: |
| 2203 |
|
| 2204 |
7.x: 296 files, 12561 blank lines, 20282 comments, 35142 line of code. |
| 2205 |
8.0: 252 files, 12053 blank lines, 19232 comments, 34505 line of code. |
| 2206 |
|
| 2207 |
$ git diff --stat 7.x...master | tail -1 |
| 2208 |
340 files changed, 13399 insertions(+), 12421 deletions(-) |
| 2209 |
|
| 2210 |
We have commits from 162 authors, who contributed 1916 commits in 23 month, excluding merges (to not bias toward |
| 2211 |
maintainers pushing buttons).:: |
| 2212 |
|
| 2213 |
$ git shortlog -s --no-merges 7.x...master | sort -nr |
| 2214 |
535 Matthias Bussonnier |
| 2215 |
86 Nikita Kniazev |
| 2216 |
69 Blazej Michalik |
| 2217 |
49 Samuel Gaist |
| 2218 |
27 Itamar Turner-Trauring |
| 2219 |
18 Spas Kalaydzhisyki |
| 2220 |
17 Thomas Kluyver |
| 2221 |
17 Quentin Peter |
| 2222 |
17 James Morris |
| 2223 |
17 Artur Svistunov |
| 2224 |
15 Bart Skowron |
| 2225 |
14 Alex Hall |
| 2226 |
13 rushabh-v |
| 2227 |
13 Terry Davis |
| 2228 |
13 Benjamin Ragan-Kelley |
| 2229 |
8 martinRenou |
| 2230 |
8 farisachugthai |
| 2231 |
7 dswij |
| 2232 |
7 Gal B |
| 2233 |
7 Corentin Cadiou |
| 2234 |
6 yuji96 |
| 2235 |
6 Martin Skarzynski |
| 2236 |
6 Justin Palmer |
| 2237 |
6 Daniel Goldfarb |
| 2238 |
6 Ben Greiner |
| 2239 |
5 Sammy Al Hashemi |
| 2240 |
5 Paul Ivanov |
| 2241 |
5 Inception95 |
| 2242 |
5 Eyenpi |
| 2243 |
5 Douglas Blank |
| 2244 |
5 Coco Mishra |
| 2245 |
5 Bibo Hao |
| 2246 |
5 André A. Gomes |
| 2247 |
5 Ahmed Fasih |
| 2248 |
4 takuya fujiwara |
| 2249 |
4 palewire |
| 2250 |
4 Thomas A Caswell |
| 2251 |
4 Talley Lambert |
| 2252 |
4 Scott Sanderson |
| 2253 |
4 Ram Rachum |
| 2254 |
4 Nick Muoh |
| 2255 |
4 Nathan Goldbaum |
| 2256 |
4 Mithil Poojary |
| 2257 |
4 Michael T |
| 2258 |
4 Jakub Klus |
| 2259 |
4 Ian Castleden |
| 2260 |
4 Eli Rykoff |
| 2261 |
4 Ashwin Vishnu |
| 2262 |
3 谭九鼎 |
| 2263 |
3 sleeping |
| 2264 |
3 Sylvain Corlay |
| 2265 |
3 Peter Corke |
| 2266 |
3 Paul Bissex |
| 2267 |
3 Matthew Feickert |
| 2268 |
3 Fernando Perez |
| 2269 |
3 Eric Wieser |
| 2270 |
3 Daniel Mietchen |
| 2271 |
3 Aditya Sathe |
| 2272 |
3 007vedant |
| 2273 |
2 rchiodo |
| 2274 |
2 nicolaslazo |
| 2275 |
2 luttik |
| 2276 |
2 gorogoroumaru |
| 2277 |
2 foobarbyte |
| 2278 |
2 bar-hen |
| 2279 |
2 Theo Ouzhinski |
| 2280 |
2 Strawkage |
| 2281 |
2 Samreen Zarroug |
| 2282 |
2 Pete Blois |
| 2283 |
2 Meysam Azad |
| 2284 |
2 Matthieu Ancellin |
| 2285 |
2 Mark Schmitz |
| 2286 |
2 Maor Kleinberger |
| 2287 |
2 MRCWirtz |
| 2288 |
2 Lumir Balhar |
| 2289 |
2 Julien Rabinow |
| 2290 |
2 Juan Luis Cano Rodríguez |
| 2291 |
2 Joyce Er |
| 2292 |
2 Jakub |
| 2293 |
2 Faris A Chugthai |
| 2294 |
2 Ethan Madden |
| 2295 |
2 Dimitri Papadopoulos |
| 2296 |
2 Diego Fernandez |
| 2297 |
2 Daniel Shimon |
| 2298 |
2 Coco Bennett |
| 2299 |
2 Carlos Cordoba |
| 2300 |
2 Boyuan Liu |
| 2301 |
2 BaoGiang HoangVu |
| 2302 |
2 Augusto |
| 2303 |
2 Arthur Svistunov |
| 2304 |
2 Arthur Moreira |
| 2305 |
2 Ali Nabipour |
| 2306 |
2 Adam Hackbarth |
| 2307 |
1 richard |
| 2308 |
1 linar-jether |
| 2309 |
1 lbennett |
| 2310 |
1 juacrumar |
| 2311 |
1 gpotter2 |
| 2312 |
1 digitalvirtuoso |
| 2313 |
1 dalthviz |
| 2314 |
1 Yonatan Goldschmidt |
| 2315 |
1 Tomasz Kłoczko |
| 2316 |
1 Tobias Bengfort |
| 2317 |
1 Timur Kushukov |
| 2318 |
1 Thomas |
| 2319 |
1 Snir Broshi |
| 2320 |
1 Shao Yang Hong |
| 2321 |
1 Sanjana-03 |
| 2322 |
1 Romulo Filho |
| 2323 |
1 Rodolfo Carvalho |
| 2324 |
1 Richard Shadrach |
| 2325 |
1 Reilly Tucker Siemens |
| 2326 |
1 Rakessh Roshan |
| 2327 |
1 Piers Titus van der Torren |
| 2328 |
1 PhanatosZou |
| 2329 |
1 Pavel Safronov |
| 2330 |
1 Paulo S. Costa |
| 2331 |
1 Paul McCarthy |
| 2332 |
1 NotWearingPants |
| 2333 |
1 Naelson Douglas |
| 2334 |
1 Michael Tiemann |
| 2335 |
1 Matt Wozniski |
| 2336 |
1 Markus Wageringel |
| 2337 |
1 Marcus Wirtz |
| 2338 |
1 Marcio Mazza |
| 2339 |
1 Lumír 'Frenzy' Balhar |
| 2340 |
1 Lightyagami1 |
| 2341 |
1 Leon Anavi |
| 2342 |
1 LeafyLi |
| 2343 |
1 L0uisJ0shua |
| 2344 |
1 Kyle Cutler |
| 2345 |
1 Krzysztof Cybulski |
| 2346 |
1 Kevin Kirsche |
| 2347 |
1 KIU Shueng Chuan |
| 2348 |
1 Jonathan Slenders |
| 2349 |
1 Jay Qi |
| 2350 |
1 Jake VanderPlas |
| 2351 |
1 Iwan Briquemont |
| 2352 |
1 Hussaina Begum Nandyala |
| 2353 |
1 Gordon Ball |
| 2354 |
1 Gabriel Simonetto |
| 2355 |
1 Frank Tobia |
| 2356 |
1 Erik |
| 2357 |
1 Elliott Sales de Andrade |
| 2358 |
1 Daniel Hahler |
| 2359 |
1 Dan Green-Leipciger |
| 2360 |
1 Dan Green |
| 2361 |
1 Damian Yurzola |
| 2362 |
1 Coon, Ethan T |
| 2363 |
1 Carol Willing |
| 2364 |
1 Brian Lee |
| 2365 |
1 Brendan Gerrity |
| 2366 |
1 Blake Griffin |
| 2367 |
1 Bastian Ebeling |
| 2368 |
1 Bartosz Telenczuk |
| 2369 |
1 Ankitsingh6299 |
| 2370 |
1 Andrew Port |
| 2371 |
1 Andrew J. Hesford |
| 2372 |
1 Albert Zhang |
| 2373 |
1 Adam Johnson |
| 2374 |
|
| 2375 |
This does not, of course, represent non-code contributions, for which we are also grateful. |
| 2376 |
|
| 2377 |
|
| 2378 |
API Changes using Frappuccino |
| 2379 |
----------------------------- |
| 2380 |
|
| 2381 |
This is an experimental exhaustive API difference using `Frappuccino <https://pypi.org/project/frappuccino/>`_ |
| 2382 |
|
| 2383 |
|
| 2384 |
The following items are new in IPython 8.0 :: |
| 2385 |
|
| 2386 |
+ IPython.core.async_helpers.get_asyncio_loop() |
| 2387 |
+ IPython.core.completer.Dict |
| 2388 |
+ IPython.core.completer.Pattern |
| 2389 |
+ IPython.core.completer.Sequence |
| 2390 |
+ IPython.core.completer.__skip_doctest__ |
| 2391 |
+ IPython.core.debugger.Pdb.precmd(self, line) |
| 2392 |
+ IPython.core.debugger.__skip_doctest__ |
| 2393 |
+ IPython.core.display.__getattr__(name) |
| 2394 |
+ IPython.core.display.warn |
| 2395 |
+ IPython.core.display_functions |
| 2396 |
+ IPython.core.display_functions.DisplayHandle |
| 2397 |
+ IPython.core.display_functions.DisplayHandle.display(self, obj, **kwargs) |
| 2398 |
+ IPython.core.display_functions.DisplayHandle.update(self, obj, **kwargs) |
| 2399 |
+ IPython.core.display_functions.__all__ |
| 2400 |
+ IPython.core.display_functions.__builtins__ |
| 2401 |
+ IPython.core.display_functions.__cached__ |
| 2402 |
+ IPython.core.display_functions.__doc__ |
| 2403 |
+ IPython.core.display_functions.__file__ |
| 2404 |
+ IPython.core.display_functions.__loader__ |
| 2405 |
+ IPython.core.display_functions.__name__ |
| 2406 |
+ IPython.core.display_functions.__package__ |
| 2407 |
+ IPython.core.display_functions.__spec__ |
| 2408 |
+ IPython.core.display_functions.b2a_hex |
| 2409 |
+ IPython.core.display_functions.clear_output(wait=False) |
| 2410 |
+ IPython.core.display_functions.display(*objs, include='None', exclude='None', metadata='None', transient='None', display_id='None', raw=False, clear=False, **kwargs) |
| 2411 |
+ IPython.core.display_functions.publish_display_data(data, metadata='None', source='<deprecated>', *, transient='None', **kwargs) |
| 2412 |
+ IPython.core.display_functions.update_display(obj, *, display_id, **kwargs) |
| 2413 |
+ IPython.core.extensions.BUILTINS_EXTS |
| 2414 |
+ IPython.core.inputtransformer2.has_sunken_brackets(tokens) |
| 2415 |
+ IPython.core.interactiveshell.Callable |
| 2416 |
+ IPython.core.interactiveshell.__annotations__ |
| 2417 |
+ IPython.core.ultratb.List |
| 2418 |
+ IPython.core.ultratb.Tuple |
| 2419 |
+ IPython.lib.pretty.CallExpression |
| 2420 |
+ IPython.lib.pretty.CallExpression.factory(name) |
| 2421 |
+ IPython.lib.pretty.RawStringLiteral |
| 2422 |
+ IPython.lib.pretty.RawText |
| 2423 |
+ IPython.terminal.debugger.TerminalPdb.do_interact(self, arg) |
| 2424 |
+ IPython.terminal.embed.Set |
| 2425 |
|
| 2426 |
The following items have been removed (or moved to superclass):: |
| 2427 |
|
| 2428 |
- IPython.core.application.BaseIPythonApplication.initialize_subcommand |
| 2429 |
- IPython.core.completer.Sentinel |
| 2430 |
- IPython.core.completer.skip_doctest |
| 2431 |
- IPython.core.debugger.Tracer |
| 2432 |
- IPython.core.display.DisplayHandle |
| 2433 |
- IPython.core.display.DisplayHandle.display |
| 2434 |
- IPython.core.display.DisplayHandle.update |
| 2435 |
- IPython.core.display.b2a_hex |
| 2436 |
- IPython.core.display.clear_output |
| 2437 |
- IPython.core.display.display |
| 2438 |
- IPython.core.display.publish_display_data |
| 2439 |
- IPython.core.display.update_display |
| 2440 |
- IPython.core.excolors.Deprec |
| 2441 |
- IPython.core.excolors.ExceptionColors |
| 2442 |
- IPython.core.history.warn |
| 2443 |
- IPython.core.hooks.late_startup_hook |
| 2444 |
- IPython.core.hooks.pre_run_code_hook |
| 2445 |
- IPython.core.hooks.shutdown_hook |
| 2446 |
- IPython.core.interactiveshell.InteractiveShell.init_deprecation_warnings |
| 2447 |
- IPython.core.interactiveshell.InteractiveShell.init_readline |
| 2448 |
- IPython.core.interactiveshell.InteractiveShell.write |
| 2449 |
- IPython.core.interactiveshell.InteractiveShell.write_err |
| 2450 |
- IPython.core.interactiveshell.get_default_colors |
| 2451 |
- IPython.core.interactiveshell.removed_co_newlocals |
| 2452 |
- IPython.core.magics.execution.ExecutionMagics.profile_missing_notice |
| 2453 |
- IPython.core.magics.script.PIPE |
| 2454 |
- IPython.core.prefilter.PrefilterManager.init_transformers |
| 2455 |
- IPython.core.release.classifiers |
| 2456 |
- IPython.core.release.description |
| 2457 |
- IPython.core.release.keywords |
| 2458 |
- IPython.core.release.long_description |
| 2459 |
- IPython.core.release.name |
| 2460 |
- IPython.core.release.platforms |
| 2461 |
- IPython.core.release.url |
| 2462 |
- IPython.core.ultratb.VerboseTB.format_records |
| 2463 |
- IPython.core.ultratb.find_recursion |
| 2464 |
- IPython.core.ultratb.findsource |
| 2465 |
- IPython.core.ultratb.fix_frame_records_filenames |
| 2466 |
- IPython.core.ultratb.inspect_error |
| 2467 |
- IPython.core.ultratb.is_recursion_error |
| 2468 |
- IPython.core.ultratb.with_patch_inspect |
| 2469 |
- IPython.external.__all__ |
| 2470 |
- IPython.external.__builtins__ |
| 2471 |
- IPython.external.__cached__ |
| 2472 |
- IPython.external.__doc__ |
| 2473 |
- IPython.external.__file__ |
| 2474 |
- IPython.external.__loader__ |
| 2475 |
- IPython.external.__name__ |
| 2476 |
- IPython.external.__package__ |
| 2477 |
- IPython.external.__path__ |
| 2478 |
- IPython.external.__spec__ |
| 2479 |
- IPython.kernel.KernelConnectionInfo |
| 2480 |
- IPython.kernel.__builtins__ |
| 2481 |
- IPython.kernel.__cached__ |
| 2482 |
- IPython.kernel.__warningregistry__ |
| 2483 |
- IPython.kernel.pkg |
| 2484 |
- IPython.kernel.protocol_version |
| 2485 |
- IPython.kernel.protocol_version_info |
| 2486 |
- IPython.kernel.src |
| 2487 |
- IPython.kernel.version_info |
| 2488 |
- IPython.kernel.warn |
| 2489 |
- IPython.lib.backgroundjobs |
| 2490 |
- IPython.lib.backgroundjobs.BackgroundJobBase |
| 2491 |
- IPython.lib.backgroundjobs.BackgroundJobBase.run |
| 2492 |
- IPython.lib.backgroundjobs.BackgroundJobBase.traceback |
| 2493 |
- IPython.lib.backgroundjobs.BackgroundJobExpr |
| 2494 |
- IPython.lib.backgroundjobs.BackgroundJobExpr.call |
| 2495 |
- IPython.lib.backgroundjobs.BackgroundJobFunc |
| 2496 |
- IPython.lib.backgroundjobs.BackgroundJobFunc.call |
| 2497 |
- IPython.lib.backgroundjobs.BackgroundJobManager |
| 2498 |
- IPython.lib.backgroundjobs.BackgroundJobManager.flush |
| 2499 |
- IPython.lib.backgroundjobs.BackgroundJobManager.new |
| 2500 |
- IPython.lib.backgroundjobs.BackgroundJobManager.remove |
| 2501 |
- IPython.lib.backgroundjobs.BackgroundJobManager.result |
| 2502 |
- IPython.lib.backgroundjobs.BackgroundJobManager.status |
| 2503 |
- IPython.lib.backgroundjobs.BackgroundJobManager.traceback |
| 2504 |
- IPython.lib.backgroundjobs.__builtins__ |
| 2505 |
- IPython.lib.backgroundjobs.__cached__ |
| 2506 |
- IPython.lib.backgroundjobs.__doc__ |
| 2507 |
- IPython.lib.backgroundjobs.__file__ |
| 2508 |
- IPython.lib.backgroundjobs.__loader__ |
| 2509 |
- IPython.lib.backgroundjobs.__name__ |
| 2510 |
- IPython.lib.backgroundjobs.__package__ |
| 2511 |
- IPython.lib.backgroundjobs.__spec__ |
| 2512 |
- IPython.lib.kernel.__builtins__ |
| 2513 |
- IPython.lib.kernel.__cached__ |
| 2514 |
- IPython.lib.kernel.__doc__ |
| 2515 |
- IPython.lib.kernel.__file__ |
| 2516 |
- IPython.lib.kernel.__loader__ |
| 2517 |
- IPython.lib.kernel.__name__ |
| 2518 |
- IPython.lib.kernel.__package__ |
| 2519 |
- IPython.lib.kernel.__spec__ |
| 2520 |
- IPython.lib.kernel.__warningregistry__ |
| 2521 |
- IPython.paths.fs_encoding |
| 2522 |
- IPython.terminal.debugger.DEFAULT_BUFFER |
| 2523 |
- IPython.terminal.debugger.cursor_in_leading_ws |
| 2524 |
- IPython.terminal.debugger.emacs_insert_mode |
| 2525 |
- IPython.terminal.debugger.has_selection |
| 2526 |
- IPython.terminal.debugger.vi_insert_mode |
| 2527 |
- IPython.terminal.interactiveshell.DISPLAY_BANNER_DEPRECATED |
| 2528 |
- IPython.terminal.ipapp.TerminalIPythonApp.parse_command_line |
| 2529 |
- IPython.testing.test |
| 2530 |
- IPython.utils.contexts.NoOpContext |
| 2531 |
- IPython.utils.io.IOStream |
| 2532 |
- IPython.utils.io.IOStream.close |
| 2533 |
- IPython.utils.io.IOStream.write |
| 2534 |
- IPython.utils.io.IOStream.writelines |
| 2535 |
- IPython.utils.io.__warningregistry__ |
| 2536 |
- IPython.utils.io.atomic_writing |
| 2537 |
- IPython.utils.io.stderr |
| 2538 |
- IPython.utils.io.stdin |
| 2539 |
- IPython.utils.io.stdout |
| 2540 |
- IPython.utils.io.unicode_std_stream |
| 2541 |
- IPython.utils.path.get_ipython_cache_dir |
| 2542 |
- IPython.utils.path.get_ipython_dir |
| 2543 |
- IPython.utils.path.get_ipython_module_path |
| 2544 |
- IPython.utils.path.get_ipython_package_dir |
| 2545 |
- IPython.utils.path.locate_profile |
| 2546 |
- IPython.utils.path.unquote_filename |
| 2547 |
- IPython.utils.py3compat.PY2 |
| 2548 |
- IPython.utils.py3compat.PY3 |
| 2549 |
- IPython.utils.py3compat.buffer_to_bytes |
| 2550 |
- IPython.utils.py3compat.builtin_mod_name |
| 2551 |
- IPython.utils.py3compat.cast_bytes |
| 2552 |
- IPython.utils.py3compat.getcwd |
| 2553 |
- IPython.utils.py3compat.isidentifier |
| 2554 |
- IPython.utils.py3compat.u_format |
| 2555 |
|
| 2556 |
The following signatures differ between 7.x and 8.0:: |
| 2557 |
|
| 2558 |
- IPython.core.completer.IPCompleter.unicode_name_matches(self, text) |
| 2559 |
+ IPython.core.completer.IPCompleter.unicode_name_matches(text) |
| 2560 |
|
| 2561 |
- IPython.core.completer.match_dict_keys(keys, prefix, delims) |
| 2562 |
+ IPython.core.completer.match_dict_keys(keys, prefix, delims, extra_prefix='None') |
| 2563 |
|
| 2564 |
- IPython.core.interactiveshell.InteractiveShell.object_inspect_mime(self, oname, detail_level=0) |
| 2565 |
+ IPython.core.interactiveshell.InteractiveShell.object_inspect_mime(self, oname, detail_level=0, omit_sections='()') |
| 2566 |
|
| 2567 |
- IPython.core.interactiveshell.InteractiveShell.set_hook(self, name, hook, priority=50, str_key='None', re_key='None', _warn_deprecated=True) |
| 2568 |
+ IPython.core.interactiveshell.InteractiveShell.set_hook(self, name, hook, priority=50, str_key='None', re_key='None') |
| 2569 |
|
| 2570 |
- IPython.core.oinspect.Inspector.info(self, obj, oname='', formatter='None', info='None', detail_level=0) |
| 2571 |
+ IPython.core.oinspect.Inspector.info(self, obj, oname='', info='None', detail_level=0) |
| 2572 |
|
| 2573 |
- IPython.core.oinspect.Inspector.pinfo(self, obj, oname='', formatter='None', info='None', detail_level=0, enable_html_pager=True) |
| 2574 |
+ IPython.core.oinspect.Inspector.pinfo(self, obj, oname='', formatter='None', info='None', detail_level=0, enable_html_pager=True, omit_sections='()') |
| 2575 |
|
| 2576 |
- IPython.core.profiledir.ProfileDir.copy_config_file(self, config_file, path='None', overwrite=False) |
| 2577 |
+ IPython.core.profiledir.ProfileDir.copy_config_file(self, config_file, path, overwrite=False) |
| 2578 |
|
| 2579 |
- IPython.core.ultratb.VerboseTB.format_record(self, frame, file, lnum, func, lines, index) |
| 2580 |
+ IPython.core.ultratb.VerboseTB.format_record(self, frame_info) |
| 2581 |
|
| 2582 |
- IPython.terminal.embed.InteractiveShellEmbed.mainloop(self, local_ns='None', module='None', stack_depth=0, display_banner='None', global_ns='None', compile_flags='None') |
| 2583 |
+ IPython.terminal.embed.InteractiveShellEmbed.mainloop(self, local_ns='None', module='None', stack_depth=0, compile_flags='None') |
| 2584 |
|
| 2585 |
- IPython.terminal.embed.embed(**kwargs) |
| 2586 |
+ IPython.terminal.embed.embed(*, header='', compile_flags='None', **kwargs) |
| 2587 |
|
| 2588 |
- IPython.terminal.interactiveshell.TerminalInteractiveShell.interact(self, display_banner='<object object at 0xffffff>') |
| 2589 |
+ IPython.terminal.interactiveshell.TerminalInteractiveShell.interact(self) |
| 2590 |
|
| 2591 |
- IPython.terminal.interactiveshell.TerminalInteractiveShell.mainloop(self, display_banner='<object object at 0xffffff>') |
| 2592 |
+ IPython.terminal.interactiveshell.TerminalInteractiveShell.mainloop(self) |
| 2593 |
|
| 2594 |
- IPython.utils.path.get_py_filename(name, force_win32='None') |
| 2595 |
+ IPython.utils.path.get_py_filename(name) |
| 2596 |
|
| 2597 |
The following are new attributes (that might be inherited):: |
| 2598 |
|
| 2599 |
+ IPython.core.completer.IPCompleter.unicode_names |
| 2600 |
+ IPython.core.debugger.InterruptiblePdb.precmd |
| 2601 |
+ IPython.core.debugger.Pdb.precmd |
| 2602 |
+ IPython.core.ultratb.AutoFormattedTB.has_colors |
| 2603 |
+ IPython.core.ultratb.ColorTB.has_colors |
| 2604 |
+ IPython.core.ultratb.FormattedTB.has_colors |
| 2605 |
+ IPython.core.ultratb.ListTB.has_colors |
| 2606 |
+ IPython.core.ultratb.SyntaxTB.has_colors |
| 2607 |
+ IPython.core.ultratb.TBTools.has_colors |
| 2608 |
+ IPython.core.ultratb.VerboseTB.has_colors |
| 2609 |
+ IPython.terminal.debugger.TerminalPdb.do_interact |
| 2610 |
+ IPython.terminal.debugger.TerminalPdb.precmd |
| 2611 |
|
| 2612 |
The following attribute/methods have been removed:: |
| 2613 |
|
| 2614 |
- IPython.core.application.BaseIPythonApplication.deprecated_subcommands |
| 2615 |
- IPython.core.ultratb.AutoFormattedTB.format_records |
| 2616 |
- IPython.core.ultratb.ColorTB.format_records |
| 2617 |
- IPython.core.ultratb.FormattedTB.format_records |
| 2618 |
- IPython.terminal.embed.InteractiveShellEmbed.init_deprecation_warnings |
| 2619 |
- IPython.terminal.embed.InteractiveShellEmbed.init_readline |
| 2620 |
- IPython.terminal.embed.InteractiveShellEmbed.write |
| 2621 |
- IPython.terminal.embed.InteractiveShellEmbed.write_err |
| 2622 |
- IPython.terminal.interactiveshell.TerminalInteractiveShell.init_deprecation_warnings |
| 2623 |
- IPython.terminal.interactiveshell.TerminalInteractiveShell.init_readline |
| 2624 |
- IPython.terminal.interactiveshell.TerminalInteractiveShell.write |
| 2625 |
- IPython.terminal.interactiveshell.TerminalInteractiveShell.write_err |
| 2626 |
- IPython.terminal.ipapp.LocateIPythonApp.deprecated_subcommands |
| 2627 |
- IPython.terminal.ipapp.LocateIPythonApp.initialize_subcommand |
| 2628 |
- IPython.terminal.ipapp.TerminalIPythonApp.deprecated_subcommands |
| 2629 |
- IPython.terminal.ipapp.TerminalIPythonApp.initialize_subcommand |
| 2630 |
|
| 2631 |
------ |
| 2632 |
|
| 2633 |
.. [1] If this make you uncomfortable feel free to not use IPython 8.23. |