title: Printing output of pandas profiling object upon click of a button
body: <p>My question is very specific to pandas profiling package and tkinter package. I want that on click of a button, the profiling report should be displayed in the gui window. My code is:</p>
  
  <pre><code>import pandas_profiling
  
  def data_profiling():
      pandas_profiling.ProfileReport(data)
  
  import tkinter as tk
  
  root = tk.Tk()
  tk.Button(root, text='EDA/Data profiling', command=data_profiling).grid(row=9, column=0)
  </code></pre>
  
  <p>Upon execution the button displays nothing. Documentation of pandas_profiling does not also help. </p>