Let $H^2$ be the polydisk given by the set of points $(z,w)$ in $\mathbb C^2$ with by $\Im(z) > 0$ and $\Im(w) > 0$.
Consider the surface $S$ defined by $z^2 + w^2 = -1$ within $H^2$. On this surface $z$ is a good coordinate (although points on the line segment $\ell$ given by $z = i y$ with real $y > 1$ are not part of $S$ since for these points $w$ is no longer in $H$).
Consider now a holomorphic function $f(z)$ on $S$. Does there exist a holomorphic function $\hat f(z,w)$ on $H^2$ such that $f(z) = \hat f(z,w)|_{S}$ ?
My formulation hopefully makes it clear that the function $\hat f(z,w)$ is not necessarily an analytic continuation. Notice further that a constant extension, so defining $\hat f(z,w) := f(z)$, will not generally work; an example would be $f(z) = \sqrt{z - i}$ or any other function with a cut along $\ell$.