> For the complete documentation index, see [llms.txt](https://mondrian.gitbook.io/yennefer-single/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mondrian.gitbook.io/yennefer-single/eng-yennefer-labs-s1.4.0/expert-features/try-various-features/1.-use-tensorboard.md).

# 1. Use TensorBoard

You can use TensorBoard in the project IDE environment.

![](https://1274945971-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fgdy1JC6UT7WBhoC2FlHY%2Fuploads%2Fykpk8VIl0QyW0UTAz1iZ%2Fimage.png?alt=media\&token=b04830a8-f540-4648-8ba5-f223dbeb18fb)

TensorBoard provides visualizations and tools for machine learning experiments. Try it out with the guide below.

This guideline was written based on the GPU Jupyter container.&#x20;

### How to use

![](https://1274945971-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fgdy1JC6UT7WBhoC2FlHY%2Fuploads%2Fuhns70dVaVWfVefd0vtM%2Fmatlab2.png?alt=media\&token=b8c5dee7-d5bb-436a-b94e-e0ce988bd1d7)

1. On the Yennefer Studio project details page, click **"Activate Server > Run Server"** to run the IDE.
2. After running the server, click **Terminal** in the Launcher.
3. Enter the following in the terminal in order.\
   *<mark style="color:blue;">`pip install tensorflow`</mark>* \
   *<mark style="color:blue;">`pip install jupyter-server-proxy`</mark>* \
   *<mark style="color:blue;">`npm install -g n export N_PREFIX=/opt/conda/`</mark>* \
   *<mark style="color:blue;">`n stable`</mark>* \
   *<mark style="color:blue;">`pip install git+https://github.com/twalcari/jupyterlab_tensorboard.git`</mark>*<br>

![](https://1274945971-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fgdy1JC6UT7WBhoC2FlHY%2Fuploads%2FK0kdx23z9HmWljInqWCz%2Fmatlab3.png?alt=media\&token=b3dc7610-d512-42a7-9f72-7248b687e0c5)

&#x20;   4\. When the installation is complete, close the window and deactivate the server.\
&#x20;   5\. **Activate the server** again and run the server.\
&#x20;  &#x20;

![](https://1274945971-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fgdy1JC6UT7WBhoC2FlHY%2Fuploads%2FT1ThvMH14pTiD3f5E75c%2Fimage.png?alt=media\&token=5ee95da4-87e2-4824-80c6-377db6f6c2be)

&#x20;    6\. Create a notebook to use TensorBoard

&#x20;  &#x20;

![](https://1274945971-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fgdy1JC6UT7WBhoC2FlHY%2Fuploads%2Fve4caOHlIEgh8T9Z223W%2Fimage.png?alt=media\&token=280d56d5-e398-4153-8bb9-88e4b8ec1078)

&#x20;     7\. After writing the code as above, proceed with learning. <br>

![](https://1274945971-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fgdy1JC6UT7WBhoC2FlHY%2Fuploads%2FSxcFNYbUSdu31k36pYqb%2Fimage.png?alt=media\&token=8c62c2ea-a285-483b-a9d5-ec21a7c3427a)

&#x20;8\. When training, **logdir** and **tensorboard\_callback** variables must be added.                         (Reference code: <https://www.tensorflow.org/tensorboard/tensorboard\\_in\\_notebooks>)

![](https://1274945971-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fgdy1JC6UT7WBhoC2FlHY%2Fuploads%2FZRmGmZRj05NI2pClT4T2%2Fimage.png?alt=media\&token=de35323d-180e-4ba1-bd1e-5c2ee793e69c)

&#x20;  9\. When learning is completed normally, **a logs** folder is created.

![](https://1274945971-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fgdy1JC6UT7WBhoC2FlHY%2Fuploads%2F71anF55esJ8y08U3Ke5N%2Fimage.png?alt=media\&token=feb7622f-3938-49b2-911c-c28ed0c7b1e1)

&#x20;   10\. Check hub0/use&#x72;**/X/Y/** in the address bar at the top.

![](https://1274945971-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fgdy1JC6UT7WBhoC2FlHY%2Fuploads%2FyEkeRxvbcc9OdL8qSnRT%2Fimage.png?alt=media\&token=87b52258-7599-4d0e-b82c-6df649fa02e9)

&#x20;    11\. Execute the code referring to **hub0/User/X/Y** in the address bar at the top.

&#x20;         Enter numbers in X and Y, and you can write as it is otherwise.

![](https://1274945971-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fgdy1JC6UT7WBhoC2FlHY%2Fuploads%2FwTSgeXS2FbWCRPwHwOv4%2Fimage.png?alt=media\&token=001fb49c-3ceb-4f45-aed4-fb503827f8fa)

&#x20;       12\. Enter **`%tensorboard --logdir logs`** code to run TensorBoard...
