##// END OF EJS Templates
Backport PR #9299: FIX: account for dpi == 'figure'...
Backport PR #9299: FIX: account for dpi == 'figure' In mpl 1.5.0 'figure' became a valid dpi value, in 2.0 it will become the default. xref https://github.com/matplotlib/matplotlib/issues/6113 ...

File last commit:

r20534:0ae199a2
r22154:f870faf9
Show More
install.rst
373 lines | 11.1 KiB | text/x-rst | RstLexer
Thomas Kluyver
Update docs for Python version support
r12147 IPython requires Python 2.7 or ≥ 3.3.
Fernando Perez
Documentation updates....
r1753
MinRK
add note about Windows setuptools dependency to install doc
r4097 .. note::
Min RK
update install doc...
r20524 If you need to use Python 2.6 or 3.2, you can find IPython 1.x
`here <http://archive.ipython.org/release/>`__,
or get it with pip::
pip install 'ipython<2'
Fernando Perez
Include pygments in requirements, small doc fixes.
r6602
Brian Granger
Minor doc fixes for the 0.9 release....
r1729 Quickstart
==========
Min RK
update install doc...
r20524 If you have :mod:`pip`,
MinRK
install doc pass...
r12090 the quickest way to get up and running with IPython is:
Brian Granger
Minor doc fixes for the 0.9 release....
r1729
Brian Granger
Work on documentation....
r2276 .. code-block:: bash
gporras
Fixes #6561 instructions for installing dependencies on zsh/tcsh
r18023 $ pip install "ipython[all]"
Fernando Perez
Include pygments in requirements, small doc fixes.
r6602
Min RK
update install doc...
r20524 This will download and install IPython and its main optional dependencies for the notebook,
qtconsole, tests, and other functionality.
Some dependencies (Qt, PyQt for the QtConsole, pandoc for nbconvert) are not pip-installable,
and will not be pulled in by pip.
Brian Granger
Major work on the documentation....
r2277
To run IPython's test suite, use the :command:`iptest` command:
Brian Granger
Work on documentation....
r2276
.. code-block:: bash
Brian Granger
Minor doc fixes for the 0.9 release....
r1729
Brian Granger
Major work on the documentation....
r2277 $ iptest
Brian Granger
Minor doc fixes for the 0.9 release....
r1729
MinRK
install doc pass...
r12090
Overview
========
This document describes in detail the steps required to install IPython,
and its various optional dependencies.
For a few quick ways to get started with package managers or full Python distributions,
see `the install page <http://ipython.org/install.html>`_ of the IPython website.
IPython is organized into a number of subpackages, each of which has its own dependencies.
All of the subpackages come with IPython, so you don't need to download and
install them separately. However, to use a given subpackage, you will need to
install all of its dependencies.
Please let us know if you have problems installing IPython or any of its dependencies.
MinRK
pass on install docs...
r16708 IPython and most dependencies can be installed via :command:`pip`.
In many scenarios, this is the simplest method of installing Python packages.
More information about :mod:`pip` can be found on
`its PyPI page <http://pypi.python.org/pypi/pip>`__.
MinRK
install doc pass...
r12090
More general information about installing Python packages can be found in
`Python's documentation <http://docs.python.org>`_.
Brian Granger
Adding new install docs as install.txt.
r1690 Installing IPython itself
=========================
Fernando Perez
Documentation updates....
r1753 Given a properly built Python, the basic interactive IPython shell will work
with no external dependencies. However, some Python distributions
(particularly on Windows and OS X), don't come with a working :mod:`readline`
module. The IPython shell will work without :mod:`readline`, but will lack
many features that users depend on, such as tab completion and command line
Min RK
update install doc...
r20524 editing. If you install IPython with :mod:`pip`,
then the appropriate :mod:`readline` for your platform will be installed.
See below for details of how to make sure you have a working :mod:`readline`.
Brian Granger
Adding new install docs as install.txt.
r1690
MinRK
pass on install docs...
r16708 Installation using pip
----------------------
Brian Granger
Adding new install docs as install.txt.
r1690
Min RK
address review in install doc
r20534 If you have :mod:`pip`, the easiest way of getting IPython is:
Fernando Perez
Documentation updates....
r1753
Brian Granger
Work on documentation....
r2276 .. code-block:: bash
MinRK
install doc pass...
r12090 $ pip install ipython
Brian Granger
Adding new install docs as install.txt.
r1690
That's it.
MinRK
install doc pass...
r12090
Brian Granger
Adding new install docs as install.txt.
r1690 Installation from source
------------------------
MinRK
pass on install docs...
r16708 If you don't want to use :command:`pip`, or don't have it installed,
Min RK
update install doc...
r20524 grab the latest stable build of IPython from `here
Paul Ivanov
minor doc fixes
r4881 <http://ipython.org/download.html>`_. Then do the following:
Brian Granger
Work on documentation....
r2276
.. code-block:: bash
Brian Granger
Adding new install docs as install.txt.
r1690
Brian Granger
Major work on the documentation....
r2277 $ tar -xzf ipython.tar.gz
$ cd ipython
$ python setup.py install
Fernando Perez
Documentation updates....
r1753
If you are installing to a location (like ``/usr/local``) that requires higher
permissions, you may need to run the last command with :command:`sudo`.
Brian Granger
Adding new install docs as install.txt.
r1690
Fernando Perez
Small documentation updates and comments about Windows install.
r2113
Brian Granger
Adding new install docs as install.txt.
r1690 Installing the development version
----------------------------------
Fernando Perez
Documentation updates....
r1753 It is also possible to install the development version of IPython from our
MinRK
update install doc to reflect 0.11 changes and GitHub move...
r3768 `Git <http://git-scm.com/>`_ source code repository. To do this you will
Min RK
update install doc...
r20524 need to have Git installed on your system. Then do:
Fernando Perez
Documentation updates....
r1753
Brian Granger
Work on documentation....
r2276 .. code-block:: bash
MinRK
install doc pass...
r12090 $ git clone --recursive https://github.com/ipython/ipython.git
Brian Granger
Major work on the documentation....
r2277 $ cd ipython
$ python setup.py install
Brian Granger
Adding new install docs as install.txt.
r1690
Fernando Perez
Documentation updates....
r1753 Some users want to be able to follow the development branch as it changes. If
Min RK
update install doc...
r20524 you have :mod:`pip`, you can replace the last step by:
Brian Granger
Work on documentation....
r2276
.. code-block:: bash
Brian Granger
Adding new install docs as install.txt.
r1690
Min RK
update install doc...
r20524 $ pip install -e .
Brian Granger
Adding new install docs as install.txt.
r1690
Fernando Perez
More doc updates....
r1754 This creates links in the right places and installs the command line script to
Nikolay Koldunov
Fix on fix of install documentation
r16319 the appropriate places.
Nikolay Koldunov
Mention git hooks in install documentation
r16317
Min RK
update install doc...
r20524 Then, if you want to update your IPython at any time, do:
Brian Granger
Work on documentation....
r2276
.. code-block:: bash
Fernando Perez
Documentation updates....
r1753
MinRK
update install doc to reflect 0.11 changes and GitHub move...
r3768 $ git pull
Brian Granger
Adding new install docs as install.txt.
r1690
Nikolay Koldunov
Fix on fix of install documentation
r16319 IPython now uses git submodules to ship its javascript dependencies. If you run
IPython from git master, you may need to update submodules once in a while with:
.. code-block:: bash
$ git submodule update
or
.. code-block:: bash
$ python setup.py submodule
Another option is to copy `git hooks <https://github.com/ipython/ipython/tree/master/git-hooks>`_
Nikolay Koldunov
change git to git hooks
r16326 to your ``./git/hooks/`` directory to ensure that your submodules are up to date on each pull.
Nikolay Koldunov
Fix on fix of install documentation
r16319
MinRK
install doc pass...
r12090
Brian Granger
Adding new install docs as install.txt.
r1690 Basic optional dependencies
===========================
Fernando Perez
Merging from upstream (with a few local cleanups when resolving conflicts).
r1866 There are a number of basic optional dependencies that most users will want to
get. These are:
Brian Granger
Adding new install docs as install.txt.
r1690
* readline (for command line editing, tab completion, etc.)
* nose (to run the IPython test suite)
Min RK
update install doc...
r20524 * mock (Python < 3, also for tests)
Brian Granger
Adding new install docs as install.txt.
r1690
Fernando Perez
Merging from upstream (with a few local cleanups when resolving conflicts).
r1866 If you are comfortable installing these things yourself, have at it, otherwise
read on for more details.
Brian Granger
Adding new install docs as install.txt.
r1690
Thomas Kluyver
Reduce information about Pexpect
r14705 IPython uses several other modules, such as pexpect_ and path.py, if they are
installed on your system, but it can also use bundled versions from
:mod:`IPython.external`, so there's no need to install them separately.
Brian Granger
Adding new install docs as install.txt.
r1690 readline
--------
Paul Moore
Downplay the need for pyreadline on Windows....
r13891 As indicated above, on Windows, to get full functionality in the console
version of IPython, PyReadline is needed.
Fernando Perez
Update installation instructions....
r6598 PyReadline is a separate, Windows only implementation of readline that uses
native Windows calls through :mod:`ctypes`. The easiest way of installing
PyReadline is you use the binary installer available `here
MinRK
install doc pass...
r12090 <http://pypi.python.org/pypi/pyreadline>`__.
Fernando Perez
Add note about libedit on OS X. Closes gh-150.
r3058
Min RK
update install doc...
r20524 On OS X, if you are using the built-in Python shipped by Apple, you will be
MinRK
pass on install docs...
r16708 missing a proper readline implementation as Apple ships instead a library called
Fernando Perez
Update installation instructions....
r6598 ``libedit`` that provides only some of readline's functionality. While you may
find libedit sufficient, we have occasional reports of bugs with it and several
developers who use OS X as their main environment consider libedit unacceptable
for productive, regular use with IPython.
Fernando Perez
Add note about libedit on OS X. Closes gh-150.
r3058
MinRK
pass on install docs...
r16708 Therefore, IPython on OS X depends on the :mod:`gnureadline` module.
We will *not* consider completion/history problems to be bugs for IPython if you are using libedit.
Fernando Perez
Documentation updates....
r1753
Min RK
update install doc...
r20524 To get a working :mod:`readline` module on OS X, do (with :mod:`pip`
Fernando Perez
Add note about libedit on OS X. Closes gh-150.
r3058 installed):
Brian Granger
Adding new install docs as install.txt.
r1690
Brian Granger
Work on documentation....
r2276 .. code-block:: bash
MinRK
pass on install docs...
r16708 $ pip install gnureadline
Brian Granger
Adding new install docs as install.txt.
r1690
Brian Granger
Major work on the documentation....
r2277 .. note::
Brian Granger
Adding new install docs as install.txt.
r1690
MinRK
pass on install docs...
r16708 Other Python distributions on OS X (such as Anaconda, fink, MacPorts)
already have proper readline so you likely don't have to do this step.
Brian Granger
Adding new install docs as install.txt.
r1690
Min RK
address review in install doc
r20534 When IPython is installed with :mod:`pip`,
the correct readline should be installed if you specify the `terminal`
MinRK
pass on install docs...
r16708 optional dependencies:
.. code-block:: bash
gporras
Fixes #6561 instructions for installing dependencies on zsh/tcsh
r18023 $ pip install "ipython[terminal]"
Brian Granger
Adding new install docs as install.txt.
r1690
nose
----
Fernando Perez
Documentation updates....
r1753 To run the IPython test suite you will need the :mod:`nose` package. Nose
provides a great way of sniffing out and running all of the IPython tests. The
MinRK
pass on install docs...
r16708 simplest way of getting nose is to use :command:`pip`:
Brian Granger
Work on documentation....
r2276
.. code-block:: bash
Brian Granger
Adding new install docs as install.txt.
r1690
MinRK
install doc pass...
r12090 $ pip install nose
Brian Granger
Adding new install docs as install.txt.
r1690
Brian Granger
Work on documentation....
r2276 Another way of getting this is to do:
Brian Granger
Adding new install docs as install.txt.
r1690
Brian Granger
Work on documentation....
r2276 .. code-block:: bash
gporras
Fixes #6561 instructions for installing dependencies on zsh/tcsh
r18023 $ pip install "ipython[test]"
Brian Granger
Adding new install docs as install.txt.
r1690
Fernando Perez
Documentation updates....
r1753 For more installation options, see the `nose website
Brian Granger
Major work on the documentation....
r2277 <http://somethingaboutorange.com/mrl/projects/nose/>`_.
Once you have nose installed, you can run IPython's test suite using the
iptest command:
Fernando Perez
Documentation updates....
r1753
Brian Granger
Work on documentation....
r2276 .. code-block:: bash
Brian Granger
Adding new install docs as install.txt.
r1690
Brian Granger
Major work on the documentation....
r2277 $ iptest
Brian Granger
Adding new install docs as install.txt.
r1690
MinRK
rebase IPython.parallel after removal of IPython.kernel...
r3672 Dependencies for IPython.parallel (parallel computing)
======================================================
Brian Granger
Adding new install docs as install.txt.
r1690
Min RK
update install doc...
r20524 IPython's inter-process communication uses the PyZMQ_ bindings for the ZeroMQ_ messaging library.
This is the only dependency for :mod:`IPython.parallel`.
Brian Granger
Adding new install docs as install.txt.
r1690
Min RK
update install doc...
r20524 Shortcut:
Fernando Perez
Documentation updates....
r1753
Brian Granger
Work on documentation....
r2276 .. code-block:: bash
Min RK
update install doc...
r20524 pip install "ipython[parallel]"
Brian Granger
Adding new install docs as install.txt.
r1690
Min RK
update install doc...
r20524 or manual
Brian Granger
Adding new install docs as install.txt.
r1690
Min RK
update install doc...
r20524 .. code-block:: bash
MinRK
initial draft of core zmq.parallel docs
r3591
Min RK
update install doc...
r20524 pip install pyzmq
MinRK
initial draft of core zmq.parallel docs
r3591
Min RK
update install doc...
r20524 PyZMQ provides wheels for current Python on OS X and Windows, so installing pyzmq will typically not require compilation.
MinRK
rebase IPython.parallel after removal of IPython.kernel...
r3672
Min RK
update install doc...
r20524 IPython.parallel can use SSH tunnels, which require paramiko_ on Windows.
MinRK
initial draft of core zmq.parallel docs
r3591
Min RK
update install doc...
r20524 Dependencies for the IPython Qt console
Brian E. Granger
Adding initial documentation on the notebook.
r4524 =======================================
MinRK
initial draft of core zmq.parallel docs
r3591
Min RK
update install doc...
r20524 pyzmq_, pygments_, PyQt_ (or PySide_)
Valentin Haenel
doc: the QT console need ZeroMQ and pyzmq
r4710
Min RK
update install doc...
r20524 Shortcut:
Valentin Haenel
doc: the QT console need ZeroMQ and pyzmq
r4710
Min RK
update install doc...
r20524 .. code-block:: bash
MinRK
initial draft of core zmq.parallel docs
r3591
Min RK
update install doc...
r20524 pip install "ipython[qtconsole]"
MinRK
initial draft of core zmq.parallel docs
r3591
Min RK
update install doc...
r20524 or manual
.. code-block:: bash
pip install pyzmq pygments
MinRK
initial draft of core zmq.parallel docs
r3591
Min RK
update install doc...
r20524 PyQt/PySide are not pip installable, so generally must be installed via system package managers (or conda).
Fernando Perez
Update docs with Tornado info.
r4779
MinRK
update tornado dependency to 2.1...
r4856 .. _installnotebook:
MinRK
initial draft of core zmq.parallel docs
r3591
Brian E. Granger
Adding initial documentation on the notebook.
r4524 Dependencies for the IPython HTML notebook
==========================================
Min RK
update install doc...
r20524 The HTML notebook is a complex web application with quite a few dependencies:
Brian E. Granger
Adding initial documentation on the notebook.
r4524
Min RK
update install doc...
r20524 pyzmq_, jinja2_, tornado_, mistune_, jsonschema_, pygments_, terminado_
Brian E. Granger
Adding initial documentation on the notebook.
r4524
Min RK
update install doc...
r20524 Shortcut:
Brian E. Granger
Adding initial documentation on the notebook.
r4524
Min RK
update install doc...
r20524 .. code-block:: bash
Brian E. Granger
Adding initial documentation on the notebook.
r4524
Min RK
update install doc...
r20524 pip install "ipython[notebook]"
Fernando Perez
Update docs with Tornado info.
r4779
Min RK
update install doc...
r20524 or manual:
MinRK
mention Jinja in install docs
r9238
Min RK
update install doc...
r20524 .. code-block:: bash
MinRK
mention Jinja in install docs
r9238
Min RK
address review in install doc
r20534 pip install pyzmq jinja2 tornado mistune jsonschema pygments terminado
Min RK
update install doc...
r20524
The IPython notebook is a notebook-style web interface to IPython and can be
started with the command ``ipython notebook``.
Brian E. Granger
Adding initial documentation on the notebook.
r4524
Brian E. Granger
Adding information about MathJax to notebook install docs.
r4665 MathJax
-------
Fernando Perez
Update docs with Tornado info.
r4779 The IPython notebook uses the MathJax_ Javascript library for rendering LaTeX
in web browsers. Because MathJax is large, we don't include it with
IPython. Normally IPython will load MathJax from a CDN, but if you have a slow
network connection, or want to use LaTeX without an internet connection at all,
Mark Sienkiewicz at STScI
mods to install mathjax from an explicitly downloaded tar or zip file
r8154 you can install MathJax locally.
A quick and easy method is to install it from a python session::
Brian E. Granger
Adding information about MathJax to notebook install docs.
r4665
Min RK
update install doc...
r20524 python -m IPython.external.mathjax
Brian E. Granger
Adding information about MathJax to notebook install docs.
r4665
Mark Sienkiewicz at STScI
mods to install mathjax from an explicitly downloaded tar or zip file
r8154 If you need tighter configuration control, you can download your own copy
Matthias BUSSONNIER
update 1.1 to 2.0
r8670 of MathJax from http://www.mathjax.org/download/ - use the MathJax-2.0 link.
Mark Sienkiewicz at STScI
mods to install mathjax from an explicitly downloaded tar or zip file
r8154 When you have the file stored locally, install it with::
Min RK
update install doc...
r20524 python -m IPython.external.mathjax /path/to/source/mathjax-MathJax-v2.0-20-g07669ac.zip
Mark Sienkiewicz at STScI
mods to install mathjax from an explicitly downloaded tar or zip file
r8154
For unusual needs, IPython can tell you what directory it wants to find MathJax in::
Min RK
update install doc...
r20524 python -m IPython.external.mathjax -d /some/other/mathjax
Mark Sienkiewicz at STScI
mods to install mathjax from an explicitly downloaded tar or zip file
r8154
Min RK
address review in install doc
r20534 By default MathJax will be installed in your ipython directory, but you
can install MathJax system-wide. Please refer to the documentation
MinRK
mention Jinja in install docs
r9238 of :mod:`IPython.external.mathjax`
Brian E. Granger
Adding information about MathJax to notebook install docs.
r4665
MinRK
htmlnotebook doc updates...
r4673 Browser Compatibility
---------------------
Brian E. Granger
Adding initial documentation on the notebook.
r4524
MinRK
pass on install docs...
r16708 The IPython notebook is officially supported on the following browsers:
Brian Granger
Updating notebook compat docs.
r9564
* Chrome ≥ 13
* Safari ≥ 5
* Firefox ≥ 6
The is mainly due to the notebook's usage of WebSockets and the flexible box model.
The following browsers are unsupported:
* Safari < 5
* Firefox < 6
* Chrome < 13
* Opera (any): CSS issues, but execution might work
* Internet Explorer < 10
Min RK
update install doc...
r20524 * Internet Explorer ≥ 10 (same as Opera)
Brian Granger
Updating notebook compat docs.
r9564
Min RK
address review in install doc
r20534 Using Safari with HTTPS and an untrusted certificate is known to not work (websockets will fail).
Brian E. Granger
Adding initial documentation on the notebook.
r4524
MinRK
add pandoc to install docs
r11491 Dependencies for nbconvert (converting notebooks to various formats)
====================================================================
Min RK
update install doc...
r20524 For converting markdown to formats other than HTML, nbconvert uses Pandoc_ (1.12.1 or later).
MinRK
add pandoc to install docs
r11491
To install pandoc on Linux, you can generally use your package manager::
sudo apt-get install pandoc
On other platforms, you can get pandoc from `their website <http://johnmacfarlane.net/pandoc/installing.html>`_.
Fernando Perez
Update docs with Tornado info.
r4779 .. _ZeroMQ: http://www.zeromq.org
.. _PyZMQ: https://github.com/zeromq/pyzmq
.. _paramiko: https://github.com/robey/paramiko
.. _pygments: http://pygments.org
Thomas Kluyver
Reduce information about Pexpect
r14705 .. _pexpect: http://pexpect.readthedocs.org/en/latest/
MinRK
mention Jinja in install docs
r9238 .. _Jinja: http://jinja.pocoo.org
MinRK
add pandoc to install docs
r11491 .. _Sphinx: http://sphinx-doc.org
.. _pandoc: http://johnmacfarlane.net/pandoc
Fernando Perez
Update docs with Tornado info.
r4779 .. _Tornado: http://www.tornadoweb.org
.. _MathJax: http://www.mathjax.org
Min RK
update install doc...
r20524 .. _PyQt: http://www.riverbankcomputing.com/software/pyqt/intro
.. _PySide: http://qt-project.org/wiki/PySide
.. _jinja2: http://jinja.pocoo.org/
.. _mistune: https://github.com/lepture/mistune
.. _jsonschema: https://github.com/Julian/jsonschema
.. _terminado: https://github.com/takluyver/terminado