> Hi
>
> using the link provided by Jason, I have a running version of sage and
sagecell server on my ubuntu box
I can run python and sage program.
Plotting with sage is working
plot(x^3) draw the correct
figure<https://github.com/sagemath/sagecell/blob/master/contrib/vm/install-sagecell-functions#L111>
however matplotlib is not working
import pylab
pylab.plot(X,Y)
pylab.show()
result in the following error TCLTK error (log followed)
TclError: no display name and no $DISPLAY environment variable
Have you any idea
THanks
Marc
===========================================================================
TclError Traceback (most recent call
last)<ipython-input-1-291618d8b509> in <module>() 2
X=linspace(Integer(0),Integer(1),Integer(10)) 3 import pylab----> 4
pylab.plot(X,X*X) 5 pylab.show()
/home4/sage/local/lib/python2.7/site-packages/matplotlib-1.4.x-py2.7-linux-x86_64.egg/matplotlib/pyplot.pyc
in plot(*args, **kwargs) 3048 @_autogen_docstring(Axes.plot) 3049 def
plot(*args, **kwargs):-> 3050 ax = gca() 3051 # allow callers to
override the hold state by passing hold=True|False 3052 washold =
ax.ishold()
/home4/sage/local/lib/python2.7/site-packages/matplotlib-1.4.x-py2.7-linux-x86_64.egg/matplotlib/pyplot.pyc
in gca(**kwargs) 809 matplotlib.figure.Figure.gca : The figure's gca
method. 810 """--> 811 ax = gcf().gca(**kwargs) 812 return
ax 813
/home4/sage/local/lib/python2.7/site-packages/matplotlib-1.4.x-py2.7-linux-x86_64.egg/matplotlib/pyplot.pyc
in gcf() 454 return figManager.canvas.figure 455 else:-->
456 return figure() 457 458 fignum_exists =
_pylab_helpers.Gcf.has_fignum
/home4/sage/local/lib/python2.7/site-packages/matplotlib-1.4.x-py2.7-linux-x86_64.egg/matplotlib/pyplot.pyc
in figure(num, figsize, dpi, facecolor, edgecolor, frameon, FigureClass,
**kwargs) 427 frameon=frameon,
428 FigureClass=FigureClass,--> 429
**kwargs) 430 431 if
figLabel:
/home4/sage/local/lib/python2.7/site-packages/matplotlib-1.4.x-py2.7-linux-x86_64.egg/matplotlib/backends/backend_tkagg.pyc
in new_figure_manager(num, *args, **kwargs) 79 FigureClass =
kwargs.pop('FigureClass', Figure) 80 figure = FigureClass(*args,
**kwargs)---> 81 return new_figure_manager_given_figure(num, figure) 82
83
/home4/sage/local/lib/python2.7/site-packages/matplotlib-1.4.x-py2.7-linux-x86_64.egg/matplotlib/backends/backend_tkagg.pyc
in new_figure_manager_given_figure(num, figure) 87 """ 88
_focus = windowing.FocusManager()---> 89 window = Tk.Tk() 90
window.withdraw() 91
/home4/sage/local/lib/python2.7/lib-tk/Tkinter.pyc in __init__(self,
screenName, baseName, className, useTk, sync, use) 1743
baseName = baseName + ext 1744 interactive = 0-> 1745 self.tk
= _tkinter.create(screenName, baseName, className, interactive, wantobjects,
useTk, sync, use) 1746 if useTk: 1747 self._loadtk()
TclError: no display name and no $DISPLAY environment variable
Thanks
> Marc
>
>
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.