IPython code for testing the ipnviewer and graphics