2015-04-11 07:20:18 +08:00
|
|
|
# Jupyter Notebook
|
|
|
|
|
2015-09-25 22:27:45 +08:00
|
|
|
[![Google Group](https://img.shields.io/badge/-Google%20Group-lightgrey.svg)](https://groups.google.com/forum/#!forum/jupyter)
|
|
|
|
[![Build Status](https://travis-ci.org/jupyter/notebook.svg?branch=master)](https://travis-ci.org/jupyter/notebook)
|
|
|
|
[![Documentation Status](https://readthedocs.org/projects/jupyter-notebook/badge/?version=latest)](http://jupyter-notebook.readthedocs.org/en/latest/?badge=latest)
|
|
|
|
|
2015-12-28 16:00:40 +08:00
|
|
|
The Jupyter notebook is a web-based notebook environment for interactive
|
|
|
|
computing.
|
2015-04-11 07:20:18 +08:00
|
|
|
|
2015-12-28 23:31:23 +08:00
|
|
|
![Jupyter notebook example](docs/resources/running_code_med.png "Jupyter notebook example")
|
2015-12-28 16:36:12 +08:00
|
|
|
|
2015-12-28 23:33:37 +08:00
|
|
|
### Jupyter notebook, the language-agnostic evolution of IPython notebook
|
2015-12-28 23:15:07 +08:00
|
|
|
Jupyter notebook is the language-agnostic HTML notebook application for
|
|
|
|
Project Jupyter. In 2015, Jupyter notebook was released as part of
|
2015-12-28 23:42:28 +08:00
|
|
|
The Big Split™ of the IPython codebase. IPython 3 was the last major monolithic
|
2015-12-28 23:15:07 +08:00
|
|
|
release containing both language-agnostic code, such as the *IPython notebook*,
|
|
|
|
and language specific code, such as the *IPython kernel for Python*. As
|
2015-12-28 23:31:23 +08:00
|
|
|
computing spans many languages, Project Jupyter will continue to develop the
|
2015-12-28 23:15:07 +08:00
|
|
|
language-agnostic **Jupyter notebook** in this repo and with the help of the
|
|
|
|
community develop language specific kernels which are found in their own
|
|
|
|
discrete repos.
|
2015-12-28 23:42:28 +08:00
|
|
|
[![The Big Split™ announcement](https://blog.jupyter.org/2015/04/15/the-big-split/)]
|
2015-12-28 23:15:07 +08:00
|
|
|
[![Jupyter Ascending blog post](http://blog.jupyter.org/2015/08/12/first-release-of-jupyter/)]
|
|
|
|
|
2015-12-28 16:00:40 +08:00
|
|
|
## Installation
|
2015-12-28 23:38:40 +08:00
|
|
|
Detailed [Installation documentation](http://jupyter.readthedocs.org/en/latest/install.html)
|
|
|
|
can be found on [ReadTheDocs](http://jupyter-notebook.readthedocs.org/en/latest).
|
2015-12-28 16:00:40 +08:00
|
|
|
|
|
|
|
For a local installation, make sure you have
|
|
|
|
[pip installed](https://pip.readthedocs.org/en/stable/installing/) and run:
|
|
|
|
|
|
|
|
$ pip install notebook
|
|
|
|
|
|
|
|
## Usage - Running Jupyter notebook
|
2015-10-07 07:56:31 +08:00
|
|
|
|
2015-12-28 16:00:40 +08:00
|
|
|
### Running in a local installation
|
2015-10-07 07:56:31 +08:00
|
|
|
|
|
|
|
Launch with:
|
|
|
|
|
|
|
|
$ jupyter notebook
|
|
|
|
|
2015-12-28 16:00:40 +08:00
|
|
|
### Running in a Docker container
|
2015-10-07 07:56:31 +08:00
|
|
|
|
2015-12-28 16:00:40 +08:00
|
|
|
If you are using Linux and have a
|
|
|
|
[Docker daemon running](https://docs.docker.com/installation/),
|
|
|
|
e.g. reachable on `localhost`, start a container with:
|
2015-10-07 07:56:31 +08:00
|
|
|
|
2015-10-08 21:52:15 +08:00
|
|
|
$ docker run --rm -it -p 8888:8888 -v "$(pwd):/notebooks" jupyter/notebook
|
2015-10-07 07:56:31 +08:00
|
|
|
|
2015-12-28 16:00:40 +08:00
|
|
|
In your browser, open the URL `http://localhost:8888/`.
|
2015-10-08 11:34:44 +08:00
|
|
|
All notebooks from your session will be saved in the current directory.
|
2015-10-07 07:56:31 +08:00
|
|
|
|
2015-12-28 16:00:40 +08:00
|
|
|
On other platforms, such as Windows and OS X, that require using
|
|
|
|
`docker-machine` with `docker`, a container can be started using
|
|
|
|
`docker-machine`. In the browser, open the URL `http://ip:8888/` where `ip` is
|
|
|
|
the IP address returned from the command:
|
2015-12-28 16:05:05 +08:00
|
|
|
|
2015-12-28 16:00:40 +08:00
|
|
|
$ [`docker-machine ip <MACHINE>`](https://docs.docker.com/machine/reference/ip/).
|
2015-10-08 11:34:03 +08:00
|
|
|
|
2015-12-28 16:05:05 +08:00
|
|
|
Note: With the deprecated `boot2docker`, use the command `boot2docker ip` to
|
2015-12-28 16:00:40 +08:00
|
|
|
determine the URL.
|
2015-10-07 07:56:31 +08:00
|
|
|
|
2015-12-28 16:00:40 +08:00
|
|
|
## Development Installation Quickstart
|
|
|
|
Detailed [Developer Documentation](http://jupyter-notebook.readthedocs.org/en/latest)
|
|
|
|
is available on ReadTheDocs.
|
2015-04-13 23:22:01 +08:00
|
|
|
|
2015-12-28 16:00:40 +08:00
|
|
|
* Ensure that you have node/npm installed (e.g. `brew install node` on OS X)
|
2015-12-28 16:05:05 +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
|
|
|
|
2015-12-28 16:00:40 +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-12-28 16:00:40 +08:00
|
|
|
For more detailed development install instructions (e.g. recompiling javascript
|
|
|
|
and css, running tests), see the
|
|
|
|
[Developer Documentation](http://jupyter-notebook.readthedocs.org/en/latest)
|
|
|
|
on ReadTheDocs and the [contributing guide](CONTRIBUTING.md).
|
2015-10-31 09:17:01 +08:00
|
|
|
|
2015-10-07 07:56:31 +08:00
|
|
|
### Ubuntu Trusty
|
2015-07-24 00:31:19 +08:00
|
|
|
|
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-10-07 07:56:31 +08:00
|
|
|
### FreeBSD
|
|
|
|
|
2015-06-25 07:48:25 +08:00
|
|
|
```
|
|
|
|
cd /usr/ports/www/npm
|
|
|
|
sudo make install # (Be sure to select the "NODE" option)
|
|
|
|
cd /usr/ports/devel/py-pip
|
|
|
|
sudo make install
|
|
|
|
cd /usr/ports/devel/py-virtualenv
|
|
|
|
sudo make install
|
|
|
|
cd /usr/ports/shells/bash
|
|
|
|
sudo make install
|
|
|
|
mkdir -p ~/.virtualenvs
|
|
|
|
python2.7 -m virtualenv ~/.virtualenvs/notebook
|
|
|
|
bash
|
|
|
|
source ~/.virtualenvs/notebook/bin/activate
|
|
|
|
pip install --upgrade setuptools pip pycurl
|
|
|
|
git clone https://github.com/jupyter/notebook.git
|
|
|
|
cd notebook
|
|
|
|
pip install -r requirements.txt -e .
|
|
|
|
jupyter notebook
|
|
|
|
```
|
2015-12-28 22:45:31 +08:00
|
|
|
|
|
|
|
## Resources
|
|
|
|
- [Project Jupyter website](https://jupyter.org)
|
|
|
|
- [Online Demo at try.jupyter.org](https://try.jupyter.org)
|
|
|
|
- [Documentation](http://jupyter-notebook.readthedocs.org/en/latest/)
|
|
|
|
- [Issues](https://github.com/jupyter/notebook/issues)
|
|
|
|
- [Technical support - Jupyter Google Group](https://groups.google.com/forum/#!forum/jupyter)
|