Skip to content

Commit fd4275c

Browse files
authored
Merge branch 'master' into master
2 parents 101f726 + 2eb5544 commit fd4275c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+457
-412
lines changed

CONTRIBUTING.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ If you do not see that your Jupyter Notebook is not running on dev mode, it's po
8080
running other instances of Jupyter Notebook. You can try the following steps:
8181

8282
1. Uninstall all instances of the notebook package. These include any installations you made using
83-
pip or conda
84-
2. Run ``python3 -m pip install -e .`` in the notebook repository to install the notebook from there
85-
3. Run ``npm run build`` to make sure the Javascript and CSS are updated and compiled
83+
pip or conda.
84+
2. Run ``python3 -m pip install -e .`` in the notebook repository to install the notebook from there.
85+
3. Run ``npm run build`` to make sure the Javascript and CSS are updated and compiled.
8686
4. Launch with ``python3 -m notebook --port 8989``, and check that the browser is pointing to ``localhost:8989``
8787
(rather than the default 8888). You don't necessarily have to launch with port 8989, as long as you use
8888
a port that is neither the default nor in use, then it should be fine.
@@ -98,16 +98,16 @@ this command whenever there are changes to JavaScript or LESS sources::
9898

9999
npm run build
100100

101-
**IMPORTANT:** Don't forget to run ``npm run build`` after switching branches.
102-
When switching between branches of different versions (e.g. ``4.x`` and
103-
``master``), run ``pip install -e .``. If you have tried the above and still
101+
**IMPORTANT:** Don't forget to run ``npm run build`` after switching branches.
102+
When switching between branches of different versions (e.g. ``4.x`` and
103+
``master``), run ``pip install -e .``. If you have tried the above and still
104104
find that the notebook is not reflecting the current source code, try cleaning
105105
the repo with ``git clean -xfd`` and reinstalling with ``pip install -e .``.
106106

107107
Development Tip
108108
"""""""""""""""
109109

110-
When doing development, you can use this command to automatically rebuild
110+
When doing development, you can use this command to automatically rebuild
111111
JavaScript and LESS sources as they are modified::
112112

113113
npm run build:watch
@@ -116,7 +116,7 @@ Git Hooks
116116
"""""""""
117117

118118
If you want to automatically update dependencies and recompile JavaScript and
119-
CSS after checking out a new commit, you can install post-checkout and
119+
CSS after checking out a new commit, you can install post-checkout and
120120
post-merge hooks which will do it for you::
121121

122122
git-hooks/install-hooks.sh
@@ -132,7 +132,7 @@ Python Tests
132132

133133
Install dependencies::
134134

135-
pip install -e .[test]
135+
pip install -e '.[test]'
136136

137137
To run the Python tests, use::
138138

COPYING.md renamed to LICENSE

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# Licensing terms
2-
31
This project is licensed under the terms of the Modified BSD License
42
(also known as New or Revised or 3-Clause BSD), as follows:
53

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
include COPYING.md
1+
include LICENSE
22
include CONTRIBUTING.rst
33
include README.md
44
include package.json

bower.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
"backbone": "components/backbone#~1.2",
66
"bootstrap": "bootstrap#~3.4",
77
"bootstrap-tour": "0.9.0",
8-
"codemirror": "components/codemirror#~5.37",
8+
"codemirror": "components/codemirror#~5.48.4",
99
"create-react-class": "https://cdn.jsdelivr.net/npm/[email protected]/create-react-class.min.js",
1010
"es6-promise": "~1.0",
1111
"font-awesome": "components/font-awesome#~4.7.0",
1212
"google-caja": "5669",
1313
"jed": "~1.1.1",
14-
"jquery": "components/jquery#~3.3",
14+
"jquery": "components/jquery#~3.4.1",
1515
"jquery-typeahead": "~2.0.0",
1616
"jquery-ui": "components/jqueryui#~1.12",
1717
"marked": "~0.5",

