Simulation of the hedging portfolio in a Black-Scholes model (demo during the lectures): Python code.
Some references:
The lecture notes on model calibration and volatility modeling by P. Tankov (in French), available on his webpage:
until 2010, and the updated version of the same course under the name
Surface de volatilité.