Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/source/parallel/asyncresult.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ as in IPython's :file:`examples/parallel/interengine` examples.
Metadata
========

IPython.parallel tracks some metadata about the tasks, which is stored
ipython_parallel tracks some metadata about the tasks, which is stored
in the :attr:`.Client.metadata` dict. The AsyncResult object gives you an
interface for this information as well, including timestamps stdout/err,
and engine IDs.
Expand Down
4 changes: 2 additions & 2 deletions docs/source/parallel/magics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ These magics will automatically become available when you create a Client:

.. sourcecode:: ipython

In [1]: from IPython.parallel import Client
In [1]: from ipython_parallel import Client
In [2]: rc = Client()

The initially active View will have attributes ``targets='all', block=True``,
Expand Down Expand Up @@ -341,7 +341,7 @@ the Engine to *also* bind its kernel, to listen for connections:

.. sourcecode:: ipython

In [50]: %px from IPython.parallel import bind_kernel; bind_kernel()
In [50]: %px from ipython_parallel import bind_kernel; bind_kernel()

Then, if your engines are local, you can start a qtconsole right on the engine(s):

Expand Down
2 changes: 1 addition & 1 deletion docs/source/parallel/parallel_demos.rst
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ calculation can also be run by simply typing the commands from

.. sourcecode:: ipython

In [1]: from IPython.parallel import Client
In [1]: from ipython_parallel import Client

# The Client allows us to use the engines interactively.
# We simply pass Client the name of the cluster profile we
Expand Down
20 changes: 10 additions & 10 deletions docs/source/parallel/parallel_details.rst
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ Apply
-----

The principal method of remote execution is :meth:`apply`, of
:class:`~IPython.parallel.client.view.View` objects. The Client provides the full execution and
:class:`~ipython_parallel.client.view.View` objects. The Client provides the full execution and
communication API for engines via its low-level :meth:`send_apply_message` method, which is used
by all higher level methods of its Views.

Expand Down Expand Up @@ -365,9 +365,9 @@ between engines, MPI should be used:
Push and pull
-------------

:meth:`~IPython.parallel.client.view.DirectView.push`
:meth:`~ipython_parallel.client.view.DirectView.push`

:meth:`~IPython.parallel.client.view.DirectView.pull`
:meth:`~ipython_parallel.client.view.DirectView.pull`

.. note::

Expand Down Expand Up @@ -634,13 +634,13 @@ Decorators and RemoteFunctions

TODO: write this section

:func:`~IPython.parallel.client.remotefunction.@parallel`
:func:`~ipython_parallel.client.remotefunction.@parallel`

:func:`~IPython.parallel.client.remotefunction.@remote`
:func:`~ipython_parallel.client.remotefunction.@remote`

:class:`~IPython.parallel.client.remotefunction.RemoteFunction`
:class:`~ipython_parallel.client.remotefunction.RemoteFunction`

:class:`~IPython.parallel.client.remotefunction.ParallelFunction`
:class:`~ipython_parallel.client.remotefunction.ParallelFunction`

Dependencies
============
Expand All @@ -649,8 +649,8 @@ Dependencies

TODO: write this section

:func:`~IPython.parallel.controller.dependency.@depend`
:func:`~ipython_parallel.controller.dependency.@depend`

:func:`~IPython.parallel.controller.dependency.@require`
:func:`~ipython_parallel.controller.dependency.@require`

:class:`~IPython.parallel.controller.dependency.Dependency`
:class:`~ipython_parallel.controller.dependency.Dependency`
6 changes: 3 additions & 3 deletions docs/source/parallel/parallel_intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Overview and getting started
Examples
========

We have various example scripts and notebooks for using IPython.parallel in our
We have various example scripts and notebooks for using ipython_parallel in our
:file:`examples/Parallel%20Computing` directory, or they can be viewed `using nbviewer`__.
Some of these are covered in more detail in the :ref:`examples
<parallel_examples>` section.
Expand Down Expand Up @@ -82,7 +82,7 @@ The IPython architecture consists of four components:
* The IPython schedulers.
* The controller client.

