Skip to content

Instantly share code, notes, and snippets.

@post2web
Last active July 12, 2018 03:21
Show Gist options
  • Save post2web/ed9846c135b035ae12b4cd965bfdd97f to your computer and use it in GitHub Desktop.
Save post2web/ed9846c135b035ae12b4cd965bfdd97f to your computer and use it in GitHub Desktop.
Start/stop tensorboad in a jupyter cell
!pip3 install datalab
from google.datalab.ml import TensorBoard
TensorBoard().start('./model_dir/')
for pid in TensorBoard.list()['pid']:
TensorBoard().stop(pid)
print('Stopped TensorBoard with pid {}'.format(pid))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment