title: Python tkinter components not showing until clicked on in a Jupyter notebook
body: <p>I am trying to practice a basic GUI using Python tkinter and Jupyter notebook. I am working on Mac Monteray. The problem I am having is that the Scale, Message and Spinbox elements don't show up until the space where they are located is clicked on. This happens most of the time but occasionally they do show as expected.</p>
  <p>I have created a new notebook with just the Spinbox component, to make sure it wasn't other code interfering but I get the same result. Has anyone else come across this problem?</p>
  <p>This is my code</p>
  <pre><code>from tkinter import *
  
  # create root window
  root = Tk()
   
  # root window title and dimension
  root.title(&quot;GUI Components&quot;)
  
  # Set geometry (widthxheight)
  root.geometry('1350x1250')
   
  # all widgets will be here
  text = Label(root, text='GUI Components')
  text.pack()
  
  #SpinBox – select from a range of values using arrow (up/down) selectors.
  spnlabel = Label(root, text = 'Spin box')
  
  sp = Spinbox(root, from_ = 0, to = 20)
  
  spnlabel.pack()
  sp.pack()
  
  root.mainloop()
  </code></pre>