|
|
| |
# Don't try this at home! | # Don't try this at home! |
import array_backend | import array_backend |
|
|
|
#Import visual modules |
|
import crayola |
|
color = crayola |
|
from visual.primitives import arrow, cylinder, cone, sphere, box, ring, label |
|
from visual.primitives import frame, curve, pyramid, ellipsoid, convex, faces, helix |
|
from visual.ui import display |
|
|
# The following is intended to be equivalent to: | # The following is intended to be equivalent to: |
# >>> from array_backend.backend[0] import * | # >>> from array_backend.backend[0] import * |
vars = __import__(array_backend.backend[0], globals(), locals(), []) | vars = __import__(array_backend.backend[0], globals(), locals(), []) |
|
|
locals()[i] = j | locals()[i] = j |
| |
# import all of the public modules into the global namespace | # import all of the public modules into the global namespace |
import crayola |
|
color = crayola |
|
import cvisual | import cvisual |
from cvisual import vector, mag, mag2, norm, cross, rotate, comp, proj, diff_angle, rate | from cvisual import vector, mag, mag2, norm, cross, rotate, comp, proj, diff_angle, rate |
from visual.primitives import arrow, cylinder, cone, sphere, box, ring, label |
|
from visual.primitives import frame, curve, pyramid, ellipsoid, convex, faces, helix |
|
from visual.ui import display |
|
from cvisual import vector_array, scalar_array | from cvisual import vector_array, scalar_array |
| |
def __waitclose(): | def __waitclose(): |