title: Is there a way to run dtale through a python script instead of using the python (or ipython) shell?
body: <p>I would like to run dtale without first opening a python shell, so I would like to run it with a script like this:</p>
  <pre><code>python data_analysis_dtale.py
  </code></pre>
  <p>where the content of data_analysis_dtale.py is:</p>
  <pre><code>import pandas as pd
  import dtale
  
  df = pd.DataFrame({'a':[1,2,3], 'b':[3,4,5]})
  
  s = dtale.show(df)
  s.open_browser()
  </code></pre>
  <p>If I run this, I end up with an empty html page opened in the browser. Instead, if I execute this code during a python interactive shell session, it works fine. Is there a way to avoid this? I suppose this is a more general problem and it's not related only to dtale.</p>