Notebook

Latest version: v7.1.3

Safety actively analyzes 622448 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 17

7.2.0b1

([Full Changelog](https://github.com/jupyter/notebook/compare/jupyter-notebook/application-extension7.2.0-beta.0...b45d666d5ee1ee053b55ac9cb6e9aecde5d53945))

Enhancements made

- Add `jupyterlab/theme-dark-high-contrast-extension` [7331](https://github.com/jupyter/notebook/pull/7331) ([jtpio](https://github.com/jtpio))

Bugs fixed

- Force notebook windowing mode to `defer` [7335](https://github.com/jupyter/notebook/pull/7335) ([jtpio](https://github.com/jtpio))
- Fix scrollbar always showing up by default [7327](https://github.com/jupyter/notebook/pull/7327) ([jtpio](https://github.com/jtpio))

Contributors to this release

([GitHub contributors page for this release](https://github.com/jupyter/notebook/graphs/contributors?from=2024-04-12&to=2024-04-19&type=c))

[github-actions](https://github.com/search?q=repo%3Ajupyter%2Fnotebook+involves%3Agithub-actions+updated%3A2024-04-12..2024-04-19&type=Issues) | [jtpio](https://github.com/search?q=repo%3Ajupyter%2Fnotebook+involves%3Ajtpio+updated%3A2024-04-12..2024-04-19&type=Issues) | [RRosio](https://github.com/search?q=repo%3Ajupyter%2Fnotebook+involves%3ARRosio+updated%3A2024-04-12..2024-04-19&type=Issues)

<!-- <END NEW CHANGELOG ENTRY> -->

7.2.0b0

([Full Changelog](https://github.com/jupyter/notebook/compare/jupyter-notebook/application-extension7.2.0-alpha.0...09bcd99e6dfffce92acc9a7f9d11a2a2122131c0))

Maintenance and upkeep improvements

- Update to JupyterLab `4.2.0b1` [7319](https://github.com/jupyter/notebook/pull/7319) ([jtpio](https://github.com/jtpio))
- Update to JupyterLab 4.2.0b0 [7312](https://github.com/jupyter/notebook/pull/7312) ([jtpio](https://github.com/jtpio))

Contributors to this release

([GitHub contributors page for this release](https://github.com/jupyter/notebook/graphs/contributors?from=2024-03-29&to=2024-04-12&type=c))

[github-actions](https://github.com/search?q=repo%3Ajupyter%2Fnotebook+involves%3Agithub-actions+updated%3A2024-03-29..2024-04-12&type=Issues) | [jtpio](https://github.com/search?q=repo%3Ajupyter%2Fnotebook+involves%3Ajtpio+updated%3A2024-03-29..2024-04-12&type=Issues) | [krassowski](https://github.com/search?q=repo%3Ajupyter%2Fnotebook+involves%3Akrassowski+updated%3A2024-03-29..2024-04-12&type=Issues)

7.2.0a0

([Full Changelog](https://github.com/jupyter/notebook/compare/jupyter-notebook/application-extension7.1.2...80b582bce69e33e36e936af2ea981bcb22a4d285))

Enhancements made

- Update to JupyterLab 4.2.0a2 [7307](https://github.com/jupyter/notebook/pull/7307) ([jtpio](https://github.com/jtpio))

Maintenance and upkeep improvements

- Ignore links to GitHub user and organisation profiles [7308](https://github.com/jupyter/notebook/pull/7308) ([jtpio](https://github.com/jtpio))

Contributors to this release

([GitHub contributors page for this release](https://github.com/jupyter/notebook/graphs/contributors?from=2024-03-14&to=2024-03-29&type=c))

[github-actions](https://github.com/search?q=repo%3Ajupyter%2Fnotebook+involves%3Agithub-actions+updated%3A2024-03-14..2024-03-29&type=Issues) | [jtpio](https://github.com/search?q=repo%3Ajupyter%2Fnotebook+involves%3Ajtpio+updated%3A2024-03-14..2024-03-29&type=Issues)

7.1.2

([Full Changelog](https://github.com/jupyter/notebook/compare/jupyter-notebook/application-extension7.1.1...ca41222a9c8d75356c6d67d3bd36e34d71cce2d8))

Maintenance and upkeep improvements

- Update Release Scripts [7295](https://github.com/jupyter/notebook/pull/7295) ([blink1073](https://github.com/blink1073))
- Fix jupyterlab install command in the releaser hook [7294](https://github.com/jupyter/notebook/pull/7294) ([jtpio](https://github.com/jtpio))
- Update to JupyterLab 4.1.5 packages [7291](https://github.com/jupyter/notebook/pull/7291) ([jtpio](https://github.com/jtpio))

Documentation improvements

- Add a section to use local dependencies [7292](https://github.com/jupyter/notebook/pull/7292) ([brichet](https://github.com/brichet))

Contributors to this release

([GitHub contributors page for this release](https://github.com/jupyter/notebook/graphs/contributors?from=2024-02-26&to=2024-03-14&type=c))

[blink1073](https://github.com/search?q=repo%3Ajupyter%2Fnotebook+involves%3Ablink1073+updated%3A2024-02-26..2024-03-14&type=Issues) | [brichet](https://github.com/search?q=repo%3Ajupyter%2Fnotebook+involves%3Abrichet+updated%3A2024-02-26..2024-03-14&type=Issues) | [github-actions](https://github.com/search?q=repo%3Ajupyter%2Fnotebook+involves%3Agithub-actions+updated%3A2024-02-26..2024-03-14&type=Issues) | [jtpio](https://github.com/search?q=repo%3Ajupyter%2Fnotebook+involves%3Ajtpio+updated%3A2024-02-26..2024-03-14&type=Issues)

7.1.1

([Full Changelog](https://github.com/jupyter/notebook/compare/jupyter-notebook/application-extension7.1.0...da7b8d400e96ceff0eec834badd891bc5d5f154d))

Bugs fixed

- Grayout "Edit Notebook Metadata" for other file formats. [7265](https://github.com/jupyter/notebook/pull/7265) ([itsmevichu](https://github.com/itsmevichu))

Maintenance and upkeep improvements

- Fix flaky mobile UI tests [7278](https://github.com/jupyter/notebook/pull/7278) ([jtpio](https://github.com/jtpio))
- Update to JupyterLab 4.1.2 packages [7277](https://github.com/jupyter/notebook/pull/7277) ([jtpio](https://github.com/jtpio))
- Ignore stackoverflow link [7274](https://github.com/jupyter/notebook/pull/7274) ([jtpio](https://github.com/jtpio))
- Expose `version_info` [7273](https://github.com/jupyter/notebook/pull/7273) ([jtpio](https://github.com/jtpio))
- Bump ip from 2.0.0 to 2.0.1 in /ui-tests [7268](https://github.com/jupyter/notebook/pull/7268) ([dependabot](https://github.com/dependabot))
- Bump ip from 2.0.0 to 2.0.1 [7267](https://github.com/jupyter/notebook/pull/7267) ([dependabot](https://github.com/dependabot))

Contributors to this release

([GitHub contributors page for this release](https://github.com/jupyter/notebook/graphs/contributors?from=2024-02-13&to=2024-02-26&type=c))

[dependabot](https://github.com/search?q=repo%3Ajupyter%2Fnotebook+involves%3Adependabot+updated%3A2024-02-13..2024-02-26&type=Issues) | [github-actions](https://github.com/search?q=repo%3Ajupyter%2Fnotebook+involves%3Agithub-actions+updated%3A2024-02-13..2024-02-26&type=Issues) | [itsmevichu](https://github.com/search?q=repo%3Ajupyter%2Fnotebook+involves%3Aitsmevichu+updated%3A2024-02-13..2024-02-26&type=Issues) | [jtpio](https://github.com/search?q=repo%3Ajupyter%2Fnotebook+involves%3Ajtpio+updated%3A2024-02-13..2024-02-26&type=Issues)

7.1

Jupyter Notebook 7.1 is based on JupyterLab 4.1, and includes a number of new features, bug fixes, and enhancements for extension developers. This release is compatible with extensions supporting JupyterLab 4.0. Extension authors are recommended to consult the [Extension Migration Guide](https://jupyterlab.readthedocs.io/en/latest/extension/extension_migration.html#jupyterlab-4-0-to-4-1) which lists deprecations and changes to the public API.

Below are a few highlights for this new release. Most of the new features and improvements come from the update to JupyterLab 4.1, although they are not all supported in Notebook 7.1.

For reference you may have a look at the JupyterLab 4.1 changelog to learn more: https://jupyterlab.readthedocs.io/en/latest/getting_started/changelog.html#v4-1

Diagrams in Markdown

Matching GitHub-Flavoured Markdown, JupyterLab 4.1 now supports [Mermaid](https://github.com/mermaid-js/mermaid) diagrams.
To create a mermaid diagram use the `mermaid` language specifier for a code block in a markdown cell or document, for example:

~~~
mermaid
flowchart LR

A[Hard] -->|Text| B(Round)
B --> C{Decision}
C -->|One| D[Result 1]
C -->|Two| E[Result 2]

~~~

which renders as:

<img alt="Rendered Mermaid diagram going from left to right with modern look; the diagram contains blueish square node with text Hard pointing to round square node with text Round; over the arrow connecting the two nodes there is a word Text; the second node further connects to a rhombus-shaped node with text Decision which then connects to two further nodes, Result 1 and Result 2." src="https://raw.githubusercontent.com/jupyterlab/jupyterlab/main/docs/source/getting_started/changelog_assets/4.1-merimad-diagram.png" class="jp-screenshot">

Inline completer

JupyterLab now supports completion presented as ghost text in the cell and file editors,
allowing generative AI models to provide multi-line completions. This can now also be leveraged in Jupyter Notebook.

The suggestions are provided by plugins implementing the ``IInlineCompletionProvider`` API;
by default a single provider which uses kernel history is available.

<img alt="In a code cell with `def fac` content a ghost text containing a suggestion representing further code of factorial function is shown; over the code cell there is a floating widget allowing to accept the suggestion and iterate between alternative suggestions" src="https://raw.githubusercontent.com/jupyterlab/jupyterlab/main/docs/source/getting_started/changelog_assets/4.1-inline-completer.png" class="jp-screenshot">

The suggestions can be invoked as-you-type or manually using a configurable shortcut (by default <kbd>Alt</kbd> + <kbd>\\</kbd>).
The default keyboard shortcuts are displayed in the small widget shown when hovering over the ghost suggestion:
- <kbd>Alt</kbd> + <kbd>End</kbd> - accept suggestion
- <kbd>Alt</kbd> + <kbd>[</kbd> - previous suggestion
- <kbd>Alt</kbd> + <kbd>]</kbd> - next suggestion

To enable the inline suggestions based on the kernel history, go to Settings → Inline Completer → History provider → check the "enabled" checkbox.

In addition to the built-in history suggestions,
the [`jupyter-ai`](https://github.com/jupyterlab/jupyter-ai) extension will provide
suggestions from supported models.

Note that the Jupyter AI extension is not yet compatible with Jupyter Notebook 7.

Keyboard navigation improvements

Numerous improvements to keyboard navigation with focus on accessibility and usability are included in this release:
- the notebook cells now retain focus
- the focus can now be moved beyond the active notebook
- the toolbars can now be navigated using arrow keys

For more details, see [this post on Jupyter Blog](https://blog.jupyter.org/recent-keyboard-navigation-improvements-in-jupyter-4df32f97628d).

Execution history in notebook

The code from previously executed cells can be used to populate empty cells,
allowing to iterate on code from previous cells or even sessions
(depending on how a specific kernel stores history).

To cycle between history items press <kbd>Alt</kbd> + <kbd>Arrow Up</kbd> and <kbd>Alt</kbd> + <kbd>Arrow Down</kbd>.

To enable execution history, go to Settings → Notebook → check the "Kernel history access" checkbox.

This feature was already available in the console in previous releases; it only works with kernels supporting execution history requests.
To clear the execution history consult the documentation of the kernel you are using (e.g., IPython/ipykernel).

Error indicator in the table of contents

When a cell fails during execution, an error indicator will be displayed by the corresponding heading,
increasing awareness of the notebook state and enabling users to quickly navigate to the cell which requires attention.

<img alt="Error indicator in the shape of a triangle with exclamation sign (using ⚠ UTF character) shown next to one of the headings in the table of contents panel" src="https://raw.githubusercontent.com/jupyterlab/jupyterlab/main/docs/source/getting_started/changelog_assets/4.1-toc-error-indicator.png" class="jp-screenshot">

Search improvements

- The search box will now grow automatically to accommodate longer text
- Search in selection can now be toggled using <kbd>Alt</kbd> + <kbd>L</kbd> and automatic search in selection can be configured in settings
- Tooltips with shortcuts were added to the buttons in the search box to improve discoverability of the shortcuts

Miscellaneous

- The current theme (dark/light) can now be synced with the browser/system preference (Settings menu → Theme → Synchronise with System Settings)
- A blue "read-only" status indicator is now displayed in the toolbar of documents which cannot be saved because their model is read-only.
- Native support for viewing jsonl/ndjson files was added
- Collapsing of breadcrumbs in the File Browser can be disabled in File Browser settings

<!-- <START NEW CHANGELOG ENTRY> -->

Page 1 of 17

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.