diff --git a/docs/source/parallel/asyncresult.rst b/docs/source/parallel/asyncresult.rst index ed7c49a66..e8cb0bc5c 100644 --- a/docs/source/parallel/asyncresult.rst +++ b/docs/source/parallel/asyncresult.rst @@ -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. diff --git a/docs/source/parallel/magics.rst b/docs/source/parallel/magics.rst index 1036d9224..46c4f5c75 100644 --- a/docs/source/parallel/magics.rst +++ b/docs/source/parallel/magics.rst @@ -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``, @@ -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): diff --git a/docs/source/parallel/parallel_demos.rst b/docs/source/parallel/parallel_demos.rst index c4f204462..094d2da95 100644 --- a/docs/source/parallel/parallel_demos.rst +++ b/docs/source/parallel/parallel_demos.rst @@ -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 diff --git a/docs/source/parallel/parallel_details.rst b/docs/source/parallel/parallel_details.rst index 882d43614..f7a0df95b 100644 --- a/docs/source/parallel/parallel_details.rst +++ b/docs/source/parallel/parallel_details.rst @@ -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. @@ -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:: @@ -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 ============ @@ -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` diff --git a/docs/source/parallel/parallel_intro.rst b/docs/source/parallel/parallel_intro.rst index 763790f00..9fde9358a 100644 --- a/docs/source/parallel/parallel_intro.rst +++ b/docs/source/parallel/parallel_intro.rst @@ -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 ` section. @@ -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 `. @@ -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() diff --git a/docs/source/parallel/parallel_mpi.rst b/docs/source/parallel/parallel_mpi.rst index aa258967a..2ff22c6b7 100644 --- a/docs/source/parallel/parallel_mpi.rst +++ b/docs/source/parallel/parallel_mpi.rst @@ -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') diff --git a/docs/source/parallel/parallel_multiengine.rst b/docs/source/parallel/parallel_multiengine.rst index 0b5a91f6b..a3b74fac4 100644 --- a/docs/source/parallel/parallel_multiengine.rst +++ b/docs/source/parallel/parallel_multiengine.rst @@ -27,12 +27,12 @@ our :ref:`introduction ` 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() @@ -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): @@ -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) @@ -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]: diff --git a/docs/source/parallel/parallel_process.rst b/docs/source/parallel/parallel_process.rst index e009f4ce4..2b0493a13 100644 --- a/docs/source/parallel/parallel_process.rst +++ b/docs/source/parallel/parallel_process.rst @@ -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: @@ -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: @@ -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 @@ -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 diff --git a/docs/source/parallel/parallel_task.rst b/docs/source/parallel/parallel_task.rst index c8432b981..f65b154d4 100644 --- a/docs/source/parallel/parallel_task.rst +++ b/docs/source/parallel/parallel_task.rst @@ -32,13 +32,13 @@ our :ref:`introduction ` 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() @@ -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 @@ -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 ******** @@ -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: diff --git a/docs/source/parallel/parallel_transition.rst b/docs/source/parallel/parallel_transition.rst index a4a5557ac..90d8cb03a 100644 --- a/docs/source/parallel/parallel_transition.rst +++ b/docs/source/parallel/parallel_transition.rst @@ -1,7 +1,7 @@ .. _parallel_transition: ===================================================== -Transitioning from IPython.kernel to IPython.parallel +Transitioning from IPython.kernel to ipython_parallel ===================================================== @@ -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() @@ -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) diff --git a/docs/source/parallel/parallel_winhpc.rst b/docs/source/parallel/parallel_winhpc.rst index 346b6f16b..45b9800bf 100644 --- a/docs/source/parallel/parallel_winhpc.rst +++ b/docs/source/parallel/parallel_winhpc.rst @@ -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') diff --git a/examples/Parallel Computing/Data Publication API.ipynb b/examples/Parallel Computing/Data Publication API.ipynb index f6077a5cd..2f2fed370 100644 --- a/examples/Parallel Computing/Data Publication API.ipynb +++ b/examples/Parallel Computing/Data Publication API.ipynb @@ -47,7 +47,7 @@ }, "outputs": [], "source": [ - "from IPython.parallel import Client" + "from ipython_parallel import Client" ] }, { diff --git a/examples/Parallel Computing/Monitoring an MPI Simulation - 1.ipynb b/examples/Parallel Computing/Monitoring an MPI Simulation - 1.ipynb index 2bfb19068..a8d064b0f 100644 --- a/examples/Parallel Computing/Monitoring an MPI Simulation - 1.ipynb +++ b/examples/Parallel Computing/Monitoring an MPI Simulation - 1.ipynb @@ -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", @@ -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" ] }, diff --git a/examples/Parallel Computing/Monitoring an MPI Simulation - 2.ipynb b/examples/Parallel Computing/Monitoring an MPI Simulation - 2.ipynb index 7f82c42e4..3a7a3f923 100644 --- a/examples/Parallel Computing/Monitoring an MPI Simulation - 2.ipynb +++ b/examples/Parallel Computing/Monitoring an MPI Simulation - 2.ipynb @@ -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" @@ -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", diff --git a/examples/Parallel Computing/Monte Carlo Options.ipynb b/examples/Parallel Computing/Monte Carlo Options.ipynb index 9c7af67a5..206c5ea28 100644 --- a/examples/Parallel Computing/Monte Carlo Options.ipynb +++ b/examples/Parallel Computing/Monte Carlo Options.ipynb @@ -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." ] }, { @@ -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" ] }, diff --git a/examples/Parallel Computing/Parallel Decorator and map.ipynb b/examples/Parallel Computing/Parallel Decorator and map.ipynb index 6118bdbd0..1ba5d569a 100644 --- a/examples/Parallel Computing/Parallel Decorator and map.ipynb +++ b/examples/Parallel Computing/Parallel Decorator and map.ipynb @@ -16,7 +16,7 @@ "outputs": [], "source": [ "from __future__ import print_function\n", - "from IPython.parallel import Client" + "from ipython_parallel import Client" ] }, { diff --git a/examples/Parallel Computing/Parallel Magics.ipynb b/examples/Parallel Computing/Parallel Magics.ipynb index 60596e2b1..54d7ebb51 100644 --- a/examples/Parallel Computing/Parallel Magics.ipynb +++ b/examples/Parallel Computing/Parallel Magics.ipynb @@ -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" diff --git a/examples/Parallel Computing/Using Dill.ipynb b/examples/Parallel Computing/Using Dill.ipynb index a01e0d741..8663bb08b 100644 --- a/examples/Parallel Computing/Using Dill.ipynb +++ b/examples/Parallel Computing/Using Dill.ipynb @@ -11,7 +11,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "IPython.parallel doesn't do much in the way of serialization.\n", + "ipython_parallel doesn't do much in the way of serialization.\n", "It has custom zero-copy handling of numpy arrays,\n", "but other than that, it doesn't do anything other than the bare minimum to make basic interactively defined functions and classes sendable.\n", "\n", @@ -172,7 +172,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "## Now use this in IPython.parallel" + "## Now use this in ipython_parallel" ] }, { @@ -190,7 +190,7 @@ }, "outputs": [], "source": [ - "from IPython import parallel\n", + "import ipython_parallel as parallel\n", "rc = parallel.Client()\n", "view = rc.load_balanced_view()" ] @@ -311,7 +311,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "Yay! Now we can use dill to allow IPython.parallel to send anything.\n", + "Yay! Now we can use dill to allow ipython_parallel to send anything.\n", "\n", "And that's it! We can send closures and other previously non-pickleables to our engines.\n", "\n", @@ -462,7 +462,7 @@ ], "source": [ "%%file testdill.py\n", - "from IPython.parallel import interactive\n", + "from ipython_parallel import interactive\n", "\n", "@interactive\n", "class C(object):\n", diff --git a/examples/Parallel Computing/Using MPI with IPython Parallel.ipynb b/examples/Parallel Computing/Using MPI with IPython Parallel.ipynb index 2188831c9..451f9e8fe 100644 --- a/examples/Parallel Computing/Using MPI with IPython Parallel.ipynb +++ b/examples/Parallel Computing/Using MPI with IPython Parallel.ipynb @@ -38,7 +38,7 @@ }, "outputs": [], "source": [ - "from IPython.parallel import Client\n", + "from ipython_parallel import Client\n", "c = Client()\n", "view = c[:]" ] diff --git a/examples/Parallel Computing/customresults.py b/examples/Parallel Computing/customresults.py index 8fb34821f..131044e66 100644 --- a/examples/Parallel Computing/customresults.py +++ b/examples/Parallel Computing/customresults.py @@ -12,7 +12,7 @@ import time import random -from IPython import parallel +import ipython_parallel as parallel # create client & views rc = parallel.Client() diff --git a/examples/Parallel Computing/daVinci Word Count/pwordfreq.py b/examples/Parallel Computing/daVinci Word Count/pwordfreq.py index 833b545a8..0e097a342 100644 --- a/examples/Parallel Computing/daVinci Word Count/pwordfreq.py +++ b/examples/Parallel Computing/daVinci Word Count/pwordfreq.py @@ -14,7 +14,7 @@ from wordfreq import print_wordfreq, wordfreq -from IPython.parallel import Client, Reference +from ipython_parallel import Client, Reference try: #python2 from urllib import urlretrieve diff --git a/examples/Parallel Computing/dagdeps.py b/examples/Parallel Computing/dagdeps.py index bdd1d5e02..0421d2aab 100644 --- a/examples/Parallel Computing/dagdeps.py +++ b/examples/Parallel Computing/dagdeps.py @@ -8,7 +8,7 @@ """ import networkx as nx from random import randint, random -from IPython import parallel +import ipython_parallel as parallel def randomwait(): import time diff --git a/examples/Parallel Computing/dependencies.py b/examples/Parallel Computing/dependencies.py index fdb2bd284..628107a79 100644 --- a/examples/Parallel Computing/dependencies.py +++ b/examples/Parallel Computing/dependencies.py @@ -1,4 +1,4 @@ -from IPython.parallel import * +from ipython_parallel import * client = Client() diff --git a/examples/Parallel Computing/fetchparse.py b/examples/Parallel Computing/fetchparse.py index f88890f53..387c2ce29 100644 --- a/examples/Parallel Computing/fetchparse.py +++ b/examples/Parallel Computing/fetchparse.py @@ -13,7 +13,7 @@ from __future__ import print_function import sys -from IPython.parallel import Client, error +from ipython_parallel import Client, error import time import BeautifulSoup # this isn't necessary, but it helps throw the dependency error earlier diff --git a/examples/Parallel Computing/interengine/bintree.py b/examples/Parallel Computing/interengine/bintree.py index 66e1236a5..e86f4ee1c 100644 --- a/examples/Parallel Computing/interengine/bintree.py +++ b/examples/Parallel Computing/interengine/bintree.py @@ -15,7 +15,7 @@ import zmq -from IPython.parallel.util import disambiguate_url +from ipython_parallel.util import disambiguate_url #---------------------------------------------------------------------------- diff --git a/examples/Parallel Computing/interengine/bintree_script.py b/examples/Parallel Computing/interengine/bintree_script.py index 45dfce4f3..a096b0c5d 100755 --- a/examples/Parallel Computing/interengine/bintree_script.py +++ b/examples/Parallel Computing/interengine/bintree_script.py @@ -18,7 +18,7 @@ """ from __future__ import print_function -from IPython.parallel import Client, Reference +from ipython_parallel import Client, Reference # connect client and create views diff --git a/examples/Parallel Computing/interengine/communicator.py b/examples/Parallel Computing/interengine/communicator.py index cf172194b..d2fb6c9bd 100644 --- a/examples/Parallel Computing/interengine/communicator.py +++ b/examples/Parallel Computing/interengine/communicator.py @@ -3,7 +3,7 @@ import uuid import zmq -from IPython.parallel.util import disambiguate_url +from ipython_parallel.util import disambiguate_url class EngineCommunicator(object): diff --git a/examples/Parallel Computing/interengine/interengine.py b/examples/Parallel Computing/interengine/interengine.py index 865c80230..95d227a1c 100644 --- a/examples/Parallel Computing/interengine/interengine.py +++ b/examples/Parallel Computing/interengine/interengine.py @@ -1,6 +1,6 @@ import sys -from IPython.parallel import Client +from ipython_parallel import Client rc = Client() diff --git a/examples/Parallel Computing/itermapresult.py b/examples/Parallel Computing/itermapresult.py index d31a7aa7f..0e470ddb8 100644 --- a/examples/Parallel Computing/itermapresult.py +++ b/examples/Parallel Computing/itermapresult.py @@ -21,7 +21,7 @@ import time -from IPython import parallel +import ipython_parallel as parallel # create client & view rc = parallel.Client() diff --git a/examples/Parallel Computing/nwmerge.py b/examples/Parallel Computing/nwmerge.py index 699d9c01b..e3d58968f 100644 --- a/examples/Parallel Computing/nwmerge.py +++ b/examples/Parallel Computing/nwmerge.py @@ -5,7 +5,7 @@ from __future__ import print_function import heapq -from IPython.parallel.error import RemoteError +from ipython_parallel.error import RemoteError def mergesort(list_of_lists, key=None): """ Perform an N-way merge operation on sorted lists. @@ -94,7 +94,7 @@ def remote_iterator(view,name): # Main, interactive testing if __name__ == '__main__': - from IPython.parallel import Client, Reference + from ipython_parallel import Client, Reference rc = Client() view = rc[:] print('Engine IDs:', rc.ids) diff --git a/examples/Parallel Computing/phistogram.py b/examples/Parallel Computing/phistogram.py index 4393e749d..d8978d78d 100644 --- a/examples/Parallel Computing/phistogram.py +++ b/examples/Parallel Computing/phistogram.py @@ -1,6 +1,6 @@ """Parallel histogram function""" import numpy -from IPython.parallel import Reference +from ipython_parallel import Reference def phistogram(view, a, bins=10, rng=None, normed=False): """Compute the histogram of a remote array a. diff --git a/examples/Parallel Computing/pi/parallelpi.py b/examples/Parallel Computing/pi/parallelpi.py index b85e2cb55..c334a7b29 100644 --- a/examples/Parallel Computing/pi/parallelpi.py +++ b/examples/Parallel Computing/pi/parallelpi.py @@ -17,7 +17,7 @@ """ from __future__ import print_function -from IPython.parallel import Client +from ipython_parallel import Client from matplotlib import pyplot as plt import numpy as np from pidigits import * diff --git a/examples/Parallel Computing/rmt/rmt.ipy b/examples/Parallel Computing/rmt/rmt.ipy index 1f4c5fec7..b3dee4d99 100644 --- a/examples/Parallel Computing/rmt/rmt.ipy +++ b/examples/Parallel Computing/rmt/rmt.ipy @@ -14,7 +14,7 @@ from rmtkernel import ensemble_diffs, normalize_diffs, GOE import numpy as np -from IPython.parallel import Client +from ipython_parallel import Client # diff --git a/examples/Parallel Computing/rmt/rmt.ipynb b/examples/Parallel Computing/rmt/rmt.ipynb index abcd453ec..682cd9516 100644 --- a/examples/Parallel Computing/rmt/rmt.ipynb +++ b/examples/Parallel Computing/rmt/rmt.ipynb @@ -26,7 +26,7 @@ "source": [ "from rmtkernel import ensemble_diffs, normalize_diffs, GOE\n", "import numpy as np\n", - "from IPython.parallel import Client" + "from ipython_parallel import Client" ] }, { diff --git a/examples/Parallel Computing/task_profiler.py b/examples/Parallel Computing/task_profiler.py index bef8351fe..78aff639a 100644 --- a/examples/Parallel Computing/task_profiler.py +++ b/examples/Parallel Computing/task_profiler.py @@ -19,7 +19,7 @@ from optparse import OptionParser from IPython.utils.timing import time -from IPython.parallel import Client +from ipython_parallel import Client def main(): parser = OptionParser() diff --git a/examples/Parallel Computing/throughput.py b/examples/Parallel Computing/throughput.py index 8c3dd6897..d43eab46e 100644 --- a/examples/Parallel Computing/throughput.py +++ b/examples/Parallel Computing/throughput.py @@ -2,7 +2,7 @@ import time import numpy as np -from IPython import parallel +import ipython_parallel as parallel nlist = map(int, np.logspace(2,9,16,base=2)) nlist2 = map(int, np.logspace(2,8,15,base=2)) diff --git a/examples/Parallel Computing/wave2D/communicator.py b/examples/Parallel Computing/wave2D/communicator.py index 4abb2eb2a..a99cb9552 100644 --- a/examples/Parallel Computing/wave2D/communicator.py +++ b/examples/Parallel Computing/wave2D/communicator.py @@ -5,7 +5,7 @@ import zmq -from IPython.parallel.util import disambiguate_url +from ipython_parallel.util import disambiguate_url class EngineCommunicator(object): """An object that connects Engines to each other. diff --git a/examples/Parallel Computing/wave2D/parallelwave-mpi.py b/examples/Parallel Computing/wave2D/parallelwave-mpi.py index 18f805a28..824665b80 100755 --- a/examples/Parallel Computing/wave2D/parallelwave-mpi.py +++ b/examples/Parallel Computing/wave2D/parallelwave-mpi.py @@ -28,7 +28,7 @@ from numpy import exp, zeros, newaxis, sqrt from IPython.external import argparse -from IPython.parallel import Client, Reference +from ipython_parallel import Client, Reference def setup_partitioner(index, num_procs, gnum_cells, parts): """create a partitioner in the engine namespace""" diff --git a/examples/Parallel Computing/wave2D/parallelwave.py b/examples/Parallel Computing/wave2D/parallelwave.py index 966ea7336..70132c661 100755 --- a/examples/Parallel Computing/wave2D/parallelwave.py +++ b/examples/Parallel Computing/wave2D/parallelwave.py @@ -28,7 +28,7 @@ from numpy import exp, zeros, newaxis, sqrt from IPython.external import argparse -from IPython.parallel import Client, Reference +from ipython_parallel import Client, Reference def setup_partitioner(comm, addrs, index, num_procs, gnum_cells, parts): """create a partitioner in the engine namespace""" diff --git a/ipython_parallel/client/view.py b/ipython_parallel/client/view.py index fdb1a721b..340e5718e 100644 --- a/ipython_parallel/client/view.py +++ b/ipython_parallel/client/view.py @@ -213,7 +213,7 @@ def apply(self, f, *args, **kwargs): This method sets all apply flags via this View's attributes. - Returns :class:`~IPython.parallel.client.asyncresult.AsyncResult` + Returns :class:`~ipython_parallel.client.asyncresult.AsyncResult` instance if ``self.block`` is False, otherwise the return value of ``f(*args, **kwargs)``. """ @@ -222,7 +222,7 @@ def apply(self, f, *args, **kwargs): def apply_async(self, f, *args, **kwargs): """calls ``f(*args, **kwargs)`` on remote engines in a nonblocking manner. - Returns :class:`~IPython.parallel.client.asyncresult.AsyncResult` instance. + Returns :class:`~ipython_parallel.client.asyncresult.AsyncResult` instance. """ return self._really_apply(f, args, kwargs, block=False) @@ -305,7 +305,7 @@ def shutdown(self, targets=None, restart=False, hub=False, block=None): def get_result(self, indices_or_msg_ids=None, block=None, owner=True): """return one or more results, specified by history index or msg_id. - See :meth:`IPython.parallel.client.client.Client.get_result` for details. + See :meth:`ipython_parallel.client.client.Client.get_result` for details. """ if indices_or_msg_ids is None: @@ -829,7 +829,7 @@ def activate(self, suffix=''): on the even engines. """ - from IPython.parallel.client.magics import ParallelMagics + from ipython_parallel.client.magics import ParallelMagics try: # This is injected into __builtins__. diff --git a/ipython_parallel/tests/test_client.py b/ipython_parallel/tests/test_client.py index 3dfcc6104..8e6c33e83 100644 --- a/ipython_parallel/tests/test_client.py +++ b/ipython_parallel/tests/test_client.py @@ -10,7 +10,7 @@ import zmq -from IPython import parallel +import ipython_parallel as parallel from ipython_parallel.client import client as clientmod from ipython_parallel import error from ipython_parallel import AsyncResult, AsyncHubResult diff --git a/ipython_parallel/tests/test_lbview.py b/ipython_parallel/tests/test_lbview.py index 5608994f4..2b087ef8f 100644 --- a/ipython_parallel/tests/test_lbview.py +++ b/ipython_parallel/tests/test_lbview.py @@ -23,7 +23,7 @@ from nose import SkipTest from nose.plugins.attrib import attr -from IPython import parallel as pmod +import ipython_parallel as pmod from ipython_parallel import error from ipython_parallel.tests import add_engines diff --git a/ipython_parallel/tests/test_magics.py b/ipython_parallel/tests/test_magics.py index c7fba9a48..ec6781fd4 100644 --- a/ipython_parallel/tests/test_magics.py +++ b/ipython_parallel/tests/test_magics.py @@ -23,7 +23,7 @@ from IPython.testing import decorators as dec from IPython.utils.io import capture_output -from IPython import parallel as pmod +import ipython_parallel as pmod from ipython_parallel import AsyncResult from ipython_parallel.tests import add_engines diff --git a/ipython_parallel/tests/test_view.py b/ipython_parallel/tests/test_view.py index 09bbf2ec9..df78e89ff 100644 --- a/ipython_parallel/tests/test_view.py +++ b/ipython_parallel/tests/test_view.py @@ -18,7 +18,7 @@ from IPython.utils.io import capture_output from ipython_genutils.py3compat import unicode_type -from IPython import parallel as pmod +import ipython_parallel as pmod from ipython_parallel import error from ipython_parallel import AsyncResult, AsyncHubResult, AsyncMapResult from ipython_parallel.util import interactive diff --git a/scripts/ipcluster b/scripts/ipcluster index ee055594c..da28d6115 100755 --- a/scripts/ipcluster +++ b/scripts/ipcluster @@ -1,5 +1,5 @@ #!/usr/bin/env python -from IPython.parallel.apps.ipclusterapp import launch_new_instance +from ipython_parallel.apps.ipclusterapp import launch_new_instance if __name__ == '__main__': launch_new_instance() diff --git a/scripts/ipcontroller b/scripts/ipcontroller index 4701d2598..144ea2a37 100755 --- a/scripts/ipcontroller +++ b/scripts/ipcontroller @@ -1,5 +1,5 @@ #!/usr/bin/env python -from IPython.parallel.apps.ipcontrollerapp import launch_new_instance +from ipython_parallel.apps.ipcontrollerapp import launch_new_instance if __name__ == '__main__': launch_new_instance() diff --git a/scripts/ipengine b/scripts/ipengine index c013b538d..80cf49919 100755 --- a/scripts/ipengine +++ b/scripts/ipengine @@ -1,5 +1,5 @@ #!/usr/bin/env python -from IPython.parallel.apps.ipengineapp import launch_new_instance +from ipython_parallel.apps.ipengineapp import launch_new_instance if __name__ == '__main__': launch_new_instance()