{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Using IPython Parallel as a joblib backend\n", "\n", "[joblib][] is a tool for running tasks, which includes support for implementing custom parallel backends.\n", "IPython defines one such backend, so you can use IPython parallel with joblib.\n", "\n", "[joblib]: https://joblib.readthedocs.io\n", "\n", "The simplest way to set this up is a single call:" ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "tags": [] }, "outputs": [], "source": [ "import ipyparallel as ipp\n", "\n", "ipp.register_joblib_backend()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This registers the 'ipyparallel' backend with all the defaults." ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Using existing profile dir: '/Users/minrk/.ipython/profile_default'\n", "Using existing profile dir: '/Users/minrk/.ipython/profile_default'\n", "Starting 4 engines with \n" ] }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "be0e2704e2204783ae9435d63d6facff", "version_major": 2, "version_minor": 0 }, "text/plain": [ " 0%| | 0/1 [00:00\n" ] }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "dea6ba0c1c7b419eae13a54f7b6c66fb", "version_major": 2, "version_minor": 0 }, "text/plain": [ " 0%| | 0/4 [00:00