:orphan:



.. _sphx_glr_auto_examples:

.. _general_examples:

Examples
========

General examples
----------------

General-purpose and introductory examples for joblib.



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Randomness is affected by parallel execution differently by the different backends.">

.. only:: html

 .. figure:: /auto_examples/images/thumb/sphx_glr_parallel_random_state_thumb.png
     :alt: Random state within joblib.Parallel

     :ref:`sphx_glr_auto_examples_parallel_random_state.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/parallel_random_state

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example illustrates how to cache intermediate computing results using joblib.Memory within...">

.. only:: html

 .. figure:: /auto_examples/images/thumb/sphx_glr_nested_parallel_memory_thumb.png
     :alt: Checkpoint using joblib.Memory and joblib.Parallel

     :ref:`sphx_glr_auto_examples_nested_parallel_memory.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/nested_parallel_memory

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example illustrates the usage of joblib.Memory with both functions and methods.">

.. only:: html

 .. figure:: /auto_examples/images/thumb/sphx_glr_memory_basic_usage_thumb.png
     :alt: How to use joblib.Memory

     :ref:`sphx_glr_auto_examples_memory_basic_usage.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/memory_basic_usage

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example highlights the options for tempering with joblib serialization process.">

.. only:: html

 .. figure:: /auto_examples/images/thumb/sphx_glr_serialization_and_wrappers_thumb.png
     :alt: Serialization of un-picklable objects

     :ref:`sphx_glr_auto_examples_serialization_and_wrappers.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/serialization_and_wrappers

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example illustrates some features enabled by using a memory map (:class:`numpy.memmap`) wi...">

.. only:: html

 .. figure:: /auto_examples/images/thumb/sphx_glr_parallel_memmap_thumb.png
     :alt: NumPy memmap in joblib.Parallel

     :ref:`sphx_glr_auto_examples_parallel_memmap.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/parallel_memmap

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example compares the compressors available in Joblib. In the example, Zlib, LZMA and LZ4 c...">

.. only:: html

 .. figure:: /auto_examples/images/thumb/sphx_glr_compressors_comparison_thumb.png
     :alt: Improving I/O using compressors

     :ref:`sphx_glr_auto_examples_compressors_comparison.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/compressors_comparison
.. raw:: html

    <div class="sphx-glr-clear"></div>



.. _sphx_glr_auto_examples_parallel:

.. _parallel_examples:

Parallel examples
-----------------

Examples demoing more advanced parallel patterns.



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example shows the simplest usage of the dask `distributed &lt;https://distributed.readthedocs...">

.. only:: html

 .. figure:: /auto_examples/parallel/images/thumb/sphx_glr_distributed_backend_simple_thumb.png
     :alt: Using dask distributed for single-machine parallel computing

     :ref:`sphx_glr_auto_examples_parallel_distributed_backend_simple.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/parallel/distributed_backend_simple
.. raw:: html

    <div class="sphx-glr-clear"></div>



.. only :: html

 .. container:: sphx-glr-footer
    :class: sphx-glr-footer-gallery


  .. container:: sphx-glr-download sphx-glr-download-python

    :download:`Download all examples in Python source code: auto_examples_python.zip <//home/ogrisel/code/joblib/doc/auto_examples/auto_examples_python.zip>`



  .. container:: sphx-glr-download sphx-glr-download-jupyter

    :download:`Download all examples in Jupyter notebooks: auto_examples_jupyter.zip <//home/ogrisel/code/joblib/doc/auto_examples/auto_examples_jupyter.zip>`


.. only:: html

 .. rst-class:: sphx-glr-signature

    `Gallery generated by Sphinx-Gallery <https://sphinx-gallery.github.io>`_
