Skip to content

Commit

Permalink
Merge branch '6.5.x' into update_deps
Browse files Browse the repository at this point in the history
  • Loading branch information
RRosio authored Jul 27, 2023
2 parents 6a1c41e + 25bf597 commit 6de992d
Show file tree
Hide file tree
Showing 9 changed files with 77 additions and 5 deletions.
43 changes: 41 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,47 @@ Use `pip install pip --upgrade` to upgrade pip. Check pip version with

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

## 6.5.4

([Full Changelog](https://github.com/jupyter/notebook/compare/v6.5.3...428e00bef821acb42f13843fb2949d225d081d56))

### Enhancements made

- Add show_banner trait to control the banner display [#6808](https://github.com/jupyter/notebook/pull/6808) ([@echarles](https://github.com/echarles))

### Contributors to this release

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

[@echarles](https://github.com/search?q=repo%3Ajupyter%2Fnotebook+involves%3Aecharles+updated%3A2023-03-06..2023-04-06&type=Issues) | [@github-actions](https://github.com/search?q=repo%3Ajupyter%2Fnotebook+involves%3Agithub-actions+updated%3A2023-03-06..2023-04-06&type=Issues) | [@jtpio](https://github.com/search?q=repo%3Ajupyter%2Fnotebook+involves%3Ajtpio+updated%3A2023-03-06..2023-04-06&type=Issues) | [@krassowski](https://github.com/search?q=repo%3Ajupyter%2Fnotebook+involves%3Akrassowski+updated%3A2023-03-06..2023-04-06&type=Issues) | [@yuvipanda](https://github.com/search?q=repo%3Ajupyter%2Fnotebook+involves%3Ayuvipanda+updated%3A2023-03-06..2023-04-06&type=Issues)

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

## 6.5.3

([Full Changelog](https://github.com/jupyter/notebook/compare/v6.5.2...7939fc595db4ffc3482031365d17ef72a02c085e))

### Enhancements made

- Add a banner and log to information about the migration to Notebook 7 plan [#6742](https://github.com/jupyter/notebook/pull/6742) ([@echarles](https://github.com/echarles))
- Add sys_info to page template for 6.5.x [#6668](https://github.com/jupyter/notebook/pull/6668) ([@juhasch](https://github.com/juhasch))

### Bugs fixed

- Add .mo and .json files for translations [#6728](https://github.com/jupyter/notebook/pull/6728) ([@frenzymadness](https://github.com/frenzymadness))
- Apply PR #6609 to 6.5.x (Fix rename_file and delete_file to handle hidden files properly) [#6660](https://github.com/jupyter/notebook/pull/6660) ([@yacchin1205](https://github.com/yacchin1205))

### Other merged PRs

- Fix ru_RU translation [#6745](https://github.com/jupyter/notebook/pull/6745) ([@andrii-i](https://github.com/andrii-i))
- Update kernel translation [#6744](https://github.com/jupyter/notebook/pull/6744) ([@JasonWeill](https://github.com/JasonWeill))

### Contributors to this release

([GitHub contributors page for this release](https://github.com/jupyter/notebook/graphs/contributors?from=2022-10-30&to=2023-03-06&type=c))

[@andrii-i](https://github.com/search?q=repo%3Ajupyter%2Fnotebook+involves%3Aandrii-i+updated%3A2022-10-30..2023-03-06&type=Issues) | [@echarles](https://github.com/search?q=repo%3Ajupyter%2Fnotebook+involves%3Aecharles+updated%3A2022-10-30..2023-03-06&type=Issues) | [@fcollonval](https://github.com/search?q=repo%3Ajupyter%2Fnotebook+involves%3Afcollonval+updated%3A2022-10-30..2023-03-06&type=Issues) | [@frenzymadness](https://github.com/search?q=repo%3Ajupyter%2Fnotebook+involves%3Afrenzymadness+updated%3A2022-10-30..2023-03-06&type=Issues) | [@github-actions](https://github.com/search?q=repo%3Ajupyter%2Fnotebook+involves%3Agithub-actions+updated%3A2022-10-30..2023-03-06&type=Issues) | [@JasonWeill](https://github.com/search?q=repo%3Ajupyter%2Fnotebook+involves%3AJasonWeill+updated%3A2022-10-30..2023-03-06&type=Issues) | [@jtpio](https://github.com/search?q=repo%3Ajupyter%2Fnotebook+involves%3Ajtpio+updated%3A2022-10-30..2023-03-06&type=Issues) | [@juhasch](https://github.com/search?q=repo%3Ajupyter%2Fnotebook+involves%3Ajuhasch+updated%3A2022-10-30..2023-03-06&type=Issues) | [@RRosio](https://github.com/search?q=repo%3Ajupyter%2Fnotebook+involves%3ARRosio+updated%3A2022-10-30..2023-03-06&type=Issues) | [@venkatasg](https://github.com/search?q=repo%3Ajupyter%2Fnotebook+involves%3Avenkatasg+updated%3A2022-10-30..2023-03-06&type=Issues) | [@yacchin1205](https://github.com/search?q=repo%3Ajupyter%2Fnotebook+involves%3Ayacchin1205+updated%3A2022-10-30..2023-03-06&type=Issues)

## 6.5.2

([Full Changelog](https://github.com/jupyter/notebook/compare/v6.5.1...8a00144fa9afc26ff9a29c9abf12db4014f52293))
Expand All @@ -33,8 +74,6 @@ Use `pip install pip --upgrade` to upgrade pip. Check pip version with

[@bnavigator](https://github.com/search?q=repo%3Ajupyter%2Fnotebook+involves%3Abnavigator+updated%3A2022-10-13..2022-10-30&type=Issues) | [@echarles](https://github.com/search?q=repo%3Ajupyter%2Fnotebook+involves%3Aecharles+updated%3A2022-10-13..2022-10-30&type=Issues) | [@fcollonval](https://github.com/search?q=repo%3Ajupyter%2Fnotebook+involves%3Afcollonval+updated%3A2022-10-13..2022-10-30&type=Issues) | [@github-actions](https://github.com/search?q=repo%3Ajupyter%2Fnotebook+involves%3Agithub-actions+updated%3A2022-10-13..2022-10-30&type=Issues) | [@jtpio](https://github.com/search?q=repo%3Ajupyter%2Fnotebook+involves%3Ajtpio+updated%3A2022-10-13..2022-10-30&type=Issues) | [@RRosio](https://github.com/search?q=repo%3Ajupyter%2Fnotebook+involves%3ARRosio+updated%3A2022-10-13..2022-10-30&type=Issues)

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

## 6.5.1

([Full Changelog](https://github.com/jupyter/notebook/compare/v6.5.0...67546dad676025b70b8b5f061c42ed31029f5dac))
Expand Down
11 changes: 11 additions & 0 deletions docs/source/extending/frontend_extensions.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
.. warning::

**DEPRECATED APIs**
This documentation is for the Notebook 6 API which will soon be deprecated.
For up to date information on Notebook 7, please visit the latest version of the `Notebook documentation`_ or the `JEP for Notebook 7`_.
If you experience issues or are not yet able to migrate to Notebook 7, please visit the `NbClassic documentation`_

.. _JEP for Notebook 7: https://jupyter.org/enhancement-proposals/79-notebook-v7/notebook-v7.html
.. _Notebook documentation: https://jupyter-notebook.readthedocs.io/en/latest
.. _Nbclassic documentation: https://nbclassic.readthedocs.io/en/latest/nbclassic.html

Custom front-end extensions
===========================

Expand Down
2 changes: 1 addition & 1 deletion docs/source/extending/handlers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Custom request handlers

The notebook webserver can be interacted with using a well `defined
RESTful
API <http://petstore.swagger.io/?url=https://raw.githubusercontent.com/jupyter/notebook/master/notebook/services/api/api.yaml>`__.
API <http://petstore.swagger.io/?url=https://raw.githubusercontent.com/jupyter/notebook/6.5.x/notebook/services/api/api.yaml>`__.
You can define custom RESTful API handlers in addition to the ones
provided by the notebook. As described below, to define a custom handler
you need to first write a notebook server extension. Then, in the
Expand Down
8 changes: 8 additions & 0 deletions docs/source/frontend_config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,11 @@ taking various value depending on the page where the configuration is issued.
``<section>`` can take various values like ``notebook``, ``tree``, and
``editor``. A ``common`` section contains configuration settings shared by all
pages.

Persisting configuration settings
---------------------------------

A banner might be shown to users to inform them about news or updates. This
banner can be hidden launching the server with the show_banner trait.::

jupyter notebook --NotebookApp.show_banner=False
2 changes: 1 addition & 1 deletion notebook/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import re

# Version string must appear intact for tbump versioning
__version__ = '6.5.2'
__version__ = '6.5.4'

# Build up version_info tuple for backwards compatibility
pattern = r'(?P<major>\d+).(?P<minor>\d+).(?P<patch>\d+)(?P<rest>.*)'
Expand Down
5 changes: 5 additions & 0 deletions notebook/base/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,10 @@ def default_url(self):
def ws_url(self):
return self.settings.get('websocket_url', '')

@property
def show_banner(self):
return self.settings.get('show_banner', True)

@property
def contents_js_source(self):
self.log.debug("Using contents: %s", self.settings.get('contents_js_source',
Expand Down Expand Up @@ -530,6 +534,7 @@ def template_namespace(self):
xsrf_token=self.xsrf_token.decode('utf8'),
nbjs_translations=json.dumps(combine_translations(
self.request.headers.get('Accept-Language', ''))),
show_banner=self.show_banner,
**self.jinja_template_vars
)

Expand Down
7 changes: 7 additions & 0 deletions notebook/notebookapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ def init_settings(self, jupyter_app, kernel_manager, contents_manager,
},
version_hash=version_hash,
ignore_minified_js=jupyter_app.ignore_minified_js,
show_banner=jupyter_app.show_banner,

# rate limits
iopub_msg_rate_limit=jupyter_app.iopub_msg_rate_limit,
Expand Down Expand Up @@ -1171,6 +1172,12 @@ def _default_allow_remote(self):
"""
)

show_banner = Bool(True, config=True,
help="""Whether the banner is displayed on the page.
By default, the banner is displayed.
""")

open_browser = Bool(True, config=True,
help="""Whether to open in a browser after starting.
The specific browser used is platform dependent and
Expand Down
2 changes: 2 additions & 0 deletions notebook/templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@

<div id="header" role="navigation" aria-label="{% trans %}Top Menu{% endtrans %}">
<div id="newsId" style="display: none">
{% if show_banner %}
<div class="alert alert-info" role="alert">
<div style="display: flex">
<div>
Expand All @@ -153,6 +154,7 @@
</div>
</div>
</div>
{% endif %}
</div>
<div id="header-container" class="container">
<div id="ipython_notebook" class="nav navbar-brand"><a href="{{default_url}}
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ before-build-python = ["pip install babel", "npm install -g po2json"]
ignore-glob = ["docs/source/examples/Notebook/Working With Markdown Cells.ipynb", "docs-translations/**/README.md", "docs/source/contributing.rst", "docs/source/examples/Notebook/JavaScript Notebook Extensions.ipynb", "CHANGELOG.md", "notebook/static/components/**/*.*"]

[tool.tbump.version]
current = "6.5.2"
current = "6.5.4"
regex = '''
(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)
((?P<channel>a|b|rc|.dev)(?P<release>\d+))?
Expand Down

0 comments on commit 6de992d

Please sign in to comment.