Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _start_visdom(port):
p = Process(target=visdom.server.start_server, kwargs={"port": port, "base_url": ''})
p.start()
atexit.register(p.terminate)
time.sleep(20)
return True