These components live in the :mod:`IPython.parallel` package and are
These components live in the :mod:`ipython_parallel` package and are
installed with IPython. They do, however, have additional dependencies
that must be installed. For more information, see our
:ref:`installation documentation <install_index>`.
Expand Down Expand Up @@ -260,7 +260,7 @@ everything is working correctly, try the following commands:

.. sourcecode:: ipython

In [1]: from IPython.parallel import Client
In [1]: from ipython_parallel import Client

In [2]: c = Client()

Expand Down
2 changes: 1 addition & 1 deletion docs/source/parallel/parallel_mpi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ manner using our :func:`psum` function:

.. sourcecode:: ipython

In [1]: from IPython.parallel import Client
In [1]: from ipython_parallel import Client

In [2]: c = Client(profile='mpi')

Expand Down
10 changes: 5 additions & 5 deletions docs/source/parallel/parallel_multiengine.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ our :ref:`introduction <parallel_overview>` to using IPython for parallel comput
Creating a ``DirectView`` instance
==================================

The first step is to import the IPython :mod:`IPython.parallel`
The first step is to import the IPython :mod:`ipython_parallel`
module and then create a :class:`.Client` instance:

.. sourcecode:: ipython

In [1]: from IPython.parallel import Client
In [1]: from ipython_parallel import Client

In [2]: rc = Client()

Expand Down Expand Up @@ -523,7 +523,7 @@ be collected and raise a CompositeError, as demonstrated in the next section.

.. sourcecode:: ipython

In [69]: from IPython.parallel import require
In [69]: from ipython_parallel import require

In [70]: @require('re')
....: def findall(pat, x):
Expand Down Expand Up @@ -591,7 +591,7 @@ If you want, you can even raise one of these original exceptions:

.. sourcecode:: ipython

In [79]: from IPython.parallel import CompositeError
In [79]: from ipython_parallel import CompositeError

In [80]: try:
....: dview.execute('1/0', block=True)
Expand Down Expand Up @@ -672,7 +672,7 @@ You can change this limit to suit your needs with:

.. sourcecode:: ipython

In [20]: from IPython.parallel import CompositeError
In [20]: from ipython_parallel import CompositeError
In [21]: CompositeError.tb_limit = 1
In [22]: %px x=z
[0:execute]:
Expand Down
14 changes: 7 additions & 7 deletions docs/source/parallel/parallel_process.rst
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ and Windows HPC Server.

In general, these are configured by the :attr:`IPClusterEngines.engine_set_launcher_class`,
and :attr:`IPClusterStart.controller_launcher_class` configurables, which can be the
fully specified object name (e.g. ``'IPython.parallel.apps.launcher.LocalControllerLauncher'``),
fully specified object name (e.g. ``'ipython_parallel.apps.launcher.LocalControllerLauncher'``),
but if you are using IPython's builtin launchers, you can specify just the class name,
or even just the prefix e.g:

Expand All @@ -169,7 +169,7 @@ or even just the prefix e.g:
# equivalent to
c.IPClusterEngines.engine_launcher_class = 'SSHEngineSetLauncher'
# both of which expand to
c.IPClusterEngines.engine_launcher_class = 'IPython.parallel.apps.launcher.SSHEngineSetLauncher'
c.IPClusterEngines.engine_launcher_class = 'ipython_parallel.apps.launcher.SSHEngineSetLauncher'

The shortest form being of particular use on the command line, where all you need to do to
get an IPython cluster running with engines started with MPI is:
Expand Down Expand Up @@ -611,7 +611,7 @@ the engines.

