Skip to content

Instantly share code, notes, and snippets.

@Namburger
Created August 15, 2020 01:28
Show Gist options
  • Save Namburger/a5e430db95203f4822028c7039590b7e to your computer and use it in GitHub Desktop.
Save Namburger/a5e430db95203f4822028c7039590b7e to your computer and use it in GitHub Desktop.
%cd /content
!wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
!unzip -o ngrok-stable-linux-amd64.zip
# Starts tensorboard, so we can monitor the training process.
get_ipython().system_raw(
'tensorboard --logdir {} --host 0.0.0.0 --port 6006 &'
.format('/content/train')
)
get_ipython().system_raw('./ngrok http 6006 &')
print('Click on link below to track progress:')
import time
time.sleep(1)
!curl -s http://localhost:4040/api/tunnels | python3 -c \
"import sys, json; print(json.load(sys.stdin)['tunnels'][0]['public_url'])"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment