--- tags: VPython, VPhysics image: https://i.imgur.com/sxu65K7.png --- # VPhysics on binder This [repo](https://github.com/ttt50966/vpython-jupyter_VPhysics) is for testing your VPython code without setting any environment. Here shows some examples how we use VPython to simulate the real physical problems! ## VPhysics assignment - [VP01 Free Fall](https://drive.google.com/file/d/1ftELGgNyS1S6rysMJzvUQf7CWovdqYsy/view) [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/ttt50966/vpython-jupyter_VPhysics/master?filepath=VPhysics/VP1_Free_Fall.ipynb) [Video](https://www.youtube.com/playlist?list=PLxowpOHFnGyM_fBj8r3JE9sZL_NlTEMJR) - [VP02 SHM, Collision, Pendulum, and Newton Cradle](https://drive.google.com/file/d/1p2m_fk8RVANylvFx9n9WYGBbzbxtUgah/view) [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/ttt50966/vpython-jupyter_VPhysics/master?filepath=VPhysics/VP2_SHM_Collision_Pendulum_and_Newton%20Cradle.ipynb) [Video](https://www.youtube.com/playlist?list=PLxowpOHFnGyPuYoZ01F3iMFnVSB6tMtCv) ## How to use it 1. Press the ![Binder](https://mybinder.org/badge_logo.svg) button above to launch a binder which will create a Jupyter notebook online 2. After waiting ~1 min, binder will install all the packages we need 3. Then, you get a Jupyter notebook! All the operation is the same with loacal Jupyter notebooks. 4. Please notice that there is a cell in the notebook ```python from IPython.display import clear_output import time #time.sleep(delay time) to delay a time you want clear_output() #clear output in certain cell ``` This is for clearing the scene in certain cell. If you don't clear it and run the another cell, the animation will appear in the same scene which may bother you. So, you can use `clear_output()` to clear it.