plotly / plotly.py

The interactive graphing library for Python :sparkles: This project now includes Plotly Express!
https://plotly.com/python/
MIT License
16.02k stars 2.54k forks source link

stats model missing in plotly express requirements.txt file #3406

Open pdenapo opened 2 years ago

pdenapo commented 2 years ago

statsmodels is being used by plotly express (for instance for px.scatter with linear regression trend, with parameter trendline="ols")

Example: I've develop a test application in Dash that you can see at

https://github.com/pdenapo/normal_bivariada

When I've tried to deploy it to heroku (following the instructions in the Dash documentation), my application didn't work since the statsmodels was missing in the requirements.

I've fixed this by adding a

import statsmodels

statement to my code (event though this module is not used anywhere in my code), and regenerating the requirements.txt

I'm not submitting a pull request since I am not sure of which file in plotly source should be modified.

louisgeisler commented 1 year ago

I had exactly the same issue. I really think that statsmodels should be part of the requirement or at least asked to install...