Let $X$ be a non-compact holomorphic manifold of dimension $1$. Is there a compact Riemann surface $\bar{X}$ suc that $X$ is biholomorphic to an open subset of $\bar{X}$ ?
Edit: To rule out the case where $X$ has infinite genus, perhaps one could add the hypothesis that the topological space $X^{\mathrm{end}}$ (is it a topological surface?), obtained by adding the ends of $X$, has finitely generated $\pi_1$ (or $H_1$ ). Would the new question make sense and/or be of any interest?