# Launching TensorBoard from a notebook

**URL:** <https://swan-community.web.cern.ch/t/launching-tensorboard-from-a-notebook/462>\
**Category:** Jupyter Notebooks\
**Created:** [July 21, 2021, 1:28pm UTC](https://swan-community.web.cern.ch/t/launching-tensorboard-from-a-notebook/462 "2021-07-21T13:28:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sciaba](https://swan-community.web.cern.ch/letter_avatar_proxy/v4/letter/s/ac91a4/32.png) [@sciaba](https://swan-community.web.cern.ch/u/sciaba)\
**Post date:** [July 21, 2021, 1:28pm UTC](https://swan-community.web.cern.ch/t/launching-tensorboard-from-a-notebook/462/1 "2021-07-21T13:28:30Z")

</div>

Hi,  
I tried to launch TensorBoard from a Python notebook by doing

%load\_ext tensorboard  
%tensorboard --logdir=./my\_logs --port=6006

but I just get a big empty cell with the message “swan005.cern.ch took too long to respond”.

Is this normal?

Thanks,  
Andrea

---

<div class="post-metadata">

**Author:** ![etejedor](https://swan-community.web.cern.ch/letter_avatar_proxy/v4/letter/e/e79b87/32.png) [@etejedor](https://swan-community.web.cern.ch/u/etejedor)\
**Post date:** [July 21, 2021, 1:51pm UTC](https://swan-community.web.cern.ch/t/launching-tensorboard-from-a-notebook/462/2 "2021-07-21T13:51:22Z")

</div>

Hello,

Since tensorboard is listening on a port that is not open in your session, that unfortunately can’t work.

There was a discussion about this topic here:

> [@Tensorboard access](https://swan-community.web.cern.ch/t/tensorboard-access/441):
>
> Tensorflow offers a nice visualisation tool for the model parameters: [TensorBoard &nbsp;|&nbsp; TensorFlow](https://www.tensorflow.org/tensorboard) It can be launched directly from a notebook (or from the CLI), but then one needs to access it on another port. Is there any way to make this work with SWAN? Of course, the current alternative is just to launch the tensorboard locally using the synce’d cernbox folder.

It seems there is a JLab extension we could use that would act as a proxy for tensorboard, but this is not yet in production.
