2015-04-11 07:20:18 +08:00
|
|
|
# Jupyter Notebook
|
|
|
|
|
|
|
|
The Jupyter HTML notebook is a web-based notebook environment for interactive computing.
|
|
|
|
|
2015-04-13 23:22:01 +08:00
|
|
|
Dev quickstart:
|
|
|
|
|
2015-07-24 00:31:19 +08:00
|
|
|
* ensure that you have node/npm installed (e.g. `brew install node` on OS X)
|
2015-04-13 23:22:01 +08:00
|
|
|
* Clone this repo and cd into it
|
2015-07-24 00:31:19 +08:00
|
|
|
* `pip install --pre -e .`
|
2015-04-14 05:27:14 +08:00
|
|
|
|
|
|
|
_NOTE_: For Debian/Ubuntu systems, if you're installing the system node you need
|
|
|
|
to use the 'nodejs-legacy' package and not the 'node' package.
|
2015-04-13 23:22:01 +08:00
|
|
|
|
2015-04-11 07:20:18 +08:00
|
|
|
Launch with:
|
|
|
|
|
|
|
|
jupyter notebook
|
2015-04-13 23:22:01 +08:00
|
|
|
|
2015-07-24 00:31:19 +08:00
|
|
|
Example installation (tested on Ubuntu Trusty):
|
|
|
|
|
2015-04-21 08:50:22 +08:00
|
|
|
```
|
|
|
|
sudo apt-get install nodejs-legacy npm python-virtualenv python-dev
|
2015-07-24 00:31:19 +08:00
|
|
|
# ensure setuptools/pip are up-to-date
|
2015-04-21 08:50:22 +08:00
|
|
|
pip install --upgrade setuptools pip
|
2015-05-14 01:56:32 +08:00
|
|
|
git clone https://github.com/jupyter/notebook.git
|
|
|
|
cd notebook
|
2015-07-24 00:31:19 +08:00
|
|
|
pip install --pre -e .
|
2015-04-21 08:50:22 +08:00
|
|
|
jupyter notebook
|
|
|
|
```
|
|
|
|
|
2015-08-17 23:50:22 +08:00
|
|
|
## Working on the frontend
|
|
|
|
The Notebook frontend depends on a wide set of libraries and package managers.
|
|
|
|
NPM is used to macro manage the frontend build process. You can build the
|
|
|
|
frontend Javascript and LESS by running
|
|
|
|
|
|
|
|
```
|
|
|
|
npm run build
|
|
|
|
```
|
|
|
|
|
|
|
|
If you need to build the Javascript alone
|
|
|
|
|
|
|
|
```
|
|
|
|
npm run build:js
|
|
|
|
```
|
|
|
|
|
|
|
|
Or LESS
|
|
|
|
|
|
|
|
```
|
|
|
|
npm run build:css
|
|
|
|
```
|
|
|
|
|
|
|
|
To build specific sub components, separate using a colon. i.e. to build only
|
|
|
|
the terminal's Javascript
|
|
|
|
|
|
|
|
```
|
|
|
|
npm run build:js:terminal
|
|
|
|
```
|
|
|
|
|
|
|
|
To clean all built output
|
|
|
|
|
|
|
|
```
|
|
|
|
npm run clean
|
|
|
|
```
|