There are the following two notions of "Gauss-Manin connection":


1. The complex-analytic one: let $f:X\to S$ be a smooth family of complex manifolds. Then we obtain a local system $R^nf\_{\ast}\mathbb{C}$ of complex vector spaces on $S$, defining a holomorphic vector bundle $\mathcal{V}=R^nf\_{\ast}\mathbb{C}\otimes\mathcal{O}\_S$ on $S$ with an integrable connection $\nabla :\mathcal{V}\to\mathcal{V}\otimes\Omega\_S^1$. Now the vector bundle $\mathcal{V}$ can be identified with the relative de Rham cohomology $\mathcal{H}\_{dR}^n(X/S)$ of the family, so we get a connection on the latter.
2. The algebraic one: let $f:X\to S$ be a smooth morphism of smooth schemes over a field $k$. Now Katz and Oda in ["On the differentiation of De Rham cohomology classes with respect to parameters"](https://projecteuclid.org/journals/kyoto-journal-of-mathematics/volume-8/issue-2/On-the-differentiation-of-De-Rham-cohomology-classes-with-respect/10.1215/kjm/1250524135.full) (J. Math. Kyoto Univ. 8 (1968), pp. 199-213) construct an integrable connection on $\mathcal{H}\_{dR}^n(X/S)$ as some boundary map in a certain spectral sequence.


It is implicit in the literature that these two constructions are compatible, i.e. for a smooth family of smooth varieties over the complex numbers, the connection described in 1. is just the analytification of the one in 2. This sounds pretty reasonable as well. But thinking a bit about it, I was unable to come up with an argument, so could perhaps someone give me a hint where to find this or how to do it?



analytic vs. algebraic Gauss-Manin connection
The two constructions are compatible. 


Your first definition of the Gauss-Manin connexion is $ DR^{-1} (R f\_\* \mathbb{C}\_X ) $. Here $DR : D^b\_{hr}(\mathcal{D}\_X) \to D^b\_c( \mathbb{C}\_X )$ and $DR(\mathcal{M}) = \omega\_X \otimes^L\_{D\_X} \mathcal{M}$ is the analytic de Rham complex. This is an equivalence by the Riemann-Hilbert correspondance. It sends an $\mathscr{O}$-coherent $\mathcal{D}$-module (i.e. a vector bundle with an integrable connexion) to a local system (i.e. a locally constant sheaf). The inverse functor sends a locally constant $V$ to the vector bundle $\mathscr O\_X \otimes\_{\mathbb{C}} V$ together with the only connexion so that $V$ is the local system of horizontal sections in $(\mathscr O\_X \otimes\_{\mathbb{C}} V,\nabla)$. 


Your second definition is a special case of the direct image $\mathcal{H}^n(f\_+\mathscr O\_X)$ in the sense of D-modules for $f$ smooth. 
The (algebraic or analytic) de Rham complex on $X$ is filtered by 
$$
 L^r\Omega\_X^\bullet = f^\*\Omega\_Y^r \otimes \Omega\_X^{\bullet-r}
$$
This induces a spectral sequence 
$$
 R^pf\_\*(Gr\_L^q \Omega\_X^\bullet) \Rightarrow R^{p+q}f\_\*(\Omega\_X^\bullet) 
$$
But $Gr\_L^q \Omega\_X^\bullet = \Omega^q\_S \otimes \Omega\_{X/S}^{\bullet-q}$ and the Gauss-Manin connexion can be interpreted as the differential 
$$
 R^nf\_\*\Omega\_{X/S} \to \Omega^1\_S \otimes R^{n}f\_\*\Omega\_{X/S} 
$$
in the spectral sequence. Now the analyfication functor is compatible with inverse and direct images of $\mathcal{O}$-modules and it sends $\Omega^i\_X$ to $\Omega^i\_{X^{an}}$ so it sends one spectral sequence to the other. This shows that the analytic and algebraic Gauss-Manin connexions are compatible. 


It remains to prove is that $DR$ is compatible with direct images 
$$
 DR f\_+ \mathcal{M} \overset{\sim}{\to} Rf\_\* DR \mathcal{M}
$$
(for $f$ a smooth morphism of complex analytic varieties and $\mathcal{M} =\mathscr O\_X$ a regular connexion). 


For $f:X\to S$ an open immersion this is a theorem of Deligne (cf. Borel IV.6.1) and it is actually equivalent to regularity (by a theorem of Mebkhout I think). 


For $f:X\to S$ proper this is done in (Borel VIII.15): analyfication induces the natural transformation $DR f\_+ \to Rf\_\* DR $ and it is an isomorphism because of the projection formula. In the case $\mathcal{M} =\mathscr O\_X$ you can make this a little bit more concrete. It is enough to prove that the natural transformation is an isomorphism on the fibers. But by proper base change, this means you can suppose $S$ is a point so this is equivalent to $H^n\_{dR}(X^{an}) \to H^{n}(X^{an};\mathbb{C})$ being an isomorphism which is the Poincaré Lemma. 


