Browse code

remove incorrect statement about 'f' being a closure in the example notebook

Bas Nijholt authored on 19/02/2018 11:59:26
Showing 1 changed files
... ...
@@ -641,9 +641,7 @@
641 641
    "source": [
642 642
     "import ipyparallel\n",
643 643
     "\n",
644
-    "client = ipyparallel.Client()\n",
645
-    "# f is a closure, so we have to use cloudpickle -- this is independent of 'adaptive'\n",
646
-    "client[:].use_cloudpickle()\n",
644
+    "client = ipyparallel.Client()  # You will need to start an `ipcluster` to make this work\n",
647 645
     "\n",
648 646
     "learner = adaptive.Learner1D(f, bounds=(-1, 1))\n",
649 647
     "runner = adaptive.Runner(learner, executor=client, goal=lambda l: l.loss() < 0.01)\n",