diff --git a/docs/examples/parallel/Parallel Magics.ipynb b/docs/examples/parallel/Parallel Magics.ipynb index 2d505b7..9336733 100644 --- a/docs/examples/parallel/Parallel Magics.ipynb +++ b/docs/examples/parallel/Parallel Magics.ipynb @@ -36,7 +36,8 @@ ], "language": "python", "metadata": {}, - "outputs": [] + "outputs": [], + "prompt_number": 2 }, { "cell_type": "markdown", @@ -438,12 +439,35 @@ "outputs": [] }, { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Local Execution" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "As of IPython 0.14, you can instruct `%%px` to also execute the cell locally.\n", + "This is useful for interactive definitions,\n", + "or if you want to load a data source everywhere,\n", + "not just on the engines." + ] + }, + { "cell_type": "code", "collapsed": false, - "input": [], + "input": [ + "%%px --local\n", + "thispid = os.getpid()\n", + "print thispid" + ], "language": "python", "metadata": {}, - "outputs": [] + "outputs": [], + "prompt_number": 5 } ], "metadata": {}