Question: I'm trying to access the Tensorboard for the `tensorflow_resnet_cifar10_with_tensorboard` example, but not sure what the url should be, the help text gives 2 options:

> 
> You can access TensorBoard locally at <http://localhost:6006> or using
>  your SageMaker notebook instance proxy/6006/(TensorBoard will not work
>  if forget to put the slash, '/', in end of the url). If TensorBoard
>  started on a different port, adjust these URLs to match.
> 
> 
> 

When it says access locally, does that mean the local container Sagemaker creates in AWS? If so, how do I get there?

Or if I use `run_tensorboard_locally=False`, what should the proxy url be?

Answer: 
Here is my solution:

If URL of my sagemaker notebook instance is:

```
https://myinstance.notebook.us-east-1.sagemaker.aws/notebooks/image_classify.ipynb

```

And URL of accessing TensorBoard will be:

```
https://myinstance.notebook.us-east-1.sagemaker.aws/proxy/6006/

```
You can access TensorBoard on your notebook using the link "proxy/6006".

If you set run\_tensorboard\_locally=False then it won't start TensorBoard.

If the URL you clicked gives you the error "[Errno 111] Connection refused" then it seems that training has already stopped. According to <https://github.com/aws/sagemaker-python-sdk> it "terminates TensorBoard when the execution ends" so it seems you have to access it during the training step only.