@@ -24,22 +24,20 @@ Installing Node.js and npm
24
24
^^^^^^^^^^^^^^^^^^^^^^^^^^
25
25
26
26
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.
29
30
30
31
If you use ``conda ``, you can get them with::
31
32
32
- conda install -c javascript nodejs
33
+ conda install -c conda-forge nodejs
33
34
34
35
If you use `Homebrew <http://brew.sh/ >`_ on Mac OS X::
35
36
36
37
brew install node
37
38
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.
43
41
44
42
You can also use the installer from the `Node.js website <https://nodejs.org >`_.
45
43
@@ -50,14 +48,13 @@ Installing the Jupyter Notebook
50
48
Once you have installed the dependencies mentioned above, use the following
51
49
steps::
52
50
53
- pip install setuptools pip --upgrade --user
51
+ pip install --upgrade setuptools pip
54
52
git clone https://github.com/jupyter/notebook
55
53
cd notebook
56
- pip install -e . --user
54
+ pip install -e .
57
55
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.
61
58
62
59
Once you have done this, you can launch the master branch of Jupyter notebook
63
60
from any directory in your system with::
@@ -108,7 +105,7 @@ Python Tests
108
105
109
106
Install dependencies::
110
107
111
- pip install -e .[test] --user
108
+ pip install -e .[test]
112
109
113
110
To run the Python tests, use::
114
111
@@ -157,10 +154,9 @@ containing all the necessary packages (except pandoc), use::
157
154
.. _conda environment :
158
155
http://conda.pydata.org/docs/using/envs.html#use-environment-from-file
159
156
160
- If you want to install the necessary packages with ``pip `` instead, use
161
- (omitting --user if working in a virtual environment)::
157
+ If you want to install the necessary packages with ``pip `` instead::
162
158
163
- pip install -r docs/doc-requirements.txt --user
159
+ pip install -r docs/doc-requirements.txt
164
160
165
161
Once you have installed the required packages, you can build the docs with::
166
162
0 commit comments