This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!usr/bin/env python | |
# kill process on the particular port that you want to run tensorboard on, this case is 6006 | |
kill -9 $(lsof -t -i:6006) | |
# run tensorboard on localhost on background | |
tensorboard --logdir logs --host localhost --port 6006 & | |
# port to ngrok, make sure to call the right path of ngrok | |
./ngrok http 6006 | |
# the link will show on terminal (see attached image on my comment) |