There are the two ipython file that are Ridge and LASSO regression programmed by python. It is possible to have some errors.
SouthFlame/RidgeLossoRegressionPython
There are the two ipython file that are Ridge and LASSO regression programmed by python.
Jupyter Notebook