ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 11 Feb 2013 10:29:41 +0100Using pyglet in sage?https://ask.sagemath.org/question/9793/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)
Plot(c1)
ImportError: pyglet is required for plotting.
visit http://www.pyglet.org/
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!Sun, 10 Feb 2013 05:59:47 +0100https://ask.sagemath.org/question/9793/using-pyglet-in-sage/Answer by burcin for <p>I'm experimenting with the Geometry package in sympy, but plotting seems to require pyglet:</p>
<pre><code>from sympy import symbols, Plot
from sympy.geometry import *
c1 = Circle(Point(0,0),2)
Plot(c1)
ImportError: pyglet is required for plotting.
visit http://www.pyglet.org/
</code></pre>
<p>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.</p>
<p>So either I need to know how to get Sage to use pyglet, or get sympy.geometry to use another plotting tool.</p>
<p>Any advice? Thanks!</p>
https://ask.sagemath.org/question/9793/using-pyglet-in-sage/?answer=14533#post-id-14533Sage installs its own version of Python and many other mathematics packages independent of the host operating system. You would need to install pyglet in this environment. You can do this with
sage: !easy_install pyglet
on the Sage ipython prompt.
This was also answered [here](http://ask.sagemath.org/question/2218/pandas-in-sage-notebook-in-virtual-box).Sun, 10 Feb 2013 08:17:29 +0100https://ask.sagemath.org/question/9793/using-pyglet-in-sage/?answer=14533#post-id-14533Comment by kcrisman for <p>Sage installs its own version of Python and many other mathematics packages independent of the host operating system. You would need to install pyglet in this environment. You can do this with</p>
<pre><code>sage: !easy_install pyglet
</code></pre>
<p>on the Sage ipython prompt.</p>
<p>This was also answered <a href="http://ask.sagemath.org/question/2218/pandas-in-sage-notebook-in-virtual-box">here</a>.</p>
https://ask.sagemath.org/question/9793/using-pyglet-in-sage/?comment=18252#post-id-18252Well, it was answered about a different package, but yes.Mon, 11 Feb 2013 10:29:41 +0100https://ask.sagemath.org/question/9793/using-pyglet-in-sage/?comment=18252#post-id-18252