Skip to content

Commit 1849b80

Browse files
authored
Merge branch 'master' into delete-to-trash
2 parents ad3ab9b + decb30d commit 1849b80

File tree

210 files changed

+9265
-3078
lines changed

Some content is hidden

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

210 files changed

+9265
-3078
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,6 @@ src
3333
Read the Docs
3434
config.rst
3535

36+
/.project
37+
/.pydevproject
38+

.travis.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ python:
88
- 3.5.1 # Set to 3.5.1 since travis has not yet included as default for 3.5
99
- 2.7
1010

11-
sudo: false
11+
sudo: required
1212

1313
env:
1414
global:
1515
- PATH=$TRAVIS_BUILD_DIR/pandoc:$PATH
1616
matrix:
17+
- GROUP=js/notebook
1718
- GROUP=python
1819
- GROUP=js/base
19-
- GROUP=js/notebook
2020
- GROUP=js/services
2121
- GROUP=js/tree
2222

@@ -29,15 +29,19 @@ before_install:
2929
- npm --version
3030
- npm upgrade -g npm
3131
- npm install
32-
- 'if [[ $GROUP == js* ]]; then npm install -g [email protected]; fi'
32+
- |
33+
if [[ $GROUP == js* ]]; then
34+
35+
fi
3336
- git clone --quiet --depth 1 https://github.com/minrk/travis-wheels travis-wheels
3437

3538
install:
3639
- pip install -f travis-wheels/wheelhouse file://$PWD#egg=notebook[test]
40+
- wget https://github.com/jgm/pandoc/releases/download/1.19.1/pandoc-1.19.1-1-amd64.deb && sudo dpkg -i pandoc-1.19.1-1-amd64.deb
41+
3742

3843
script:
3944
- 'if [[ $GROUP == js* ]]; then travis_retry python -m notebook.jstest ${GROUP:3}; fi'
40-
- 'if [[ $GROUP == "js/notebook" ]]; then npm run lint; fi'
4145
- 'if [[ $GROUP == python ]]; then nosetests -v --with-coverage --cover-package=notebook notebook; fi'
4246

4347
matrix:

CONTRIBUTING.rst

Lines changed: 27 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,20 @@ Installing Node.js and npm
2424
^^^^^^^^^^^^^^^^^^^^^^^^^^
2525

2626
Building the Notebook from its GitHub source code requires some tools to
27-
create and minify JavaScript components and the CSS.
28-
Namely, that's Node.js and Node's package manager, ``npm``.
27+
create and minify JavaScript components and the CSS,
28+
specifically Node.js and Node's package manager, ``npm``.
29+
It should be node version ≥ 6.0.
2930

3031
If you use ``conda``, you can get them with::
3132

32-
conda install -c javascript nodejs
33+
conda install -c conda-forge nodejs
3334

3435
If you use `Homebrew <http://brew.sh/>`_ on Mac OS X::
3536

3637
brew install node
3738

38-
For Debian/Ubuntu systems, you should use the ``nodejs-legacy`` package instead
39-
of the ``node`` package::
40-
41-
sudo apt-get update
42-
sudo apt-get install nodejs-legacy npm
39+
Installation on Linux may vary, but be aware that the `nodejs` or `npm` packages
40+
included in the system package repository may be too old to work properly.
4341

4442
You can also use the installer from the `Node.js website <https://nodejs.org>`_.
4543

@@ -50,14 +48,13 @@ Installing the Jupyter Notebook
5048
Once you have installed the dependencies mentioned above, use the following
5149
steps::
5250

53-
pip install setuptools pip --upgrade --user
51+
pip install --upgrade setuptools pip
5452
git clone https://github.com/jupyter/notebook
5553
cd notebook
56-
pip install -e . --user
54+
pip install -e .
5755

58-
If you want the development environment to be available for all users of your
59-
system (assuming you have the necessary rights) or if you are installing in a
60-
virtual environment, just drop the ``--user`` option.
56+
If you are using a system-wide Python installation and you only want to install the notebook for you,
57+
you can add ``--user`` to the install commands.
6158

6259
Once you have done this, you can launch the master branch of Jupyter notebook
6360
from any directory in your system with::
@@ -72,25 +69,28 @@ There is a build step for the JavaScript and CSS in the notebook.
7269
To make sure that you are working with up-to-date code, you will need to run
7370
this command whenever there are changes to JavaScript or LESS sources::
7471

75-
python setup.py js css
72+
npm run build
73+
74+
**IMPORTANT:** Don't forget to run ``npm run build`` after switching branches.
75+
When switching between branches of different versions (e.g. ``4.x`` and
76+
``master``), run ``pip install -e .``. If you have tried the above and still
77+
find that the notebook is not reflecting the current source code, try cleaning
78+
the repo with ``git clean -xfd`` and reinstalling with ``pip install -e .``.
7679

77-
Prototyping Tip
80+
Development Tip
7881
"""""""""""""""
7982

80-
When doing prototyping which needs quick iteration of the Notebook's
81-
JavaScript, run this in the root of the repository::
83+
When doing development, you can use this command to automatically rebuild
84+
JavaScript and LESS sources as they are modified::
8285

8386
npm run build:watch
8487

85-
This will cause WebPack to monitor the files you edit and recompile them on the
86-
fly.
87-
8888
Git Hooks
8989
"""""""""
9090

