Uploaded image for project: 'Red Hat OpenShift Data Science'
  1. Red Hat OpenShift Data Science
  2. RHODS-4799

Add TENSORBOARD_PROXY_URL env variable

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • None
    • False
    • None
    • False
    • Release Notes
    • No
    • No
    • Hide
      When a user has TensorFlow or PyTorch notebook images and wants to use TensorBoard to display data, manual steps are necessary to include environment variables in the notebook environment, and to import those variables for use in your code.

      *Workaround*: When you start your notebook server, use the following code to set the value for the TENSORBOARD_PROXY_URL environment variable to use your OpenShift Data Science user ID.

      ----
      import os
      os.environ["TENSORBOARD_PROXY_URL"]= os.environ["NB_PREFIX"]+"/proxy/6006/"
      ----
      Show
      When a user has TensorFlow or PyTorch notebook images and wants to use TensorBoard to display data, manual steps are necessary to include environment variables in the notebook environment, and to import those variables for use in your code. *Workaround*: When you start your notebook server, use the following code to set the value for the TENSORBOARD_PROXY_URL environment variable to use your OpenShift Data Science user ID. ---- import os os.environ["TENSORBOARD_PROXY_URL"]= os.environ["NB_PREFIX"]+"/proxy/6006/" ----
    • Known Issue
    • Done
    • No
    • Pending
    • None

      As part of RHODS-2978, `jupyter-server-proxy` was added to Tensorflow and Pytorch imaged. However to display Tensorboard, users need to manually add TENSORBOARD_PROXY_URL env variable to access Tensorboard as follows:
      import os
      os.environ["TENSORBOARD_PROXY_URL"]= os.environ["NB_PREFIX"]+"/proxy/6006/"
       
      Add TENSORBOARD_PROXY_URL if not present as part of spawning a Tensorflow or Pytorch notebook. 

              Unassigned Unassigned
              vhire Vaishnavi Hire
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: