diff --git a/examples/Parallel Computing/Index.ipynb b/examples/Parallel Computing/Index.ipynb index bed5fe9..d448766 100644 --- a/examples/Parallel Computing/Index.ipynb +++ b/examples/Parallel Computing/Index.ipynb @@ -1,7 +1,7 @@ { "metadata": { "name": "", - "signature": "sha256:4b037603ce02b01191708017c52583e8e80f885f716a9e625a711742d96b49c9" + "signature": "sha256:812b50625c522f2be11a8c19ec003484bb7c67cd1cf388b336a49d5ee187aaff" }, "nbformat": 3, "nbformat_minor": 0, @@ -69,8 +69,281 @@ "* [Parallel Decorator and map](Parallel Decorator and map.ipynb)\n", "* [Parallel Magics](Parallel Magics.ipynb)\n", "* [Using Dill](Using Dill.ipynb)\n", - "* [Using MPI with IPython Parallel](Using MPI with IPython Parallel.ipynb)" + "* [Using MPI with IPython Parallel](Using MPI with IPython Parallel.ipynb)\n", + "* [Monte Carlo Options](Monte Carlo Options.ipynb)" ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Non-notebook examples" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "This directory also contains a number of examples that are regular Python (`.py`) files." + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from IPython.display import FileLink, display" + ], + "language": "python", + "metadata": {}, + "outputs": [], + "prompt_number": 7 + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Here are single file Python examples:" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "files =!ls *.py\n", + "for f in files:\n", + " display(FileLink(f))" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "html": [ + "customresults.py
" + ], + "metadata": {}, + "output_type": "display_data", + "text": [ + "/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Parallel Computing/customresults.py" + ] + }, + { + "html": [ + "dagdeps.py
" + ], + "metadata": {}, + "output_type": "display_data", + "text": [ + "/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Parallel Computing/dagdeps.py" + ] + }, + { + "html": [ + "dependencies.py
" + ], + "metadata": {}, + "output_type": "display_data", + "text": [ + "/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Parallel Computing/dependencies.py" + ] + }, + { + "html": [ + "fetchparse.py
" + ], + "metadata": {}, + "output_type": "display_data", + "text": [ + "/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Parallel Computing/fetchparse.py" + ] + }, + { + "html": [ + "iopubwatcher.py
" + ], + "metadata": {}, + "output_type": "display_data", + "text": [ + "/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Parallel Computing/iopubwatcher.py" + ] + }, + { + "html": [ + "itermapresult.py
" + ], + "metadata": {}, + "output_type": "display_data", + "text": [ + "/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Parallel Computing/itermapresult.py" + ] + }, + { + "html": [ + "nwmerge.py
" + ], + "metadata": {}, + "output_type": "display_data", + "text": [ + "/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Parallel Computing/nwmerge.py" + ] + }, + { + "html": [ + "phistogram.py
" + ], + "metadata": {}, + "output_type": "display_data", + "text": [ + "/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Parallel Computing/phistogram.py" + ] + }, + { + "html": [ + "task_profiler.py
" + ], + "metadata": {}, + "output_type": "display_data", + "text": [ + "/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Parallel Computing/task_profiler.py" + ] + }, + { + "html": [ + "throughput.py
" + ], + "metadata": {}, + "output_type": "display_data", + "text": [ + "/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Parallel Computing/throughput.py" + ] + } + ], + "prompt_number": 9 + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "More substantial examples can be found in subdirectories:" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "files =!ls -d */\n", + "for f in files:\n", + " display(FileLinks(f))" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "html": [ + "daVinci Word Count/
\n", + "  pwordfreq.py
\n", + "  wordfreq.py
" + ], + "metadata": {}, + "output_type": "display_data", + "text": [ + "daVinci Word Count/\n", + " pwordfreq.py\n", + " wordfreq.py" + ] + }, + { + "html": [ + "interengine/
\n", + "  bintree.py
\n", + "  bintree_script.py
\n", + "  communicator.py
\n", + "  interengine.py
" + ], + "metadata": {}, + "output_type": "display_data", + "text": [ + "interengine/\n", + " bintree.py\n", + " bintree_script.py\n", + " communicator.py\n", + " interengine.py" + ] + }, + { + "html": [], + "metadata": {}, + "output_type": "display_data", + "text": [] + }, + { + "html": [ + "pi/
\n", + "  parallelpi.py
\n", + "  pidigits.py
" + ], + "metadata": {}, + "output_type": "display_data", + "text": [ + "pi/\n", + " parallelpi.py\n", + " pidigits.py" + ] + }, + { + "html": [ + "rmt/
\n", + "  rmt.ipy
\n", + "  rmt.ipynb
\n", + "  rmtkernel.py
" + ], + "metadata": {}, + "output_type": "display_data", + "text": [ + "rmt/\n", + " rmt.ipy\n", + " rmt.ipynb\n", + " rmtkernel.py" + ] + }, + { + "html": [ + "wave2D/
\n", + "  communicator.py
\n", + "  parallelwave-mpi.py
\n", + "  parallelwave.py
\n", + "  RectPartitioner.py
\n", + "  wavesolver.py
" + ], + "metadata": {}, + "output_type": "display_data", + "text": [ + "wave2D/\n", + " communicator.py\n", + " parallelwave-mpi.py\n", + " parallelwave.py\n", + " RectPartitioner.py\n", + " wavesolver.py" + ] + }, + { + "html": [ + "workflow/
\n", + "  client.py
\n", + "  job_wrapper.py
\n", + "  wmanager.py
" + ], + "metadata": {}, + "output_type": "display_data", + "text": [ + "workflow/\n", + " client.py\n", + " job_wrapper.py\n", + " wmanager.py" + ] + } + ], + "prompt_number": 13 } ], "metadata": {} diff --git a/examples/Parallel Computing/options/Parallel MC Options.ipynb b/examples/Parallel Computing/Monte Carlo Options.ipynb similarity index 100% rename from examples/Parallel Computing/options/Parallel MC Options.ipynb rename to examples/Parallel Computing/Monte Carlo Options.ipynb