Bokeh Session started with on a Flask server

if __name__ == "__main__":
    	application.run(port=5000, debug=True)

Sorry for the confusion. I had tried the above configuration previously, tried distinguishing the ports, as a method of troubleshooting, but it resulted in the same below error.

OSError: [Errno 48] Address already in use

Suspiciously, even with a fresh restart to make sure nothing is blocking any ports, it still returns the error above. Something about the Bokeh server is not making it to the Flask server. I decided I needed expertise because I thought this might have something subtle to do about how I sequenced starting the the servers or something? It’s all a bit mysterious to me. Is there a deeper way to check port 5000? I’m only getting normal errors when I direct a chrome window there. No file structure or anything. I think I’ve confirmed there isn’t anything running on these ports which only leaves vague answers left.