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
If you are not running sort.py as __main__ (i.e., from the command line), you can just comment out line 23 matplotlib.use('TkAgg') and it should work fine.
A possible, more elegant fix would be something like
try:
importmatplotlibmatplotlib.use("TkAgg")
exceptImportErrorase:
if"TkAgg"instr(e):
print("Switching to 'Agg' backend because TkAgg cannot be loaded in headless mode.")
matplotlib.use("Agg")
but I haven't tested this yet since I don't need the plotting part.
while importing
from sort.sort import *
... i am getting this error...can anyone tell me how to fix it...i am using google colabThe text was updated successfully, but these errors were encountered: