Follow

Using TensorBoard in Jupyter Workspaces

Overview

TensorBoard is a tool for visualizing TensorFlow data. TensorBoard operates by reading events files, which contain summary data that generated by TensorFlow. You can visualize your TensorFlow graph, plot quantitative metrics about graph, and show additional data that passes through the graph.

You can use TensorBoard inside your Domino Jupyter workspace by installing and enabling the Jupyter-TensorBoard server extension in your compute environment.

Environment Setup

You will need to create or modify an environment to enable this extension in your Domino workspaces. Read about Compute Environment Management if you aren't already familiar.

  1. In Domino, click Environments in the top navigation bar.
  2. Click Create Environment.
  3. Give the environment an informative name, and then choose a base image that has Python 3.6+ installed. You can use an environment as a base image if it uses this Domino standard:
    quay.io/domino/base:standard-py3.6-v1.3+
    If you do not have access to an environment based on the above standard image, you will need to locate or create an environment with Python 3.6+ installed.
  4. After selecting the appropriate base image, choosing a visibility setting, and optionally providing a description, click Create Environment to finalize.
  5. The environment will be created and you will be automatically redirected to its Overview page. Scroll down to the Docker Settings and click Edit Dockerfile.
  6. Add the following two lines to the Dockerfile Instructions:
    RUN pip install ipython jupyter jupyter-tensorboard --upgrade
    RUN jupyter tensorboard enable --system
    
  7. Click Build. You will be redirected to the Revisions page for the environment. If the new revision builds successfully, you are ready to use this environment.

Using Jupyter-TensorBoard

  1. Open the project you want to use with Jupyter-Tensorboard, then click Settings in the left navigation bar.
  2. In the Compute environment panel, use the dropdown menu to choose the environment you created in the previous section. A notification will appear verifying that the new environment is now set.
  3. Click Workspaces in the left navigation bar, then select Jupyter and launch a new workspace.
  4. From the Files tab in the workspace, click New -> Tensorboard.Tensorboard.png
  5. You can now access the new TensorBoard from the Running tab.Domino_Workbook.png
  6. Refer to the TensorBoard README to learn how to start consuming TensorFlow events. 
Was this article helpful?
0 out of 0 found this helpful