91-
If you want to automatically update dependencies, recompile the JavaScript, and
92-
recompile the CSS after checking out a new commit, you can install
93-
post-checkout and post-merge hooks which will do it for you::
91+
If you want to automatically update dependencies and recompile JavaScript and
92+
CSS after checking out a new commit, you can install post-checkout and
93+
post-merge hooks which will do it for you::
9494

9595
git-hooks/install-hooks.sh
9696

@@ -105,7 +105,7 @@ Python Tests
105105

106106
Install dependencies::
107107

108-
pip install -e .[test] --user
108+
pip install -e .[test]
109109

110110
To run the Python tests, use::
111111

@@ -121,7 +121,7 @@ JavaScript Tests
121121
To run the JavaScript tests, you will need to have PhantomJS and CasperJS
122122
installed::
123123

124-
npm install -g casperjs phantomjs@1.9.18
124+
npm install -g casperjs phantomjs-prebuilt
125125

126126
Then, to run the JavaScript tests::
127127

@@ -154,10 +154,9 @@ containing all the necessary packages (except pandoc), use::
154154
.. _conda environment:
155155
http://conda.pydata.org/docs/using/envs.html#use-environment-from-file
156156

157-
If you want to install the necessary packages with ``pip`` instead, use
158-
(omitting --user if working in a virtual environment)::
157+
If you want to install the necessary packages with ``pip`` instead::
159158

160-
pip install -r docs/doc-requirements.txt --user
159+
pip install -r docs/doc-requirements.txt
161160

162161
Once you have installed the required packages, you can build the docs with::
163162

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
include COPYING.md
2-
include CONTRIBUTING.md
2+
include CONTRIBUTING.rst
33
include README.md
44
include package.json
55
include bower.json

appveyor.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,20 @@ matrix:
33
fast_finish: true
44

55
environment:
6-
CONDA_INSTALL_LOCN: "C:\\conda"
76
matrix:
87
- CONDA_PY: 35
8+
CONDA_INSTALL_LOCN: "C:\\Miniconda35-x64"
99
- CONDA_PY: 27
10+
CONDA_INSTALL_LOCN: "C:\\Miniconda-x64"
1011

1112
platform:
1213
- x64
1314

1415
build: off
1516

1617
install:
17-
- appveyor DownloadFile "https://raw.githubusercontent.com/conda-forge/conda-smithy/master/bootstrap-obvious-ci-and-miniconda.py"
18-
- cmd: python bootstrap-obvious-ci-and-miniconda.py %CONDA_INSTALL_LOCN% %platform% %CONDA_PY:~0,1% --without-obvci
19-
20-
# Add a hack to switch to `conda` version `4.1.12` before activating.
21-
# This is required to handle a long path activation issue.
22-
# Verbatim from https://github.com/conda-forge/conda-smithy/pull/329
23-
- cmd: set "OLDPATH=%PATH%"
24-
- cmd: set "PATH=%CONDA_INSTALL_LOCN%\\Scripts;%CONDA_INSTALL_LOCN%\\Library\\bin;%PATH%"
25-
- cmd: conda install --yes --quiet conda=4.1.12
26-
- cmd: set "PATH=%OLDPATH%"
27-
- cmd: set "OLDPATH="
28-
2918
- cmd: call %CONDA_INSTALL_LOCN%\Scripts\activate.bat
19+
- cmd: conda update --yes --quiet conda
3020
- cmd: conda config --set show_channel_urls true
3121
- cmd: conda config --add channels conda-forge
3222
- cmd: conda install -y pyzmq tornado jupyter_client nbformat nbconvert ipykernel pip nodejs nose

bower.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,25 @@
55
"backbone": "components/backbone#~1.2",
66
"bootstrap": "components/bootstrap#~3.3",
77
"bootstrap-tour": "0.9.0",
8-
"codemirror": "components/codemirror#~5.21",
9-
"font-awesome": "components/font-awesome#~4.2.0",
8+
"codemirror": "components/codemirror#~5.27",
9+
"es6-promise": "~1.0",
10+
"font-awesome": "components/font-awesome#~4.7.0",
1011
"google-caja": "5669",
12+
"jed": "~1.1.1",
1113
"jquery": "components/jquery#~2.0",
1214
"jquery-typeahead": "~2.0.0",
1315
"jquery-ui": "components/jqueryui#~1.10",
1416
"marked": "~0.3",
1517
"MathJax": "components/MathJax#~2.6",
18+
"moment": "~2.8.4",
19+
"preact": "https://unpkg.com/preact@^7.2.0/dist/preact.min.js",
20+
"preact-compat": "https://unpkg.com/preact-compat@^3.14.3/dist/preact-compat.min.js",
21+
"proptypes": "https://unpkg.com/proptypes@^0.14.4/index.js",
1622
"requirejs": "~2.1",
23+
"requirejs-text": "~2.0.15",
24+
"requirejs-plugins": "~1.0.3",
1725
"text-encoding": "~0.1",
18-
"underscore": "components/underscore#~1.8.3"
26+
"underscore": "components/underscore#~1.8.3",
27+
"xterm.js": "sourcelair/xterm.js#~2.8.1"
1928
}
2029
}
87.3 KB
Loading
102 KB
Loading
155 KB
Loading
149 KB
Loading

0 commit comments

Comments
 (0)