Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Using pyglet in sage?

I'm experimenting with the Geometry package in sympy, but plotting seems to require pyglet:

from sympy import symbols, Plot  
from sympy.geometry import *   
c1 = Circle(Point(0,0),2)  

ImportError: pyglet is required for plotting.  

Now, as far as I know, pyglet is installed (via python), but it doesn't seem to be "visible" in Sage. I would rather use Sage than python/sympy, as I also need to perform some numerical and symbolic computations, as well as plotting the results.

So either I need to know how to get Sage to use pyglet, or get sympy.geometry to use another plotting tool.

Any advice? Thanks!