Skip to content

Instantly share code, notes, and snippets.

@Thanatoz-1
Created January 11, 2019 18:04
Show Gist options
  • Save Thanatoz-1/ef1fd74dc36d81c95efaff3d731e0d2f to your computer and use it in GitHub Desktop.
Save Thanatoz-1/ef1fd74dc36d81c95efaff3d731e0d2f to your computer and use it in GitHub Desktop.
Code for running tensorboard using colab
# !!! RUN THIS CELL ONLY ON GOOGLE COLAB !!!
! wget https://raw.githubusercontent.com/hse-aml/intro-to-dl/master/setup_google_colab.py -O setup_google_colab.py
import setup_google_colab
# run tensorboard in background
import os
os.system("tensorboard --logdir=./logs --host 0.0.0.0 --port 6006 &")
# expose port and show the link
setup_google_colab.expose_port_on_colab(6006)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment