code: def txt_file_to_digits(filename, the_type=str):
      """
      Yield the digits of pi read from a .txt file.
      """
      with open(filename) as f:
          for line in f.readlines():
              for c in line:
                  if c != "\n" and c != " ":
                      yield the_type(c)
  
file_path: ipyparallel/examples/pi/pidigits.py
imports: import os
  from urllib.request import urlretrieve
  import numpy
  from matplotlib import pyplot
label_desc: Use image node_id 6 for calling a global function with example usage: txt_file_to_digits(filename, the_type) without return types