Anybody know how to fix the below error in Python 3 in Jupyter Notebook ? I am running the below code:-
from tkinter import *
master = Tk()
#screen.geometry("500x500")
#screen.title("Campaign")
Label(master, text="First Name").grid(row=0)
Label(master, text="Last Name").grid(row=1)
e1 = Entry(master)
e2 = Entry(master)
e1.grid(row=0, column=1)
e2.grid(row=1, column=1)
mainloop()
This throws an error :- TclError: no display name and no $DISPLAY environment variable