Dash runs mulitple times(more than 20 times) when app.run_server is used

I’m running dash through jupyter lab and after running the code the server gets created mulitple times(about 20 times). Is there something wrong in my code or is it because of jupyter lab?

I tried adding threaded=true/false and no_reloader*