notebook/README.md

87 lines
3.8 KiB
Markdown
Raw Normal View History

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
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
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
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.
2016-01-05 01:11:19 +08:00
[[The Big Split™ announcement](https://blog.jupyter.org/2015/04/15/the-big-split/)]
[[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-29 00:35:10 +08:00
You can find the installation documentation for the
[Jupyter platform, on ReadTheDocs](http://jupyter.readthedocs.org/en/latest/install.html).
2016-01-05 01:11:19 +08:00
The documentation for advanced usage of Jupyter notebook can be found
2015-12-29 00:35:10 +08:00
[here](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-29 00:05:57 +08:00
If you are using **Linux** and have a
2015-12-28 16:00:40 +08:00
[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
$ 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/`.
All notebooks from your session will be saved in the current directory.
2015-10-07 07:56:31 +08:00
2015-12-29 00:05:57 +08:00
On other platforms, such as **Windows and OS X**, that use
[`docker-machine`](https://docs.docker.com/machine/install-machine/) with `docker`, a container can be started using
2015-12-28 16:00:40 +08:00
`docker-machine`. In the browser, open the URL `http://ip:8888/` where `ip` is
2015-12-28 23:57:00 +08:00
the IP address returned from the command [`docker-machine ip <MACHINE>`](https://docs.docker.com/machine/reference/ip/):
2015-12-28 16:05:05 +08:00
2015-12-28 23:57:00 +08:00
$ docker-machine ip <MACHINE>
2015-12-29 00:05:57 +08:00
For example,
$ docker-machine ip myjupytermachine
192.168.99.104
2015-12-29 00:16:25 +08:00
In browser, open `http://192.168.99.104:8888`.
2015-12-29 00:05:57 +08:00
2015-12-29 00:16:25 +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
## Development Installation
2016-03-25 06:05:01 +08:00
See [`CONTRIBUTING.rst`](CONTRIBUTING.rst) for how to set up a local development installation.
2015-12-28 22:45:31 +08:00
2016-02-25 01:08:45 +08:00
## Contributing
2016-03-25 06:05:01 +08:00
If you are interested in contributing to the project, see [`CONTRIBUTING.rst`](CONTRIBUTING.rst).
2016-02-25 01:08:45 +08:00
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)
2015-12-29 00:11:25 +08:00
- [Documentation for Jupyter notebook](http://jupyter-notebook.readthedocs.org/en/latest/) [[PDF](https://media.readthedocs.org/pdf/jupyter-notebook/latest/jupyter-notebook.pdf)]
- [Documentation for Project Jupyter](http://jupyter.readthedocs.org/en/latest/index.html) [[PDF](https://media.readthedocs.org/pdf/jupyter/latest/jupyter.pdf)]
2015-12-28 22:45:31 +08:00
- [Issues](https://github.com/jupyter/notebook/issues)
2016-01-05 01:11:19 +08:00
- [Technical support - Jupyter Google Group](https://groups.google.com/forum/#!forum/jupyter)