Is there any way to use TensorBoard when training a TensorFlow model on Google Colab?
Here's an easier way to do the same ngrok tunneling method on Google Colab.
!pip install tensorboardcolab
then,
from tensorboardcolab import TensorBoardColab, TensorBoardColabCallback
tbc=TensorBoardColab()
Assuming you are using Keras:
model.fit(......,callbacks=[TensorBoardColabCallback(tbc)])
You can read the original post here.