old_contents: import sys
  import logging
  
  import matplotlib.pyplot as plt
  import numpy as np
  
  plt.ion()
  
  handler = logging.StreamHandler(sys.stderr)
  fmt = logging.Formatter("%(asctime)-15s [%(name)5s:%(levelname)s] %(message)s")
  handler.setFormatter(fmt)
  logging.getLogger('hxntools').addHandler(handler)
  logging.getLogger('hxnfly').addHandler(handler)
  logging.getLogger('ppmac').addHandler(handler)
  
  logging.getLogger('hxnfly').setLevel(logging.INFO)
  logging.getLogger('hxntools').setLevel(logging.INFO)
  logging.getLogger('ppmac').setLevel(logging.INFO)
  
  import pandas as pd
  
  # Flyscan results are shown using pandas. Maximum rows/columns to use when
  # printing the table:
  pd.options.display.width = 180
  pd.options.display.max_rows = None
  pd.options.display.max_columns = 10
  
new_contents: import sys
  import logging
  
  import matplotlib.pyplot as plt
  import numpy as np
  
  plt.ion()
  
  handler = logging.StreamHandler(sys.stderr)
  fmt = logging.Formatter("%(asctime)-15s [%(name)5s:%(levelname)s] %(message)s")
  handler.setFormatter(fmt)
  handler.setLevel(logging.INFO)
  
  logging.getLogger('hxntools').addHandler(handler)
  logging.getLogger('hxnfly').addHandler(handler)
  logging.getLogger('ppmac').addHandler(handler)
  
  logging.getLogger('hxnfly').setLevel(logging.DEBUG)
  logging.getLogger('hxntools').setLevel(logging.DEBUG)
  logging.getLogger('ppmac').setLevel(logging.INFO)
  
  import pandas as pd
  
  # Flyscan results are shown using pandas. Maximum rows/columns to use when
  # printing the table:
  pd.options.display.width = 180
  pd.options.display.max_rows = None
  pd.options.display.max_columns = 10
  
subject: Tweak logging configuration - record debug info, display info level