Is a holomorphic family whose fibers are all smooth locally trivial? Let $\pi : X \to B$ be a proper, surjective holomorphic submersion, where both $X$ and $B$ are compact Kahler manifolds. Assume that all the fibers $X_b = \pi^{-1}(b)$ are smooth. Is the family $\pi : X \to B$ then locally trivial?
The answer is "no" when formulated like this: Let $\pi : X \to B$ be the family where $X_b$ is the blowup of $B$ at the point $b$. If the automorphism group of $B$ does not act transitively on $B$ then the resuling family cannot be locally trivial but all of its fibers are smooth.
This blowup example (and its trivial variants: blowup more points, things of positive dimension if you can get the smoothness hypothesis to work, ...) is however the only counterexample I've been able to come up with, so I wonder if the statement could be true if we make some positivity hypotheses on $K_X$? For example, suppose in addition that $K_X$ is nef. Is the family then locally trivial?
 A: Such a map whose fibers are smooth curves would yield a morphism from the base B to the moduli space of curves whose image is a proper smooth subvariety that misses the boundary parametrizing singular curves.  In the other direction, a smooth complete subvariety of the moduli space which misses the boundary should give an example, by restricting the "universal family of curves on moduli" to that subvariety, provided we can finesse the fact that the universal family has problems over the locus of curves with automorphisms, i.e. essentially the singular locus of moduli, (actually the locus of curves with automorphisms may be larger, as in genus 2).
In genus 2 or more there is a Satake compactification of the moduli space of smooth curves having boundary of codimension at least 2 when g ≥ 3; and in genus 4 or more, the locus of curves with automorphisms also has codimension 2 or more.  Thus at least in genus  4 or more, any general one dimensional linear section B of a projective embedding of the Satake compactification of moduli of curves, will give an example.  Probably this can be made to work also in genus 3.  (but not for g=2, because of Dan's observant comment below.)
Remark: The error in my original answer stemmed from my false claim that the boundary of the Satake compactification of M(g) had codimension at least 2, when g ≥ 2.  This false statement appears in a few places in the literature (e.g. my original answer), but I should have known better.  Indeed the boundary of the Satake compactification of A(g) seems to have codimension g, but the locus of Jacobians is not closed yet in A(g).  The result of Mayer and Mumford was that the closure of the locus of Jacobians in A(g) adds in precisely the products of lower dimensional Jacobians.  Thus when g=2, even before adding in the boundary of A(2), the closure of the 3 dimensional M(2) already includes the 2 dimensional locus of products of elliptic curves.  A nice reference is Mumford's Michigan lectures on curves and their Jacobians.
Dan has explained codimensions of the boundary components in A(g) from the Satake compactification process more generally in his remarks below, and also how to resolve the singularities offered by the locus of curves with automorphisms.  Thanks!
A: By Grauert-Fischer Theorem, a smooth family of compact complex manifold is locally trivial if and only if all the fibers are analytically isomorphic.
However, there exist smooth families $\pi \colon X \to B$ such that the fibres are not isomorphic, and so they are not locally trivial.
The easiest examples occur already for $\dim X =2$ and $\dim B =1$: they are the so-called Kodaira fibrations. In such fibrations, all the fibres are smooth curves but their complex structure varies. 
If $\pi \colon X \to  B$ is a Kodaira fibration, then $B$ is a curve of genus at least $2$. Furthermore, $X$ is a minimal surface of general type, hence it is algebraic and $K_X$ is ample. 
So, even imposing a positivity condition on $K_X$, the answer to your question is no.
A reference is [Barth-Hulek-Peters-Van de Ven, Compact Complex Surfaces], Chapter V.
For the Grauert-Fischer theorem see the same book, Chapter I.
