Hello
I am teaching an undergrad course where I extensively use VPython. Last year I used VPython 6 (Classic) in Python 2.7 with VIDLE and have now upgraded to using VPython 7 with Python 3.6. I want to use the Jupyter notebook to teach the course, since it has many advantages, but I have hit a problem I cant solve.
When running VPython7 from within Jupyter, the graphics window is displayed properly when the program/cell is executed. However, if I try to run the program/cell (containing VPython code) again, the graphics window does not appear. I believe this is because the graphics environment is still running from the last execute (I have seen posts about this). I presume this is so that the user can still interact with the window, change views etc. The only way to stop this completely, to enable a re-run of the code, seems to be to kill the kernel and clear the output. But then, if using multiple cells, all cells would need to be re-run since the kernel has been cleared. This seems to defeat the point of the notebook, and this is very painful way develop some code using VPython.
Is there a way to stop/kill/end the VPython display cleanly, without clearing the kernel? I had thought that VPython7 was designed with Jupyter in mind, so I have probably missed something crucial here.
Thanks
Mike