Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
| Download
Kernel: Python 2 (SageMath)
In [3]:
Out[3]:
KeyboardInterruptTraceback (most recent call last)
<ipython-input-3-5b09e331edae> in <module>()
31 t = 0
32 while True:
---> 33 rate(200)
34 r21 = s2.pos - s1.pos
35 F21 = -norm(r21)*G*s1.m*s2.m/mag(r21)**2
/projects/d18eeda9-38fb-4d20-9a0a-4afa03a182aa/.local/lib/python2.7/site-packages/vpython/vpython.pyc in __call__(self, maxRate)
132 if (self.rval != maxRate) and (maxRate >= 1.0):
133 self.rval = maxRate
--> 134 super(RateKeeper2, self).__call__(maxRate)
135
136 if sys.version > '3':
/projects/d18eeda9-38fb-4d20-9a0a-4afa03a182aa/.local/lib/python2.7/site-packages/vpython/rate_control.pyc in __call__(self, maxRate)
204 dt = self.lastSleep + self.calls*(self.userTime + self.callTime + self.delay) + \
205 renders*self.renderTime + sleeps*self.interactionPeriod - _clock()
--> 206 _sleep(dt)
207 self.lastSleep = _clock()
208 self.calls = 0
/projects/d18eeda9-38fb-4d20-9a0a-4afa03a182aa/.local/lib/python2.7/site-packages/vpython/rate_control.pyc in _sleep(dt)
47 dtsleep = nticks*_tick
48 t = _clock()
---> 49 time.sleep(dtsleep)
50 t = _clock()-t
51 dt -= t
KeyboardInterrupt:
In [ ]: