For practical reasons, I want to test a small piece of Pyton code on repl.it (webbased, so I do not need to install Python).
The code
import numpy as np
import matplotlib.pyplot as plttime = np.array([0, 1, 2, 3])
vec = np.array([1, 4, 3, -2])plt.plot(time, vec)
gives following error:
[GCC 4.8.2] on linuxTraceback (most recent call last):File "main.py", line 16, in <module>plt.figure()File "/goval_modules/python35/matplotlib/pyplot.py", line 535, in figure**kwargs)File "/goval_modules/python35/matplotlib/backends/backend_tkagg.py", line 84, in new_figure_managerreturn new_figure_manager_given_figure(num, figure)File "/goval_modules/python35/matplotlib/backends/backend_tkagg.py", line 92, in new_figure_manager_given_figurewindow = Tk.Tk()File "/usr/local/lib/python3.5/tkinter/__init__.py", line 1868, in __init__self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: no display name and no $DISPLAY environment variable
exited with non-zero status
What does this mean?