  We study analogues of the usual Picard group for smooth analytic or
non-singular algebraic varieties but instead of line bundles we study line
bundles with a connection. We choose an approach which works for both cases.
