This little cell draws a grid diagram for a link in a lens space, and for its lift in the three sphere.

Remember that p and q need to be coprime, and that the number of $\mathbb{X}$ and $\mathbb{O}$ markings has to be equal to the grid number. Have fun!

The script should automatically start in a couple seconds with a sample session. Modify as you want the input data, then press the Update button.