You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I attempt to run this file, I get the following error:
Traceback (most recent call last):
File "debug.py", line 35, in <module>
board5.plot_board(path=None, plot_graph = False)
File "/home/ksmith3987/proj/risk/risk/board.py", line 426, in plot_board
fig, ax = plt.subplots(figsize=(img_width/dpi, 300/dpi), dpi=dpi)
File "/usr/lib/python3/dist-packages/matplotlib/pyplot.py", line 1176, in subplots
fig = figure(**fig_kw)
File "/usr/lib/python3/dist-packages/matplotlib/pyplot.py", line 539, in figure
**kwargs)
File "/usr/lib/python3/dist-packages/matplotlib/backend_bases.py", line 171, in new_figure_manager
return cls.new_figure_manager_given_figure(num, fig)
File "/usr/lib/python3/dist-packages/matplotlib/backends/backend_tkagg.py", line 1049, in new_figure_manager_given_figure
window = Tk.Tk(className="matplotlib")
File "/usr/lib/python3.6/tkinter/__init__.py", line 2023, in __init__
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: no display name and no $DISPLAY environment variable
Has anyone gotten it to plot? Or have any idea how to fix this error? I know it has to do with being on a remote server, but I have no idea how to fix it. Online explanations about errors similar to this one are going way over my head.
The text was updated successfully, but these errors were encountered:
In the video, I pass the -X flag to ssh to enable X windows forwarding, which allows the lambda server to create windows on your computer. If you are using putty, then there's a checkmark to enable X windows forwarding that you'll have to find and check. There's people at the QCL who have done this in putty before, so they can help you find the right checkmark.
As an aside, graphical user interfaces (GUIs) "seem" much more userfriendly, but it is much harder to communicate these settings in GUIs. That's one of the main reasons why most programmers prefer CLIs (command line interfaces). It makes collaboration over the internet much easier.
I want to plot the risk boards given in test_search.py. I decided to start by trying to plot one using the plot_board function. Here is my code:
When I attempt to run this file, I get the following error:
Has anyone gotten it to plot? Or have any idea how to fix this error? I know it has to do with being on a remote server, but I have no idea how to fix it. Online explanations about errors similar to this one are going way over my head.
The text was updated successfully, but these errors were encountered: