[Python-modules-commits] [jupyter-notebook] 01/13: Import jupyter-notebook_5.2.2.orig.tar.gz
Gordon Ball
chronitis-guest at moszumanska.debian.org
Fri Dec 1 11:22:08 UTC 2017
This is an automated email from the git hooks/post-receive script.
chronitis-guest pushed a commit to branch master
in repository jupyter-notebook.
commit a41a93e06f85a5c6b50ca0be163206b30175f79e
Author: Gordon Ball <gordon at chronitis.net>
Date: Fri Dec 1 11:06:26 2017 +0000
Import jupyter-notebook_5.2.2.orig.tar.gz
---
docs/source/changelog.rst | 73 ++++++++++++++++++++++++++++++------
notebook/_version.py | 2 +-
notebook/auth/login.py | 1 +
notebook/base/handlers.py | 12 ++++--
notebook/static/base/js/namespace.js | 2 +-
5 files changed, 74 insertions(+), 16 deletions(-)
diff --git a/docs/source/changelog.rst b/docs/source/changelog.rst
index 171682e..2422cb8 100644
--- a/docs/source/changelog.rst
+++ b/docs/source/changelog.rst
@@ -21,22 +21,73 @@ We strongly recommend that you upgrade to version 9+ of pip before upgrading ``n
``pip --version``.
+.. _release-5.2.2:
+
+5.2.2
+-----
+
+- set cookie on base_urls (:ghpull:`2959`).
+
+Thanks to Min RK (`minrk <https://github.com/minrk>`__).
+
+.. _release-5.2.1:
+
+5.2.1
+-----
+
+- Fix invisible CodeMirror cursor at specific browser zoom levels (:ghpull:`2983`).
+- Fix nbconvert handler causing broken export to PDF (:ghpull:`2981`).
+- Fix the prompt_area argument of the output area constructor. (:ghpull:`2961`).
+- Handle a compound extension in new_untitled (:ghpull:`2949`).
+- Allow disabling offline message buffering (:ghpull:`2916`).
+
+Thanks to the following contributors:
+
+- Steven Silvester (`blink1073 <https://github.com/blink1073>`__)
+- Grant Nestor (`gnestor <https://github.com/gnestor>`__)
+- Jason Grout (`jasongrout <https://github.com/jasongrout>`__)
+- Min RK (`minrk <https://github.com/minrk>`__)
+- M Pacer (`mpacer <https://github.com/mpacer>`__)
+
+See the 5.2.1 milestone on GitHub for a complete list of
+`pull requests <https://github.com/jupyter/notebook/pulls?utf8=%E2%9C%93&q=is%3Apr%20milestone%3A5.2.1>`__ involved in this release.
+
.. _release-5.2.0:
5.2.0
-----
-- Make all files in the dashboard editable by default and provide a whitelist of viewable file extensions (:ghpull:`2911`).
-- Ensure that the root directory is not hidden (:ghpull:`2907`).
-- Fix CodeMirror styling issue (:ghpull:`2880`).
-- Update error handling on ``APIHandlers`` (:ghpull:`2853`).
-- Upgrade xterm.js to 2.9.2 (:ghpull:`2849`).
-- Add Chinese translations (depends on upcoming UI implementation) (:ghpull:`2804`).
-- Allow for simpler customization of ``output_prompt`` in custom.js (:ghpull:`2774`).
-- Use RFC5987 encoding for filenames (:ghpull:`2767`).
-- Add path to the resources metadata (:ghpull:`2753`).
-- Make ``extraKeys`` consistent between notebook and editor views (:ghpull:`2745`).
-- Add RTL (right-to-left) support (:ghpull:`2357`).
+- Allow setting token via jupyter_token env (:ghpull:`2921`).
+- Fix some errors caused by raising 403 in get_current_user (:ghpull:`2919`).
+- Register contents_manager.files_handler_class directly (:ghpull:`2917`).
+- Update viewable_extensions (:ghpull:`2913`).
+- Show edit shortcuts modal after shortcuts modal is hidden (:ghpull:`2912`).
+- Improve edit/view behavior (:ghpull:`2911`).
+- The root directory of the notebook server should never be hidden (:ghpull:`2907`).
+- Fix notebook require config to match tools/build-main (:ghpull:`2888`).
+- Give page constructor default arguments (:ghpull:`2887`).
+- Fix codemirror.less to match codemirror\'s expected padding layout (:ghpull:`2880`).
+- Add x-xsrftoken to access-control-allow-headers (:ghpull:`2876`).
+- Buffer messages when websocket connection is interrupted (:ghpull:`2871`).
+- Load locale dynamically only when not en-us (:ghpull:`2866`).
+- Changed key strength to 2048 bits (:ghpull:`2861`).
+- Resync jsversion with python version (:ghpull:`2860`).
+- Allow copy operation on modified, read-only notebook (:ghpull:`2854`).
+- Update error handling on apihandlers (:ghpull:`2853`).
+- Test python 3.6 on travis, drop 3.3 (:ghpull:`2852`).
+- Avoid base64-literals in image tests (:ghpull:`2851`).
+- Upgrade xterm.js to 2.9.2 (:ghpull:`2849`).
+- Changed all python variables named file to file_name to not override built_in file (:ghpull:`2830`).
+- Add more doc tests (:ghpull:`2823`).
+- Typos fix (:ghpull:`2815`).
+- Rename and update license [ci skip] (:ghpull:`2810`).
+- Travis builds doc (:ghpull:`2808`).
+- Pull request i18n (:ghpull:`2804`).
+- Factor out output_prompt_function, as is done with input prompt (:ghpull:`2774`).
+- Use rfc5987 encoding for filenames (:ghpull:`2767`).
+- Added path to the resources metadata, the same as in from_filename(...) in nbconvert.exporters.py (:ghpull:`2753`).
+- Make "extrakeys" consistent for notebook and editor (:ghpull:`2745`).
+- Bidi support (:ghpull:`2357`).
Special thanks to `samarsultan <https://github.com/samarsultan>`__ and the Arabic Competence and Globalization Center Team at IBM Egypt for adding RTL (right-to-left) support to the notebook!
diff --git a/notebook/_version.py b/notebook/_version.py
index f4e7013..8f8efd5 100644
--- a/notebook/_version.py
+++ b/notebook/_version.py
@@ -9,5 +9,5 @@ store the current version info of the notebook.
# Next beta/alpha/rc release: The version number for beta is X.Y.ZbN **without dots**.
-version_info = (5, 2, 1)
+version_info = (5, 2, 2)
__version__ = '.'.join(map(str, version_info[:3])) + ''.join(version_info[3:])
diff --git a/notebook/auth/login.py b/notebook/auth/login.py
index 93dbff0..dc624fa 100644
--- a/notebook/auth/login.py
+++ b/notebook/auth/login.py
@@ -94,6 +94,7 @@ class LoginHandler(IPythonHandler):
# 'secure' kwarg is passed to set_secure_cookie
if handler.settings.get('secure_cookie', handler.request.protocol == 'https'):
cookie_options.setdefault('secure', True)
+ cookie_options.setdefault('path', handler.base_url)
handler.set_secure_cookie(handler.cookie_name, user_id, **cookie_options)
return user_id
diff --git a/notebook/base/handlers.py b/notebook/base/handlers.py
index d5a7382..1c80a89 100755
--- a/notebook/base/handlers.py
+++ b/notebook/base/handlers.py
@@ -89,10 +89,16 @@ class AuthenticatedHandler(web.RequestHandler):
# if method is unsupported (websocket and Access-Control-Allow-Origin
# for example, so just ignore)
self.log.debug(e)
-
+
def clear_login_cookie(self):
- self.clear_cookie(self.cookie_name)
-
+ cookie_options = self.settings.get('cookie_options', {})
+ path = cookie_options.setdefault('path', self.base_url)
+ self.clear_cookie(self.cookie_name, path=path)
+ if path and path != '/':
+ # also clear cookie on / to ensure old cookies
+ # are cleared after the change in path behavior.
+ self.clear_cookie(self.cookie_name)
+
def get_current_user(self):
if self.login_handler is None:
return 'anonymous'
diff --git a/notebook/static/base/js/namespace.js b/notebook/static/base/js/namespace.js
index 741c60a..6c8ad33 100644
--- a/notebook/static/base/js/namespace.js
+++ b/notebook/static/base/js/namespace.js
@@ -73,7 +73,7 @@ define(function(){
// tree
jglobal('SessionList','tree/js/sessionlist');
- Jupyter.version = "5.2.1";
+ Jupyter.version = "5.2.2";
Jupyter._target = '_blank';
return Jupyter;
});
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/jupyter-notebook.git
More information about the Python-modules-commits
mailing list