DataRobot notebooks support integrated terminal windows. When you have a notebook session running, you can open one or more integrated terminals to execute terminal commands such as running .py scripts or installing packages. Terminal integration also allows you to have full support for a system shell (bash) so you can run installed programs.

## Create a terminal window

{% if section(page, "dr-notebooks") %}

To create a terminal window in a DataRobot notebook, first ensure that the [notebook environment is running](dr-env-nb#manage-the-notebook-environment).

![](images/nb-37.png)

From the sidebar, select the terminal icon at the bottom of the page to create a new terminal window.

![](images/nb-38.png)

After creating a window, the notebook page divides into two sections: one for the notebook itself, and another for the terminal.

![](images/nb-40.png)

{% else %}

To create a terminal window in a DataRobot notebook, first ensure that the [notebook environment is running](dr-env-nb#manage-the-notebook-environment).

![](images/wb-nb-37.png)

From the sidebar, select the terminal icon at the bottom of the page to create a new terminal window.

![](images/wb-nb-38.png)

After creating a window, the notebook page divides into two sections: one for the notebook itself, and another for the terminal.

![](images/wb-nb-40.png)

{% endif %}

!!! note
    Note that terminal windows only last for the duration of the notebook session and they will not persist when you access the notebook at a later time.

### Manage a terminal window

You can manage the terminal window in a variety of ways:

{% if section(page, "dr-notebooks") %}

![](images/nb-39.png)

| | Element | Description  |
|---|---|---|
| ![](images/icon-1.png)| Rename terminal window | To rename the terminal window window, select the pencil icon next to the window name. |
| ![](images/icon-2.png)| Add new terminal window | To add an additional terminal session, click the plus sign (**+**) next to the terminal window name. This will create an additional terminal window as a tab, allowing you to work in multiple windows simultaneously. |
| ![](images/icon-3.png)| Page divider | Use the page divider to manage the size of the notebook and terminal sections of the page. |
| ![](images/icon-4.png)| Fullscreen | Click to view the the terminal on the full page and hide the notebook in session. |

{% else %}

![](images/wb-nb-39.png)

| | Element | Description  |
|---|---|---|
| ![](images/wb-icon-1.png)| Rename terminal window | To rename the terminal window window, select the pencil icon next to the window name. |
| ![](images/wb-icon-2.png)| Add new terminal window | To add an additional terminal session, click the plus sign (**+**) next to the terminal window name. This will create an additional terminal window as a tab, allowing you to work in multiple windows simultaneously. |
| ![](images/wb-icon-3.png)| Page divider | Use the page divider to manage the size of the notebook and terminal sections of the page. |
| ![](images/wb-icon-4.png)| Fullscreen | Click to view the the terminal on the full page and hide the notebook in session. |

{% endif %}

!!! note
    Terminal instances and the notebook itself share the same current working directory.