[IPControllerApp] Using existing profile dir: u'/Users/me/.ipython/profile_default'
[IPControllerApp] Hub listening on tcp://192.168.1.16:63320 for registration.
[IPControllerApp] Hub using DB backend: 'IPython.parallel.controller.dictdb.DictDB'
[IPControllerApp] Hub using DB backend: 'ipython_parallel.controller.dictdb.DictDB'
[IPControllerApp] hub::created hub
[IPControllerApp] writing connection info to /Users/me/.ipython/profile_default/security/ipcontroller-client.json
[IPControllerApp] writing connection info to /Users/me/.ipython/profile_default/security/ipcontroller-engine.json
Expand Down Expand Up @@ -781,17 +781,17 @@ To use one of these backends, you must set the :attr:`HubFactory.db_class` trait

# for a simple dict-based in-memory implementation, use dictdb
# This is the default and the fastest, since it doesn't involve the filesystem
c.HubFactory.db_class = 'IPython.parallel.controller.dictdb.DictDB'
c.HubFactory.db_class = 'ipython_parallel.controller.dictdb.DictDB'

# To use MongoDB:
c.HubFactory.db_class = 'IPython.parallel.controller.mongodb.MongoDB'
c.HubFactory.db_class = 'ipython_parallel.controller.mongodb.MongoDB'

# and SQLite:
c.HubFactory.db_class = 'IPython.parallel.controller.sqlitedb.SQLiteDB'
c.HubFactory.db_class = 'ipython_parallel.controller.sqlitedb.SQLiteDB'

# You can use NoDB to disable the database altogether, in case you don't need
# to reuse tasks or results, and want to keep memory consumption under control.
c.HubFactory.db_class = 'IPython.parallel.controller.dictdb.NoDB'
c.HubFactory.db_class = 'ipython_parallel.controller.dictdb.NoDB'

When using the proper databases, you can actually allow for tasks to persist from
one session to the next by specifying the MongoDB database or SQLite table in
Expand Down
16 changes: 8 additions & 8 deletions docs/source/parallel/parallel_task.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ our :ref:`introduction <parallel_overview>` to using IPython for parallel comput
Creating a ``LoadBalancedView`` instance
========================================

The first step is to import the IPython :mod:`IPython.parallel`
The first step is to import the IPython :mod:`ipython_parallel`
module and then create a :class:`.Client` instance, and we will also be using
a :class:`LoadBalancedView`, here called `lview`:

.. sourcecode:: ipython

In [1]: from IPython.parallel import Client
In [1]: from ipython_parallel import Client

In [2]: rc = Client()

Expand Down Expand Up @@ -132,7 +132,7 @@ Functional Dependencies

Functional dependencies are used to determine whether a given engine is capable of running
a particular task. This is implemented via a special :class:`Exception` class,
:class:`UnmetDependency`, found in `IPython.parallel.error`. Its use is very simple:
:class:`UnmetDependency`, found in `ipython_parallel.error`. Its use is very simple:
if a task fails with an UnmetDependency exception, then the scheduler, instead of relaying
the error up to the client like any other error, catches the error, and submits the task
to a different engine. This will repeat indefinitely, and a task will never be submitted
Expand All @@ -145,7 +145,7 @@ There are two decorators and a class used for functional dependencies:

.. sourcecode:: ipython

In [9]: from IPython.parallel import depend, require, dependent
In [9]: from ipython_parallel import depend, require, dependent

@require
********
Expand Down Expand Up @@ -452,10 +452,10 @@ The :class:`LoadBalancedView` has many more powerful features that allow quite a
of flexibility in how tasks are defined and run. The next places to look are
in the following classes:

* :class:`~IPython.parallel.client.view.LoadBalancedView`
* :class:`~IPython.parallel.client.asyncresult.AsyncResult`
* :meth:`~IPython.parallel.client.view.LoadBalancedView.apply`
* :mod:`~IPython.parallel.controller.dependency`
* :class:`~ipython_parallel.client.view.LoadBalancedView`
* :class:`~ipython_parallel.client.asyncresult.AsyncResult`
* :meth:`~ipython_parallel.client.view.LoadBalancedView.apply`
* :mod:`~ipython_parallel.controller.dependency`

