Debian Codegraph @

docs/source/whatsnew/version9.rst

raw
1 ============
2 9.x Series
3 ============
4
5 .. _version 9.11:
6
7 IPython 9.11
8 ============
9
10 This release includes a new shell error-handling config option, a reproducible
11 banner for builds, history thread management improvements, autoreload encoding
12 fixes, Python 3.11 deprecation notices, and various type annotation improvements.
13
14 - :ghpull:`15073` Add ``system_raise_on_error`` config option for ``!`` shell operator
15 - :ghpull:`15121` Start dropping Python 3.11
16 - :ghpull:`15122` Fix encoding to utf8 for autoreload
17 - :ghpull:`15130` Stricter config + add typing to ``IPython/core/magic.py``
18 - :ghpull:`15133` Inline and remove only usage of ``on_off``
19 - :ghpull:`15144` Have a static banner when setting ``SOURCE_DATE_EPOCH``
20
21 In addition there are many type annotations that have been added by using Generative AI (Clause Sonnet and Opus from
22 Anthropicl; GitHub Copilot)
23
24
25
26 New ``system_raise_on_error`` Config Option
27 --------------------------------------------
28
29 A new ``system_raise_on_error`` Bool traitlet configuration option (default:
30 ``False``) has been added. When set to ``True``, shell commands executed via
31 the ``!`` operator will raise :exc:`subprocess.CalledProcessError` if they
32 return a non-zero exit status. This makes it easier to write robust IPython
33 scripts that need to detect shell command failures::
34
35 %config InteractiveShell.system_raise_on_error = True
36 ! false # will now raise CalledProcessError
37
38
39 Reproducible Banner
40 --------------------
41
42 When the ``SOURCE_DATE_EPOCH`` environment variable is set, IPython now
43 produces a static, reproducible banner. This
44 helps with reproducible builds and packaging workflows that may capture this state
45 (related to
46 `jupyterlab/jupyterlab#18552 <https://github.com/jupyterlab/jupyterlab/issues/18552>`_).
47
48
49 Python 3.11 Deprecation
50 ------------------------
51
52 IPython has begun the process of dropping support for Python 3.11. Users
53 still running Python 3.11 should plan to upgrade to a supported Python
54 version.
55
56
57 Autoreload Encoding Fix
58 ------------------------
59
60 The autoreload extension now explicitly sets UTF-8 as the default encoding
61 when reading source files. Previously, the platform default encoding was
62 used, which could cause failures on systems where the default encoding is
63 not UTF-8.
64
65 Thanks
66 ------
67
68 Thanks as well to the `D. E. Shaw group <https://deshaw.com/>`_ for sponsoring
69 work on IPython.
70
71 As usual, you can find the full list of PRs on GitHub under `the 9.11
72 <https://github.com/ipython/ipython/milestone/160?closed=1>`__ milestone.
73
74
75 .. _version 9.10:
76
77 IPython 9.10
78 ============
79
80 This release includes improvements to history management during forking and formatting fixes.
81
82 - :ghpull:`15110` Fix Removing leading indentation when stripping prompt
83 - :ghpull:`15115` Stop HistorySavingThread before fork
84 - :ghpull:`15118` Add debug info for autoreload
85
86
87 History Thread Management Improvements
88 ---------------------------------------
89
90 The `HistorySavingThread` is now properly stopped before process forking,
91 preventing threading issues in child processes. This ensures that history
92 operations work correctly when IPython is used in applications that perform
93 process forking.
94
95
96 Thanks
97 ------
98
99 Thanks as well to the `D. E. Shaw group <https://deshaw.com/>`_ for sponsoring
100 work on IPython.
101
102 As usual, you can find the full list of PRs on GitHub under `the 9.10
103 <https://github.com/ipython/ipython/milestone/159?closed=1>`__ milestone.
104
105
106 .. _version 9.9:
107
108 IPython 9.9
109 ===========
110
111 This release includes several bug fixes and improvements across completions,
112 type annotations, and developer experience.
113
114 - :ghpull:`15092` Fix formatting for completion suggestions section
115 - :ghpull:`15057` Reduce types in splitinput.py
116 - :ghpull:`15096` Use Any type in traceback tuple
117 - :ghpull:`15099` Fix filename of CVE test
118 - :ghpull:`15091` Skip downstream CI if only docs changes
119 - :ghpull:`15093` Replace sphinxext/github with extlink configuration
120 - :ghpull:`15103` Tips and docs about argcomplete
121 - :ghpull:`15105` Add prompt_toolkit's unix_word_rubout to assignable commands for shortcuts
122 - :ghpull:`15095` Enable pretty-printing for PEP-649 annotated functions
123 - :ghpull:`15106` Fix completions for methods starting with ``_``
124 - :ghpull:`15111` Stop assuming that memory addresses are signed
125 - :ghpull:`15102` Bump macOS runner version in GitHub Actions
126 - :ghpull:`15101` Fix crash on literal with surrogate
127
128 Improvements to PEP-649 Support
129 -------------------------------
130
131 IPython now properly pretty-prints functions with PEP-649 style annotations.
132 This improves the display of functions in interactive sessions when using Python
133 3.14+ annotation semantics.
134
135
136 Shell Shortcuts Enhancement
137 -----------------------------
138
139 The ``unix_word_rubout`` command from prompt_toolkit is now available as an
140 assignable command for terminal shortcuts, giving users more flexibility in
141 customizing their keybindings.
142
143
144 Type Annotation Improvements
145 ----------------------------
146
147 Various type annotation improvements have been made throughout the codebase for
148 better static analysis support, including fixes for tracebacks and improved type
149 inference in the completion engine.
150
151
152 Thanks
153 ------
154
155 Thanks as well to the `D. E. Shaw group <https://deshaw.com/>`_ for sponsoring
156 work on IPython.
157
158 As usual, you can find the full list of PRs on GitHub under `the 9.9
159 <https://github.com/ipython/ipython/milestone/157?closed=1>`__ milestone.
160
161
162 .. _version 9.8:
163
164 IPython 9.8
165 ===========
166
167 This release brings improvements to concurrent execution, history commands, tab
168 completion, and debugger performance.
169
170
171 - :ghpull:`15037` Fix some ruff issues with import
172 - :ghpull:`15060` Stricter typing for many utils files
173 - :ghpull:`15066` Strict typing of a few more files
174 - :ghpull:`15067` Fix self import of deprecated items
175 - :ghpull:`15069` Document :magic:`history` usage with all lines of a session
176 - :ghpull:`15070` Allow session number without trailing slash in :magic:`history` magic
177 - :ghpull:`15074` Use values for tab completion of variables created using annotated assignment
178 - :ghpull:`15076` Fix error on tab completions
179 - :ghpull:`15078` Show completions for annotated union types
180 - :ghpull:`15079` Fallback to type annotations for attribute completions
181 - :ghpull:`15081` Strictly suppress file completions in attribute completion context
182 - :ghpull:`15083` Minor performance improvements in debugger
183 - :ghpull:`15084` Documentation updates
184 - :ghpull:`15088` Make :any:`run_cell_async` reenterable for concurrent cell execution
185
186
187 Concurrent Cell Execution
188 --------------------------
189
190 The :any:`run_cell_async` method is now reenterable, making the execution count
191 more atomic and preventing session resets when cells are executed concurrently.
192 This allows frontends to run multiple cells in parallel without interfering with
193 each other's execution context or history tracking. The execution count is now
194 incremented before running the user code, ensuring consistent behavior across
195 concurrent executions.
196
197
198 History Magic Improvements
199 ---------------------------
200
201 The :magic:`history` magic now supports open-ended line ranges using ``-`` as the end
202 marker. For example, you can use ``%history 1/10-`` to retrieve all commands from
203 line 10 onwards in session 1, or ``%history ~5-`` to get the last 5 commands and
204 onwards from the current session. This makes it easier to retrieve ranges of
205 commands without needing to know the exact ending line number.
206
207
208 Tab Completion Enhancements
209 ----------------------------
210
211 Several improvements were made to the tab completer, particularly when jedi is
212 disabled:
213
214 - Variables created with annotated assignment (e.g., ``x: int = 5``) now use
215 their runtime values for completion suggestions, providing more accurate
216 attribute completions.
217
218 - File path completions are now strictly suppressed when completing attributes,
219 preventing confusion when typing patterns like ``obj.file``.
220
221 - Union types in annotations (e.g., ``x: int | str``) are now properly handled
222 for completion suggestions.
223
224 - The completer now falls back to type annotations when runtime evaluation is
225 not available, improving completion accuracy for typed code.
226
227
228 Thanks
229 ------
230
231 Thanks as well to the `D. E. Shaw group <https://deshaw.com/>`_ for sponsoring
232 work on IPython.
233
234 As usual, you can find the full list of PRs on GitHub under `the 9.8
235 <https://github.com/ipython/ipython/milestone/156?closed=1>`__ milestone.
236
237
238 .. _version 9.7:
239
240 IPython 9.7
241 ===========
242
243 As ususal this new version of IPython brings a number of bugfixes:
244
245
246 - :ghpull:`15012` Fix ``Exception.text`` may be None
247 - :ghpull:`15007` Start Testign on free-threaded Python
248 - :ghpull:`15036` Suppress file completions in context of attributes/methods
249 - :ghpull:`15056` Completion in loops and conditionals
250 - :ghpull:`15048` Support completions for lambdas and ``async`` functions
251 - :ghpull:`15042` Support subscript assignment in completions
252 - :ghpull:`15027` Infer type from return value and improve attribute completions
253 - :ghpull:`15020` Fix tab completion for subclasses of trusted classes
254 - :ghpull:`15022` Prevent trusting modules with matching prefix
255
256
257 Gruvbox Dark Theme
258 ------------------
259
260 Gruvbox Dark is now available as a terminal syntax theme for IPython.
261
262 Respect PYTHONSAFEPATH
263 ----------------------
264
265 IPython now respects the value of Python's flag ``sys.flags.safe_path``, a flag which is most often set by the ``PYTHONSAFEPATH`` environment variable. Setting this causes Python not to automatically include the current working directory in the sys.path.
266
267 IPython can already be configured to do this via the ``--ignore_cwd`` command-line flag or by setting ``c.InteractiveShellApp.ignore_cwd=True``. Now, IPython can also be configured by setting ``PYTHONSAFEPATH=1`` or by calling python with ``-P``.
268
269 The behavior of ``safe_path`` was described in `what's new in 3.11`_ and in `PyConfig.safe_path <https://docs.python.org/3/c-api/init_config.html#c.PyConfig.safe_path>`_.
270
271
272 .. _what's new in 3.11: https://docs.python.org/3/whatsnew/3.11.html#whatsnew311-pythonsafepath
273
274
275 Tab Completion
276 --------------
277
278 Multiple improvements were made to the tab completer.
279 The tab completions now work for more complex code, even when jedi is disabled, using a hybrid evaluation procedure
280 which infers available completions from both the typing information, runtime values, and static code analysis.
281 The paths to hidden files are no longer suggested when attempting attribute completion.
282
283
284 As usual, you can find the full list of PRs on GitHub under `the 9.7
285 <https://github.com/ipython/ipython/milestone/155?closed=1>`__ milestone.
286
287
288 .. _version 9.6:
289
290 IPython 9.6
291 ===========
292
293 This version brings improvements to tab completion, ``%notebook`` magic, module ignoring functionality to debugger.
294
295 - :ghpull:`14973` Add module ignoring functionality to debugger
296 - :ghpull:`14982` Extract code from line magics for attribute completion
297 - :ghpull:`14998` Fix matplotlib plots displaying in wrong cells during ``%notebook`` export
298 - :ghpull:`14996` Respect ``DisplayFormatter.active_types`` trait configuration
299 - :ghpull:`15001` Fix ``%notebook`` magic creating multiple display_data outputs for single widgets
300 - :ghpull:`14997` Make ``%notebook`` magic notarise exported notebooks (mark as trusted)
301 - :ghpull:`14993` Type-guided partial evaluation for completion of uninitialized variables
302 - :ghpull:`14978` deduperreload: patch NULL for empty closure rather than None
303 - :ghpull:`14994` Bump minimum version (spec-0) and whitespace update
304
305 The ``%notebook`` magic can now reliably export plots generated by ``matplotlib``, whether with the default ``inline`` or the interactive ``ipympl`` backend.
306 For the plots to display when using the ``inline`` backend the ``c.DisplayFormatter.active_types`` needs to include ``image/png`` (or another image media type, depending on the backend configuration).
307
308 Tab completion now works on multi-line buffers with unevaluated code even when jedi is disabled.
309 Additionally, completion works when writing code as an argument to ``%timeit`` and ``%debug``.
310
311 As usual, you can find the full list of PRs on GitHub under `the 9.6
312 <https://github.com/ipython/ipython/milestone/154?closed=1>`__ milestone.
313
314
315 .. _version 9.5:
316
317 IPython 9.5
318 ===========
319
320 Featuring improvements for numerous magics (``%autoreload``, ``%whos``, ``%%script``, ``%%notebook``), a streaming performance regression fix, completer policy overrides improvements, and initial support for Python 3.14.
321
322 - :ghpull:`14938` Fix printing long strings in ``%whos`` magic command
323 - :ghpull:`14941` Fix performance of streaming long text
324 - :ghpull:`14943` Simplify overriding selective evaluation policy settings for modules
325 - :ghpull:`14955` Populate notebook metadata when exporting with ``%notebook`` magic
326 - :ghpull:`14960` Better handling in deduperreload for patching functions with freevars
327 - :ghpull:`14964` Fix traceback logic for non-SyntaxError exceptions in plain mode
328 - :ghpull:`14966` Do not warn repeatedly if policy overrides are not applicable
329 - :ghpull:`14967` Support Python 3.14.0rc2, test on CI
330 - :ghpull:`14969` Fix truncated output in ``%script`` magic
331 - :ghpull:`14970` Fix exceptions in ``%whos`` magic command
332
333 The ``%notebook`` magic now stores the language and kernel information in notebook metadata, allowing users to quickly open the exported notebook with syntax highlighting and an appropriate kernel.
334
335 The completer :std:configtrait:`Completer.policy_overrides` traitlet handling was improved.
336 It no longer repeatedly warns on each completion after switching away to a policy that does not support previously specified overrides.
337 Allow-listing attribute access on all objects in a given library is now possible.
338 The specification now also accepts dotted strings (rather than requiring tuples to specify the path) which should make configuration easier and less error-prone.
339
340 .. code::
341
342 c.Completer.policy_overrides = {
343 "allowed_getattr_external": {
344 "my_trusted_library"
345 }
346 }
347
348 A number of recent regressions were fixed:
349
350 - ``%autoreload`` now again shows the correct module name in traceback
351 - standard output/error streaming of long text/logs is now as fast as in IPython 9.0
352 - in the ``%whos`` magic handling of long strings and class objects that implement ``__len__`` was fixed.
353
354 As usual, you can find the full list of PRs on GitHub under `the 9.5
355 <https://github.com/ipython/ipython/milestone/153?closed=1>`__ milestone.
356
357
358 .. _version 9.4:
359
360 IPython 9.4
361 ===========
362
363 Featuring ``%autoreload``, ``%whos``, ``%%script``, ``%%time`` magic improvements, along with a fix for use of list comprehensions and generators in the interactive debugger (and ipdb).
364
365 - :ghpull:`14922` Improved reloading of decorated functions when using ``%autoreload``
366 - :ghpull:`14872` Do not always import all variables with ``%autoreload 3``
367 - :ghpull:`14906` Changed behaviour of ``%time`` magic to always interrupt execution on exception and always show execution time
368 - :ghpull:`14926` Support data frames, series, and objects with ``__len__`` in the ``%whos`` magic
369 - :ghpull:`14933` List comprehensions and generators now work reliably in debugger on all supported Python versions
370 - :ghpull:`14931` Fix streaming multi-byte Unicode characters in the ``%script`` magic and its derivatives
371
372 The ``%time`` magic no longer swallows exceptions raised by the measured code, and always prints the time of execution. If you wish the execution to continue after measuring time to execute code that is meant to raise an exception, pass the new ``--no-raise-error`` flag.
373 The ``--no-raise-error`` flag does not affect ``KeyboardInterrupt`` as this exception is used to signal intended interruption of execution flow.
374
375 Previously the debugger (ipdb) evaluation of list comprehensions and generators could fail with ``NameError`` due to generator implementation detail in CPython. This was recently fixed in Python 3.13. Because IPython is often used for interactive debugging, this release includes a backport of that fix, providing users who cannot yet update from Python 3.11 or 3.12 with a smoother debugging experience.
376
377 The ``%autoreload`` magic is now more reliable. The behaviour around decorators has been improved and `%autoreload 3` no longer imports all symbols when reloading the module, however, the heuristic used to determine which symbols to reload can sometimes lead to addition of imports from non-evaluated code branches, see `issue #14934 <https://github.com/ipython/ipython/issues/14934>`__.
378
379
380 As usual, you can find the full list of PRs on GitHub under `the 9.4
381 <https://github.com/ipython/ipython/milestone/151?closed=1>`__ milestone.
382
383
384
385 .. _version 9.3:
386
387 IPython 9.3
388 ===========
389
390 This release includes improvements to the tab and LLM completer, along with typing improvements:
391
392 - :ghpull:`14911` Implement auto-import and evaluation policy overrides
393 - :ghpull:`14910` Eliminate startup delay when LLM completion provider is configured
394 - :ghpull:`14898` Fix attribute completion for expressions with comparison operators
395 - :ghpull:`14908` Fix typing of `error_before_exec`, enhance ``mypy`` coverage
396
397 Notably, the native completer can now suggest attribute completion on not-yet-imported modules.
398 This is particularly useful when writing code which includes an import and the use of the imported
399 module in the same line or in the same cell; the default implementation does not insert
400 the imported module into the user namespace, for which an actual execution is required.
401
402 The auto-import of modules by completer is turned off and requires opting-in using
403 a new :std:configtrait:`Completer.policy_overrides` traitlet.
404 To enable auto-import on completion specify:
405
406 .. code-block::
407
408 ipython --Completer.policy_overrides='{"allow_auto_import": True}' --Completer.use_jedi=False
409
410 This change aligns the capability of both jedi-powered and the native completer.
411 The function used for auto-import can be configured using :std:configtrait:`Completer.auto_import_method` traitlet.
412
413 As usual, you can find the full list of PRs on GitHub under `the 9.3
414 <https://github.com/ipython/ipython/milestone/149?closed=1>`__ milestone.
415
416
417 .. _version 9.2:
418
419 IPython 9.2
420 ===========
421
422 This is a small release with minor changes in the context passed to the LLM completion
423 provider along few other bug fixes and documentation improvements:
424
425 - :ghpull:`14890` Fixed interruption of ``%%time`` and ``%%debug`` magics
426 - :ghpull:`14877` Removed spurious empty lines from ``prefix`` passed to LLM, and separated part after cursor into the ``suffix``
427 - :ghpull:`14876` Fixed syntax warning in Python 3.14 (remove return from finally block)
428 - :ghpull:`14887` Documented the recommendation to use ``ipykernel.embed.embed_kernel()`` over ``ipython.embed``.
429
430 As usual, you can find the full list of PRs on GitHub under `the 9.2
431 <https://github.com/ipython/ipython/milestone/146?closed=1>`__ milestone.
432
433 .. _version 9.1:
434
435 IPython 9.1
436 ===========
437
438 This is a small release that introduces enhancements to ``%notebook`` and ``%%timeit`` magics,
439 and a number of bug fixes related to colors/formatting, performance, and completion.
440
441 ``%notebook`` saves outputs
442 ---------------------------
443
444 The ``%notebook`` magic can be used to create a Jupyter notebook from the
445 commands executed in the current IPython session (since the interpreter startup).
446
447 Prior to IPython 9.1, the resulting notebook did not include the outputs,
448 streams, or exceptions. IPython 9.1 completes the implementation of this
449 magic allowing for an easier transition from an interactive IPython session
450 to a Jupyter notebook.
451
452 To capture streams (stdio/stderr), IPython temporarily swaps the `write`
453 method of the active stream class during code execution. This ensures
454 compatibility with ipykernel which swaps the entire stream implementation
455 and requires it to remain an instance of ``IOStream`` subclass.
456 If this leads to undesired behaviour in any downstream applications,
457 your feedback and suggestions would be greatly appreciated.
458
459
460 ``%%timeit -v`` argument
461 ------------------------
462
463 New ``-v`` argument allows users to save the timing result
464 directly to a specified variable, e.g.
465
466 .. code::
467
468 %%timeit -v timing_result
469 2**32
470
471
472 Completer improvements
473 ----------------------
474
475 The LLM-based completer will now receive the request number for each subsequent
476 execution.
477
478 The tab completer used when jedi is turned off now correctly completes
479 variables in lines where it previously was incorrectly attempting to complete
480 attributes due to simplistic context detection based on the presence of a dot.
481
482 Thanks
483 ------
484
485 A big thank you to everyone who contributed towards the 9.1 release,
486 including new contributors: @Darshan808, @kwinkunks, @carschandler,
487 returning contributors (shout out to @wjandrea!), and of course
488 @Carreau whom I would like to thank for the guidance in the preparation
489 of this release and stewardship of IPython over the years - Mike.
490
491 As usual, you can find the full list of PRs on GitHub under `the 9.1
492 <https://github.com/ipython/ipython/milestone/142?closed=1>`__ milestone.
493
494
495 .. _version90:
496
497 IPython 9.0
498 ===========
499
500 Welcome to IPython 9.0. As with any version of IPython before this release, it
501 should not be majorly different from the previous version, at least on the surface.
502 We still hope you can upgrade as soon as possible and look forward to your feedback.
503
504 I take the opportunity of this new release to remind you that IPython is
505 governed by the `Jupyter code of conduct
506 <https://jupyter.org/governance/conduct/code_of_conduct.html>`_. And that even
507 beyond so we strive to be an inclusive, accepting and progressive community,
508 Here is a relevant extract from the COC.
509
510 We strive to be a community that welcomes and supports people of all backgrounds
511 and identities. This includes, but is not limited to, members of any race,
512 ethnicity, culture, national origin, color, immigration status, social and
513 economic class, educational level, sex, sexual orientation, gender identity and
514 expression, age, physical appearance, family status, technological or
515 professional choices, academic discipline, religion, mental ability, and
516 physical ability.
517
518
519 As a short overview of the changes in 9.0, we have over 100 PRs merged since 8.x,
520 many of which are refactors, cleanups and simplifications.
521
522 - (optional) LLM integration in the CLI.
523 - Complete rewrite of color and theme handling, which now supports more colors and symbols.
524 - Move tests out of tree in the wheel with a massive reduction in file size.
525 - Tips at startup
526 - Removal of (almost) all deprecated functionalities and options.
527 - Stricter and more stable codebase.
528
529
530 Removal and deprecation
531 -----------------------
532
533 I am not going to list the removals and deprecations, but anything deprecated since before IPython 8.16 is gone,
534 including many shim modules and indirect imports that would just re-expose IPykernel, qtconsole, etc.
535
536 A number of new deprecations have been added (run your test suites with `-Werror`), as those will be removed in the future.
537
538
539 Color and theme rewrite
540 -----------------------
541
542 IPython's color handling had grown many options through the years, and it was
543 quite entrenched in the codebase, directly emitting ansi escape sequences deep
544 in traceback printing and other places.
545
546 This made developing new color schemes difficult, and limited us to the 16 colors
547 of the original ansi standard defined by your terminal.
548
549 Syntax highlighting was also inconsistent, and not all syntax elements were
550 always using the same theme.
551
552 Using (style, token) pairs
553 ~~~~~~~~~~~~~~~~~~~~~~~~~~
554
555 Starting with 9.0, the color and theme handling has been rewritten, and
556 internally all the printing is done by yielding pairs of Style and token objects
557 (compatible with pygments and prompt_toolkit), then as much as possible, IPython
558 formats these objects at the last moment, using the current theme.
559
560 256-bit colors and unicode symbols
561 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
562
563 This means that new themes can now use all of pygments's color names and
564 functionalities, and you can define for each token style, the foreground,
565 background, underline, bold, italic and likely a few other options.
566
567 In addition, themes now provide a number of `symbols`, that can be used when
568 rendering traceback or debugger prompts. This let you customize the appearance a
569 bit more. For example, instead of using dash and greater-than sign, The arrow
570 pointing the current frame can actually use horizontal line and right arrow
571 unicode symbol, for a more refined experience.
572
573
574 New themes using colors and symbols
575 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
576
577 All the existing themes (Linux, LightBG, Neutral and NoColor) should not see any
578 changes, but I added two new *pride themes*, that show the use of 256bits colors
579 and unicode symbols. I'm not a designer, so feel free to suggest updates and new
580 themes to add.
581
582 Themes currently still require writing a bit of Python, but I hope to get
583 contributions for IPython to be able to load them from text files, for easier
584 redistribution.
585
586 Tips at startup
587 ---------------
588
589 IPython now displays a few tips at startup (1 line), to help you discover new features.
590 All those are in the codebase, and can be displayed randomly or based on date.
591 You can disable it via a configuration option or the ``--no-tips`` flag.
592
593 Please contribute more tips by sending pull requests!
594
595 Out-of-tree tests
596 -----------------
597
598 And more generally I have changed the folder structure and what is packaged in
599 the wheel to reduce the file size. The wheel is down from 825kb to 590kb
600 (-235kb) which is about a 28% reduction. This should help when you run IPython
601 via Pyodide – when your browser needs to download it.
602
603 According to https://pypistats.org/packages/ipython, IPython is downloaded about
604 13 million times per week, so this should reduce PyPI bandwidth by about 2Tb each
605 week, which is small compared to the total download, but still, trying to reduce
606 resource usage is a worthy goal.
607
608 Integration with Jupyter-AI LLM
609 -------------------------------
610
611 This feature allow IPython CLI to make use of Jupyter-AI provider to use LLM for
612 suggestion, and completing the current text. Unlike many features
613 of IPython this is disabled by default, and need several configuration options to
614 be set to work:
615
616 - Choose a provider in ``jupyter-ai`` and set it as default one:
617 ``c.TerminalInteractiveShell.llm_provider_class = <fully qualified path>``
618 You likely need to setup your provider with API key or other things.
619 - Choose and available shortcut (I'll take ``Ctrl-Q`` as an example) and bind
620 to trigger ``llm_autosuggestion`` only while typing.
621
622 .. code::
623
624 c.TerminalInteractiveShell.shortcuts = [
625 {
626 "new_keys": ["c-q"],
627 "command": "IPython:auto_suggest.llm_autosuggestion",
628 "new_filter": "navigable_suggestions & default_buffer_focused",
629 "create": True,
630 },
631 ]
632
633 See :ref:`llm_suggestions` for more.
634
635 Thanks as well to the `D. E. Shaw group <https://deshaw.com/>`_ for sponsoring
636 this work.
637
638
639 For something completely different
640 ----------------------------------
641
642 Ruth Bader Ginsburg 1933-2020 was an American lawyer and jurist who served on
643 the Supreme Court of the United States. Ginsburg spent much of her legal career
644 as an advocate for gender equality, women's rights, abortion rights, and religious
645 freedom.
646
647 Thanks
648 ------
649
650 Thanks to everyone who helped with the 9.0 release and working toward 9.0.
651
652 As usual you can find the full list of PRs on GitHub under `the 9.0
653 <https://github.com/ipython/ipython/milestone/138?closed=1>`__ milestone.
654
655
656