Added get_plotview function

If the plotview global variable is imported at the start, it doesn’t
seem to get updated later on, so this returns the latest version. Also,
need to update plotview in the IPython shell.