These instructions are for users who are connecting to hyak from a mac or linux machine. For mac users, you will have to first install X11 XQuartz https://www.xquartz.org/ .
(These instructions may also work for Windows users who have installed MobaXterm.)
For GUI emacs:
ssh -X email@example.com
srun -p build --time=2:00:00 --mem=100G --pty /bin/bash
Now you can run emacs on the hyak compute node and the GUI will show up on your desktop or laptop machine.