Qcqs lemma in Ravi Vakil's notes says that :
If $X$ is a quasi compact quasi separated scheme and $s\in \Gamma(X,\mathcal{O}_X)$ then the natural map $\Gamma(X,\mathcal{O}_X)_s\rightarrow \Gamma(X_s,\mathcal{O}_X)$ is an isomorphism.
I was trying to prove this on my own as this looks related to my previous question. This is more or less a trivial statement in case of affine schemes. When $X=\text{Spec}(A)$, $s\in \Gamma(X,\mathcal{O}_X)=\mathcal{O}_X(X)$. We have, $X_s=\{\mathfrak{p}\in X:s_{\mathfrak{p}}\notin \mathfrak{m}_\mathfrak{p}\subseteq \mathcal{O}_{\mathfrak{p}}\}$. Identifying $\mathcal{O}_X(X)$ with $A$ and $\mathcal{O}_{\mathfrak{p}}$ with $A_{\mathfrak{p}}$ we have $s_{\mathfrak{p}}=\frac{s}{1}\in A_{\mathfrak{p}}$. So, $X_s=\{\mathfrak{p}\in X:\frac{s}{1}\notin \mathfrak{p}A_{\mathfrak{p}}\}=\{\mathfrak{p}\in X:s\notin \mathfrak{p}\}=D(s)$. So, $\Gamma(X_s,\mathcal{O}_X)=\Gamma(D(s),\mathcal{O}_X)=A_s$. We thus have isomorphism $\Gamma(X,\mathcal{O}_X)_s\rightarrow \Gamma(X_s,\mathcal{O}_X)$.
Let $X$ be an arbitrary scheme. We have $\Gamma(X,\mathcal{O}_X)\rightarrow \Gamma(X_s,\mathcal{O}_X)$, just the restriction map.
In case of restiction map $\Gamma(X,\mathcal{O}_X)\rightarrow \Gamma(X_s,\mathcal{O}_X)$, we have $s\mapsto s|_{X_s}$. A section $t\in \mathcal{O}(U)$ is invertible iff $t_x\in \mathcal{O}_x$ is invertible for every $x\in U$. By definition, $s_x\in \mathcal{O}_x$ is invertible for every $x\in X_s$ so, $s|_{X_s}$ is invertible. So, $s^n|_{X_s}$ is invertible in $\Gamma(X_s,\mathcal{O}_X)$. Image of every element of $S=\{1,s^n:n\in \mathbb{N}\}$ is invertible in $\Gamma(X_s,\mathcal{O}_X)$.
Let $A$ be a ring, $S$ be a multiplicatively closed subset of $A$ then, we have the notation of localization of $A$ with respect to $S$ which comes with map $\pi:A\rightarrow A_S$ with $a\mapsto \frac{a}{1}$ and with universal property that given any ring $B$ and a ring homomorphism $f:A\rightarrow B$ such that $f(s)$ is a unit in $B$ for every $s\in S$ then there exists a unique map $g:A_S\rightarrow B$ such that $f=g\circ \pi$.
So, we do have a map $\Gamma(X,\mathcal{O}_X)_s\rightarrow \Gamma(X_s,\mathcal{O}_X)$ coming from the map $\Gamma(X,\mathcal{O}_X)\rightarrow \Gamma(X_s,\mathcal{O}_X)$.
I am not able to proceed further. Ravi Vakil has considered some exact sequences but I think it can be done just from the map from restriction. Any hints are welcome.