docs-translations/ko-KR/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Jupyter notebook 은 상호 교환을 위한 웹 기반 환경입니다.
1313
### Jupyter notebook, 사용자의 언어에 독립적인 IPython notebook의 진화
1414
Jupyter notebook은 Jupyter 프로젝트를 위한 사용자 언어에 독립적인 HTML 응용 프로그램입니다.
1515
2015년에 Jupyter notebook은 IPython 코드 기반의 The Big Split™ 의 일부분으로 시작되었습니다.
16-
IPython 3는 *IPython notebook* 과 같은 사용자 언어에 독립적인 코드와 *IPython kernel for Python* 과 같은 특정언어 기반의 코드의 기능을 가지고 출시되었습니다.
17-
컴퓨터에는 많은 언어가 사용되기 때문에, Jupyter 프로젝트는 사용자 언어에 독립적인 **Jupyter notebook** 을 이 저장소와 개인의 독립적인 저장소에 있는 특정언어 중심의 커널의 도움으로 지속적으로 개발할 것입니다.
16+
IPython 3는 *IPython notebook* 과 같은 사용자 언어에 독립적인 코드와 *IPython kernel for Python* 과 같은 특정 언어 기반의 코드의 기능을 가지고 출시되었습니다.
17+
컴퓨터에는 많은 언어가 사용되기 때문에, Jupyter 프로젝트는 사용자 언어에 독립적인 **Jupyter notebook** 을 이 저장소와 개인의 독립적인 저장소에 있는 특정 언어 중심의 커널의 도움으로 지속적으로 개발할 것입니다.
1818
[[The Big Split™ announcement](https://blog.jupyter.org/2015/04/15/the-big-split/)]
1919
[[Jupyter Ascending blog post](http://blog.jupyter.org/2015/08/12/first-release-of-jupyter/)]
2020

docs/source/changelog.rst

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,44 @@ We strongly recommend that you upgrade pip to version 9+ of pip before upgrading
2121
Use ``pip install pip --upgrade`` to upgrade pip. Check pip version with
2222
``pip --version``.
2323

24+
.. _release-6.0.2:
25+
26+
6.0.2
27+
-----
28+
29+
- Update JQuery dependency to version 3.4.1 to fix security vulnerability (CVE-2019-11358)
30+
- Update CodeMirror to version 5.48.4 to fix Python formatting issues
31+
- Continue removing obsolete Python 2.x code/dependencies
32+
- Multiple documentation updates
33+
34+
Thanks for all the contributors:
35+
36+
- David Robles
37+
- Jason Grout
38+
- Kerwin Sun
39+
- Kevin Bates
40+
- Kyle Kelley
41+
- Luciano Resende
42+
- Marcus D Sherman
43+
- Sasaki Takeru
44+
- Tom Jarosz
45+
- Vidar Tonaas Fauske
46+
- Wes Turner
47+
- Zachary Sailer
48+
49+
.. _release-6.0.1:
50+
51+
6.0.1
52+
-----
53+
54+
- Attempt to re-establish websocket connection to Gateway (:ghpull:`4777`)
55+
- Add missing react-dom js to package data (:ghpull:`4772`)
56+
57+
Thanks for all the contributors:
58+
59+
- Eunsoo Park
60+
- Min RK
61+
2462
.. _release-6.0:
2563

2664
6.0

docs/source/examples/Notebook/Typesetting Equations.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"The Markdown parser included in the Jupyter Notebook is MathJax-aware. This means that you can freely mix in mathematical expressions using the [MathJax subset of Tex and LaTeX](http://docs.mathjax.org/en/latest/tex.html#tex-support). [Some examples from the MathJax site](https://www.mathjax.org/demos/tex-samples/) are reproduced below, as well as the Markdown+TeX source."
7+
"The Markdown parser included in the Jupyter Notebook is MathJax-aware. This means that you can freely mix in mathematical expressions using the [MathJax subset of Tex and LaTeX](https://docs.mathjax.org/en/latest/input/tex/). [Some examples from the MathJax demos site](https://mathjax.github.io/MathJax-demos-web/) are reproduced below, as well as the Markdown+TeX source."
88
]
99
},
1010
{
@@ -272,9 +272,9 @@
272272
"name": "python",
273273
"nbconvert_exporter": "python",
274274
"pygments_lexer": "ipython3",
275-
"version": "3.5.1"
275+
"version": "3.7.3"
276276
}
277277
},
278278
"nbformat": 4,
279-
"nbformat_minor": 0
279+
"nbformat_minor": 1
280280
}

docs/source/examples/Notebook/Working With Markdown Cells.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
"\n",
156156
"or other languages:\n",
157157
"\n",
158-
" if (i=0; i<n; i++) {\n",
158+
" for (i=0; i<n; i++) {\n",
159159
" printf(\"hello %d\\n\", i);\n",
160160
" x += 4;\n",
161161
" }"

docs/source/extending/contents.rst

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,11 @@ model. There are three model types: **notebook**, **file**, and **directory**.
7979

8080
- ``file`` models
8181
- The ``format`` field is either ``"text"`` or ``"base64"``.
82-
- The ``mimetype`` field is ``text/plain`` for text-format models and
83-
``application/octet-stream`` for base64-format models.
82+
- The ``mimetype`` field can be any mimetype string, but defaults to
83+
``text/plain`` for text-format models and
84+
``application/octet-stream`` for base64-format models. For files with
85+
unknown mime types (e.g. unknown file extensions), this field may be
86+
`None`.
8487
- The ``content`` field is always of type ``unicode``. For text-format
8588
file models, ``content`` simply contains the file's bytes after decoding
8689
as UTF-8. Non-text (``base64``) files are read as bytes, base64 encoded,
@@ -97,11 +100,13 @@ model. There are three model types: **notebook**, **file**, and **directory**.
97100
.. _contentfree:
98101

99102
In certain circumstances, we don't need the full content of an entity to
100-
complete a Contents API request. In such cases, we omit the ``mimetype``,
101-
``content``, and ``format`` keys from the model. This most commonly occurs
102-
when listing a directory, in which circumstance we represent files within
103-
the directory as content-less models to avoid having to recursively traverse
104-
and serialize the entire filesystem.
103+
complete a Contents API request. In such cases, we omit the ``content``, and
104+
``format`` keys from the model. The default values for the ``mimetype``
105+
field will might also not be evaluated, in which case it will be set as `None`.
106+
This reduced reply most commonly occurs when listing a directory, in
107+
which circumstance we represent files within the directory as content-less
108+
models to avoid having to recursively traverse and serialize the entire
109+
filesystem.
105110

106111
**Sample Models**
107112

notebook/auth/login.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@
66
import re
77
import os
88

9-
try:
10-
from urllib.parse import urlparse # Py 3
11-
except ImportError:
12-
from urlparse import urlparse # Py 2
9+
from urllib.parse import urlparse
10+
1311
import uuid
1412

1513
from tornado.escape import url_escape

0 commit comments

Comments
 (0)