title: How to print out Model Summary in Plotly Dash?
body: <p>Say I build an ARIMA model and I would like to display the model summary on dash exactly as in python, how can I do so?
  The following is an example code. (I am using colab therefore <code>app = JupyterDash()</code> )</p>
  <pre><code>import yfinance as yf
  import dash
  import dash_html_components as HTML
  from statsmodels.tsa.arima_model import ARIMA
  
  app = JupyterDash() 
  
  data = yf.download(&quot;AAPL&quot;, start=&quot;2017-01-01&quot;, end=&quot;2021-12-31&quot;)
  
  arima = ARIMA(data[&quot;Close&quot;], order=(1, 1, 1)).fit(disp=0)
  
  arima.summary()
  
  app.layout = html.Div([
      html.P(arima.summary()) #what should I type here?
  ])
  
  app.run_server(host='0.0.0.0', debug=True, port=50800)
  </code></pre>
  <p>With the help of Daniel Al Mouiee, the following code get closer to the output in python.</p>
  <pre><code>summary = arima.summary()
  
  app.layout = html.Div([
      html.P(str(summary), style={'whiteSpace': 'pre-wrap'})
  ])
  </code></pre>