non-ipython notebook code