.. _tutorial_mandelbrot_osg: Part 5: A More Complex Example: Mandelbrot (OSG VERSION) ******************************************************** Description... why is this different from XSEDE? Hands-On: Mandelbrot with Condor on OSG ======================================= **This examples assumes that you are logged in to an OSG gateway node and that you can submit regular Condor jobs from that node to OSG.** In order for this example to work, we need to install an additional Python module, the Python Image Library (PIL). This is done via pip: .. code-block:: bash pip install PIL Next, we need to download the Mandelbrot fractal generator itself as well as the shell wrapper scrip. It is really just a very simple python script that, if invoked on the command line, outputs a full or part of a Mandelbrot fractal as a PNG image. Download the scripts into your $HOME directory: .. code-block:: bash curl --insecure -Os https://raw.githubusercontent.com/radical-cybertools/radical.saga/devel/examples/tutorial/mandelbrot/mandelbrot.py curl --insecure -Os https://raw.githubusercontent.com/radical-cybertools/radical.saga/devel/examples/tutorial/mandelbrot/mandelbrot.sh You can give mandelbrot.py a test-drive locally by calculating a single-tiled 1024x1024 Mandelbrot fractal: .. code-block:: bash python mandelbrot.py 1024 1024 0 1024 0 1024 frac.gif In your ``$HOME`` directory, open a new file saga_mandelbrot_osg.py with your favorite editor and paste the following content :download:`here <../../../examples/tutorial/mandelbrot/saga_mandelbrot_osg.py>`: .. literalinclude:: ../../../examples/tutorial/mandelbrot/saga_mandelbrot_osg.py