Skip to content

Instantly share code, notes, and snippets.

@smiile8888
Created July 24, 2020 00:05
Show Gist options
  • Save smiile8888/af483ce1631b79f8bad979deb4c7e289 to your computer and use it in GitHub Desktop.
Save smiile8888/af483ce1631b79f8bad979deb4c7e289 to your computer and use it in GitHub Desktop.
Porting tensorboard on local machine or the server with ngrok
#!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)
# open URL and you will see tensorboard up and running!
@smiile8888
Copy link
Author

Prerequisite:

  1. ngrok: create an account and follow the setup if you haven't done

Note: when call ngrok, please make sure it's on the right path

Here is what you will see after run sh tensorboard_logs.sh

messageImage_1595547999098

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment