How can I add interactive python console to my website? [closed]

It looks like the example link you provided uses O’Reilly’s open source project Thebe: https://github.com/oreillymedia/thebe

The readme in the repo provides some instructions to get it set up. Hope that helps!

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)