Fix plotting and metadata in notebook examples

This brings us up to date with modern IPython:

- use `%matplotlib inline` magic instead of command line arg
- include `plt` namespace for plotting functions
- switch metadata key to `example_name` to avoid conflict with deprecated `name`
- include metadata signature saved by IPython