The following is an overview of how to use these classes together:

Expand Down
6 changes: 3 additions & 3 deletions docs/source/parallel/parallel_transition.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _parallel_transition:

=====================================================
Transitioning from IPython.kernel to IPython.parallel
Transitioning from IPython.kernel to ipython_parallel
=====================================================


Expand Down Expand Up @@ -55,7 +55,7 @@ To create a new client, and set up the default direct and load-balanced objects:
In [3]: tc = kclient.TaskClient()

# new
In [1]: from IPython.parallel import Client
In [1]: from ipython_parallel import Client

In [2]: rc = Client()

Expand Down Expand Up @@ -176,7 +176,7 @@ In the new code, this is simpler:

In [10]: import numpy

In [11]: from IPython.parallel import Reference
In [11]: from ipython_parallel import Reference

In [12]: ar = lbview.apply(numpy.dot, Reference('A'), B)

Expand Down
2 changes: 1 addition & 1 deletion docs/source/parallel/parallel_winhpc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ apply it to each element of an array of integers in parallel using the

.. sourcecode:: ipython

In [1]: from IPython.parallel import *
In [1]: from ipython_parallel import *

In [2]: c = Client(profile='mycluster')

Expand Down
2 changes: 1 addition & 1 deletion examples/Parallel Computing/Data Publication API.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
},
"outputs": [],
"source": [
"from IPython.parallel import Client"
"from ipython_parallel import Client"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"import matplotlib.pyplot as plt\n",
"\n",
"from IPython.display import display\n",
"from IPython.parallel import Client, error\n",
"from ipython_parallel import Client, error\n",
"\n",
"cluster = Client(profile=\"mpi\")\n",
"view = cluster[:]\n",
Expand Down Expand Up @@ -843,7 +843,7 @@
],
"source": [
"%%px --target 0\n",
"from IPython.parallel import bind_kernel; bind_kernel()\n",
"from ipython_parallel import bind_kernel; bind_kernel()\n",
"%connect_info"
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
"outputs": [],
"source": [
"from IPython.parallel import Client, error\n",
"from ipython_parallel import Client, error\n",
"cluster = Client(profile=\"mpi\")\n",
"view = cluster[:]\n",
"view.block = True"
Expand Down Expand Up @@ -356,7 +356,7 @@
"outputs": [],
"source": [
"# Create the local client that controls our IPython cluster with MPI support\n",
"from IPython.parallel import Client\n",
"from ipython_parallel import Client\n",
"cluster = Client(profile=\"mpi\")\n",
"# We make a view that encompasses all the engines\n",
"view = cluster[:]\n",
Expand Down
4 changes: 2 additions & 2 deletions examples/Parallel Computing/Monte Carlo Options.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"This notebook shows how to use `IPython.parallel` to do Monte-Carlo options pricing in parallel. We will compute the price of a large number of options for different strike prices and volatilities."
"This notebook shows how to use `ipython_parallel` to do Monte-Carlo options pricing in parallel. We will compute the price of a large number of options for different strike prices and volatilities."
]
},
{
Expand Down Expand Up @@ -43,7 +43,7 @@
"source": [
"import sys\n",
"import time\n",
"from IPython.parallel import Client\n",
"from ipython_parallel import Client\n",
"import numpy as np"
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"outputs": [],
"source": [
"from __future__ import print_function\n",
"from IPython.parallel import Client"
"from ipython_parallel import Client"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/Parallel Computing/Parallel Magics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"outputs": [],
"source": [
"from IPython import parallel\n",
"import ipython_parallel as parallel\n",
"rc = parallel.Client()\n",
"dv = rc[:]\n",
"rc.ids"
Expand Down
Loading