I am currently in the writing of an online LaTeX tutorial and I was wondering if it was possible to have something similar to learnpython.org but for compiling and editing on the fly simple LaTeX documents on a page? Because I would love to embed this on my website so that readers could interact with LaTeX without the need to install something or having to leave the page.
An example would be to compile this in browser in the form of an image or PDF:
\documentclass{book}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[francais]{babel}
\title{L'histoire de bob}
\author{John}
\date{June 6 2078}
\begin{document}
\maketitle
\part{Introduction}
Some stuff
\end{document}
Is it possible? If it isn't, are there any possible alternatives?