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 (Ubuntu Linux)
In [1]:
Out[1]:
MIME type unknown not supported
MIME type unknown not supported
MIME type unknown not supported
MIME type unknown not supported
MIME type unknown not supported
MIME type unknown not supported
MIME type unknown not supported
---------------------------------------------------------------------------
KeyboardInterrupt Traceback (most recent call last)
<ipython-input-1-b51e67e16045> in <module>()
91
92 while True:
---> 93 rate(1/dt)
94 # Calculate accelerations of the Lagrangian coordinates=
95 atheta1 = ((E*C/B)*sin(theta1)-F*sin(theta2))/(D-E*A/B)
/ext/sage/sage-8.1/local/lib/python2.7/site-packages/vpython/vpython.pyc in __call__(self, N)
209 self.rval = N
210 if self.rval < 1: raise ValueError("rate value must be greater than or equal to 1")
--> 211 super(_RateKeeper2, self).__call__(self.rval) ## calls __call__ in rate_control.py
212
213 if sys.version > '3':
/ext/sage/sage-8.1/local/lib/python2.7/site-packages/vpython/rate_control.pyc in __call__(self, maxRate)
205 dt = self.lastSleep + self.calls*(self.userTime + self.callTime + self.delay) + \
206 renders*self.renderTime + sleeps*self.interactionPeriod - _clock()
--> 207 _sleep(dt)
208 self.lastSleep = _clock()
209 self.calls = 0
/ext/sage/sage-8.1/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 [0]: