environment/share/doc/ipython/examples/parallel/pi/pidigits.py
def fetch_pi_file(filename):
    """This will download a segment of pi from super-computing.org
    if the file is not already present.
    """
    import os, urllib
    ftpdir="ftp://pi.super-computing.org/.2/pi200m/"
    if os.path.exists(filename):
        # we already have it
        return
    else:
        # download it
        urllib.urlretrieve(ftpdir+filename,filename)
def fetch_pi_file(filename):
    import os, urllib
    ftpdir="ftp://pi.super-computing.org/.2/pi200m/"
    if os.path.exists(filename):
        # we already have it
        return
    else:
        # download it
        urllib.urlretrieve(ftpdir+filename,filename)
def fetch_pi_file ( filename ) : import os , urllib ftpdir = "ftp://pi.super-computing.org/.2/pi200m/" if os . path . exists ( filename ) : # we already have it return else : # download it urllib . urlretrieve ( ftpdir + filename , filename )
This will download a segment of pi from super-computing.org
    if the file is not already present.
This will download a segment of pi from super - computing . org if the file is not already present .