Course Name: Options Trading Strategies In Python: Basic, Section No: 1, Unit No: 9, Unit type: Exercise
An error occured while running the code:
At line: 24, in fig,ax=plt.subplots(figsize=(8,5)) File "/home/app/.local/lib/python3.6/site-packages/matplotlib/pyplot.py", line 1189, in subplots fig = figure(**fig_kw) File "/home/app/.local/lib/python3.6/site-packages/matplotlib/pyplot.py", line 538, in figure **kwargs) File "/home/app/.local/lib/python3.6/site-packages/matplotlib/backend_bases.py", line 161, in new_figure_manager return cls.new_figure_manager_given_figure(num, fig) File "/home/app/.local/lib/python3.6/site-packages/matplotlib/backends/_backend_tk.py", line 1046, in new_figure_manager_given_figure window = Tk.Tk(className="matplotlib") File "/usr/local/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