# Launch TensorBoard in Q Blocks instance

Tensorboard comes pre-installed in the Q Blocks instances that are launched with Tensorflow based AI Images.

But if you have launched a Q Blocks instance with a different AI image other than Tensorflow based then you can simply install Tensorboard with the following command:

```bash
pip install tensorboard
```

Once you have launched the instance and Tensorboard is available in it, you can follow the next steps to get started with using it:

1. Click on the "More info" button for your instance on the Instances page in your Dashboard.
2. Copy the **Extra Port** and **Host URL** as shown in the image:

<figure><img src="/files/GngYupSQam067fQ7d5CX" alt="" width="563"><figcaption></figcaption></figure>

3. Now, access your instance via Terminal or Jupyter Lab and run the following command in your instance to launch Tensorboard:

<pre class="language-bash" data-full-width="false"><code class="lang-bash"><strong>tensorboard --logdir LOG_FOLDER --host=0.0.0.0 --port EXTRA_PORT
</strong></code></pre>

> Replace <mark style="color:red;">EXTRA\_PORT</mark> with the Port number copied in last step

3. Now head over to your browser and access your TensorBoard running at the following URL:

```bash
http://HOST_URL:EXTRA_PORT
```

#### For example:

{% hint style="info" %}
If we ran TensorBoard application in our instance with information provided in the above image then we would see it running at the following URL: <http://jus.qblocks.cloud:56329>
{% endhint %}

This should help you get started with running applications like TensorBoard that needs access via browser in your instance.

If you still face issues setting it up then don't hesitate to reach out to us at: [support@qblocks.cloud](mailto:support@qblocks.cloud?subject=Unable%20to%20launch%20TensorBoard)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.qblocks.cloud/q-blocks-how-to-guide/launch-tensorboard-in-q-blocks-instance.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
