PyDy Visualizer inside IPython notebook(demonstration)

This Notebook is to demonstrate the capabilities of pydy.viz to render the visualizations inside the IPython notebooks. If you do not want to run the example inside the notebook, you can also run visualize.py from terminal:

$ python visualize.py

In [1]:
#Import the code from visualize.py
from visualize import *


/usr/local/lib/python2.7/dist-packages/pydy-0.3.0.dev0-py2.7.egg/pydy/codegen/code.py:18: DeprecationWarning: This module, 'pydy.codgen.code', is deprecated. The function 'generate_ode_function' can be found in the 'pydy.codegen.ode_function_generator' module. 'CythonGenerator' has been removed, use 'pydy.codegen.cython_code.CythonMatrixGenerator' instead.
  DeprecationWarning)
/usr/local/lib/python2.7/dist-packages/pydy-0.3.0.dev0-py2.7.egg/pydy/codegen/code.py:68: DeprecationWarning: This function is deprecated and will be removed in PyDy 0.4.0. Use the the new 'generate_ode_function' in 'pydy.codegen.ode_function_generator'
  DeprecationWarning)

In [2]:
# display the visualizer!
scene.display_ipython()


The 'static' directory already exists. Would you like to overwrite the contents? [y|n]
y

In [ ]: