Error using matplotlib gallery examples in SageMath verbatim
I am interested in the double pendulum problem from the matplotlib gallery.
After pasting the source code into the Jupyter notebook, this error occurred:
TypeError Traceback (most recent call last)
<ipython-input-1-fcbcf0dba74b> in <module>
72 time_template = 'time = %.1fs'
73 time_text = ax.text(RealNumber('0.05'), RealNumber('0.9'), '', transform=ax.transAxes)
---> 74 history_x, history_y = deque(maxlen=history_len), deque(maxlen=history_len)
75
76
TypeError: an integer is required
Does anyone know how to fix this?