Can I run this inside the Magento container or do I need a separate Python sidecar?

Always run Prophet as a separate Python sidecar container. Three reasons: (1) Prophet pulls in pystan/cmdstan which is a 400MB+ install, you don’t want that bloating your PHP container. (2) Python and PHP have different OS-package conflicts (gcc, libffi versions), mixing them is asking for trouble. (3) The sidecar can scale independently, spin up a beefy container only on training nights, scale down to nothing during the day. The Python sidecar talks to MySQL (read sales_order, write panth_forecast) and that’s it. Use the existing docker-compose.python-expose.yml pattern in the repo, add a forecaster service alongside the MCP server.

Kishan Savaliya
Kishan Savaliya
Adobe Certified Magento Commerce Developer
Ahmedabad [IN]working hours, replies within four hours
When do you need it

Read personally. Never shared. Or email the brief.

More on magento 2 demand forecasting with python + prophet, faqs

Need it fixed, not just explained?

Send the brief with your store URL; the written quote comes back within 24 hours.