diff --git a/docs/source/parallel/parallel_multiengine.rst b/docs/source/parallel/parallel_multiengine.rst index ac84651..9edb8c5 100644 --- a/docs/source/parallel/parallel_multiengine.rst +++ b/docs/source/parallel/parallel_multiengine.rst @@ -522,13 +522,13 @@ be collected and raise a CompositeError, as demonstrated in the next section. In [69]: from IPython.parallel import require - In [70]: @require('re'): + In [70]: @require('re') ....: def findall(pat, x): ....: # re is guaranteed to be available ....: return re.findall(pat, x) # you can also pass modules themselves, that you already have locally: - In [71]: @require(time): + In [71]: @require(time) ....: def wait(t): ....: time.sleep(t) ....: return t diff --git a/docs/source/parallel/parallel_task.rst b/docs/source/parallel/parallel_task.rst index 85ed0f3..c8432b9 100644 --- a/docs/source/parallel/parallel_task.rst +++ b/docs/source/parallel/parallel_task.rst @@ -186,7 +186,7 @@ will be assigned to another engine. If the dependency returns *anything other th ....: def wintask(): ....: do_windows_stuff() -In this case, any time you apply ``mytask``, it will only run on an OSX machine. +In this case, any time you apply ``mactask``, it will only run on an OSX machine. ``@depend`` is just like ``apply``, in that it has a ``@depend(f,*args,**kwargs)`` signature.