I would like to run dtale without first opening a python shell, so I would like to run it with a script like this:
python data_analysis_dtale.py
where the content of data_analysis_dtale.py is:
import pandas as pd
import dtale
df = pd.DataFrame({'a':[1,2,3], 'b':[3,4,5]})
s = dtale.show(df)
s.open_browser()
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.