Using glowscript.org, we can now put vpython programs online. Here’s a first shot of the coil program:
http://www.glowscript.org/#/user/lurbano/folder/Private/program/magnet-coil.py

Some changes to the standard vpython language must be used and there are some limitations, but it seems to work.