Is there any way to use TensorBoard when training a TensorFlow model on Google Colab?
TensorBoard for TensorFlow running on Google Colab using tensorboardcolab. This uses ngrok internally for tunnelling.
!pip install tensorboardcolab
tbc = TensorBoardColab()
This automatically creates a TensorBoard link that can be used. This Tensorboard is reading the data at './Graph'
summary_writer = tbc.get_writer()
tensorboardcolab library has the method that returns FileWriter object pointing to above './Graph' location.
You can add scalar info or graph or histogram data.
Reference: https://github.com/taomanwai/tensorboardcolab