# How to access Ray Dashboard from Google Colab

**URL:** <https://discuss.ray.io/t/how-to-access-ray-dashboard-from-google-colab/14206>\
**Category:** Dashboard, Monitoring & Debugging\
**Created:** [March 29, 2024, 6:38pm UTC](https://discuss.ray.io/t/how-to-access-ray-dashboard-from-google-colab/14206 "2024-03-29T18:38:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fponknevets](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/fponknevets/32/5919_2.png) [@fponknevets](https://discuss.ray.io/u/fponknevets)\
**Post date:** [March 29, 2024, 6:38pm UTC](https://discuss.ray.io/t/how-to-access-ray-dashboard-from-google-colab/14206/1 "2024-03-29T18:38:50Z")

</div>

**How severe does this issue affect your experience of using Ray?**

- Low: It annoys or frustrates me for a moment.

**Please note: I am one elapsed hour into my Ray journey - total newbie.**

I am using Google Colab to learn ML, MLOps, etc. I am currently learning about Ray.

My Colab notebook has the following cell:

`!pip install -U "ray[data,train,tune,serve]"`

which when executed results in (a lot of logging ending in):

`Successfully installed aiohttp-cors-0.7.0 colorful-0.5.6 distlib-0.3.8 fastapi-0.110.0 h11-0.14.0 httptools-0.6.1 opencensus-0.11.4 opencensus-context-0.1.3 py-spy-0.3.14 python-dotenv-1.0.1 ray-2.10.0 starlette-0.36.3 tensorboardX-2.6.2.2 uvicorn-0.29.0 uvloop-0.19.0 virtualenv-20.25.1 watchfiles-0.21.0 websockets-12.0`

After that I have the following cell:

```auto
import ray

if ray.is_initialized():
    ray.shutdown()
ray.init()

```

which when executed results in output like the following:

| 2024-03-29 18:26:01,586 | INFO worker.py:1743 – Started a local Ray instance. View the dashboard at 127.0.0.1:8265 |
| --- | --- |
| Python version: | 3.10.12 |
| Ray version: | 2.10.0 |
| Dashboard: | [http://127.0.0.1:8265](http://127.0.0.1:8265) |

Now I want to access the Dashboard to explore it, but obviously it is not at [http://127.0.0.1:8265](http://127.0.0.1:8265).

Please could someone let me know how I can access it, if I can?

---

<div class="post-metadata">

**Author:** ![Huaiwei\_Sun](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/huaiwei_sun/32/1316_2.png) [@Huaiwei\_Sun](https://discuss.ray.io/u/Huaiwei_Sun)\
**Post date:** [March 29, 2024, 7:11pm UTC](https://discuss.ray.io/t/how-to-access-ray-dashboard-from-google-colab/14206/2 "2024-03-29T19:11:14Z")

</div>

I guess you may need to port forward it to your local host somehow?

I think this is more of a colab question? Saw some related posts like this

> <https://stackoverflow.com/questions/56473719/open-port-on-google-colaboratory-machine>

---

<div class="post-metadata">

**Author:** ![fponknevets](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/fponknevets/32/5919_2.png) [@fponknevets](https://discuss.ray.io/u/fponknevets)\
**Post date:** [March 29, 2024, 11:12pm UTC](https://discuss.ray.io/t/how-to-access-ray-dashboard-from-google-colab/14206/3 "2024-03-29T23:12:42Z")

</div>

@Huaiwei_Sun that’s brilliant, thanks a lot. That really helped. It lead me to [this](https://colab.research.google.com/notebooks/snippets/advanced_outputs.ipynb#scrollTo=_7dYIo63EdgL) article about advanced outputs in Colab which gave me the following solution:

```auto
from google.colab import output
output.serve_kernel_port_as_window(8265)

```

which when executed presents a link to the Dashboard.

Thanks again.
