# Applying Complex Stone-Weierstrass Theorem for Compact Subsets

The complex Stone-Weierstrauss theorem can be applied to compact spaces. However, say I have an open set $D\subset \mathbb{C}$, and I want to approximate a holomorphic function $f$ on $D$ via polynomials. For every compact subset $K$ of $D$, the Stone-Weierstrauss theorem guarantees that a sequence of polynomials will converge uniformly on $K$ to $f$, since $f$ is continuous.

Then, is it guaranteed that there exists a common sequence of polynomials on $D$ that will converge to $f$ uniformly on compact subsets of $D$?

Thanks!

Write $D$ as a increasing sequence of compacts $K_n$ (how)? For each $n$ take $P_n$ with $|f-P_n|\le 1/n$ in $K_n$.