# Work with outputs

> **Warning:**
> The following is only valid when the Python and Jupyter plugins are [installed and enabled](managing-plugins.html)!

When you execute a code cell, its output is shown below. Outputs can include text, tables, or images.

Procedure: Expand or collapse cell outputs

Click the cell handle in the gutter next to the cell output.

Cell output expanded:

![Cell output expanded](https://resources.jetbrains.com.cn/help/img/idea/2026.2/py_cell_output_expanded.png)

Cell output collapsed:

![Cell output collapsed](https://resources.jetbrains.com.cn/help/img/idea/2026.2/py_cell_output_collapsed.png)

Procedure: Clear output

1. Right-click the output cell.

2. Select ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app-client.expui.actions.clearCash.svg) Clear Output from the context menu.

![Clear output](https://resources.jetbrains.com.cn/help/img/idea/2026.2/py_jupyter_clear_ouput.png)

Procedure: Clear all outputs

1. Right-click the output cell.

2. Select ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app-client.expui.actions.clearCash.svg) Clear All Outputs from the context menu. This clears all the outputs in the current notebook.

![Clear all outputs](https://resources.jetbrains.com.cn/help/img/idea/2026.2/py_jupyter_clear_all_outputs.png)

## Text outputs

Text outputs include printed results, log messages, and error traces. You can control how they are displayed, by disabling scrolling, or enabling ASCII coloring for error outputs.

Procedure: Disable scrolling in output cells

1. Right-click the output cell.

2. Disable the Scrolling for Outputs option. The entire output will be displayed without limiting the number of lines.

![Cell output scrolling enabled](https://resources.jetbrains.com.cn/help/img/idea/2026.2/py_cell_output_scrolling_enabled.png)

Procedure: Enable ASCII coloring in error text outputs

1. Right-click the output cell.

2. In the context menu, enable the ASCII Coloring in Error Ouput Cells option.

![ASCII coloring enabled](https://resources.jetbrains.com.cn/help/img/idea/2026.2/py_cell_output_ascii_coloring_enabled.png)

## Table outputs

Table outputs include dataframes and other tabular data. They can be displayed as tables or charts. By default, tables are shown.

### Work with dataframes

To view dataframes or series in a tabular form, click Table View in the upper left corner of the output cell.

![View dataframe as a table](https://resources.jetbrains.com.cn/help/img/idea/2026.2/py_table_view.png)

Procedure: Customize tables toolbar

![Tables toolbar](https://resources.jetbrains.com.cn/help/img/idea/2026.2/py_tables_toolbar.png)

1. Press `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS)) to open settings and then select `Appearance & Behavior | Menus and Toolbars`.

Alternatively, click ![More](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app-client.expui.general.moreVertical.svg) on the toolbar and select Customize Tables Toolbar.

2. Add or remove actions under Customize Tables Toolbar.

For more information, refer to [Menus and toolbars](customize-actions-menus-and-toolbars.html).

3. Click OK to apply the changes and close the window, or click Apply  to keep the window open.

Procedure: Customize page size

You can use the Change page size widget in the upper-left corner of the table to define how many rows are shown at once:

* Select one of the predefined values in the Page Size list.

![Select a predefined value](https://resources.jetbrains.com.cn/help/img/idea/2026.2/py_tables_select_value.png)

* To specify a custom number of rows, select Custom in the Page Size list, enter the value in the dialog that opens, and click OK.

![Set a custom value](https://resources.jetbrains.com.cn/help/img/idea/2026.2/py_tables_select_custom_value.png)

* To make the selected value the default, click Set as Default. The word Default will appear next to the chosen value.

![Set a default value](https://resources.jetbrains.com.cn/help/img/idea/2026.2/py_tables_set_default.png)

Procedure: Work with columns

* To open the table search bar, click the table and press `Ctrl+F` (Windows), `⌘ F` (macOS), `⌘ F` (IntelliJ IDEA Classic (macOS)), `⌘ F` (macOS System Shortcuts), `Ctrl+F` (XWin), `Ctrl+F` (GNOME), `Ctrl+F` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+F` (Sublime Text), `⌘ F` (Sublime Text (macOS)), `Ctrl+F` (NetBeans), `Ctrl+F` (Visual Studio), `⌘ F` (Visual Studio (macOS)), `Ctrl+F` (Eclipse), `Ctrl+F` (Eclipse (macOS)).

* To open the context menu, right-click the column name:

![Copying table headers](https://resources.jetbrains.com.cn/help/img/idea/2026.2/py_copy_column_name.png)

* To copy the column name to the clipboard, select  Copy Column Name  .

* To select the entire column, select Select Column.

* To hide a column, select  Hide Column  .  Hide Other Columns  will hide all columns except the selected one.

* To display hidden columns, click  Show Column List  `Ctrl+F12` (Windows), `⌘ F12` (macOS), `⌘ F12` (IntelliJ IDEA Classic (macOS)), `⌘ ⇧ 7` (macOS System Shortcuts), `Ctrl+F12` (XWin), `Ctrl+F12` (GNOME), `Ctrl+0` (KDE), `Ctrl+F12` (Emacs), `Ctrl+R` (Sublime Text), `⌘ R` (Sublime Text (macOS)), `Ctrl+F12` (NetBeans), `Alt+\` (Visual Studio), `⌥ \` (Visual Studio (macOS)), `Ctrl+F3` (Eclipse), `⌘ O` (Eclipse (macOS)). The hidden columns are shown strikethrough. Select a column and press `Space` (Windows), `Space` (macOS), `Space` (IntelliJ IDEA Classic (macOS)), `Space` (macOS System Shortcuts), `Space` (XWin), `Space` (GNOME), `Space` (KDE), `Space` (Emacs), `Space` (Sublime Text), `Space` (Sublime Text (macOS)), `Space` (NetBeans), `Space` (Visual Studio), `Space` (Visual Studio (macOS)), `Space` (Eclipse), `Space` (Eclipse (macOS)) to toggle its visibility. To search through the column list, start typing a column name in the  Show Column List  window.

* To assign a language to a column, use  Set Highlighting Language  . For more information, refer to [Inject a language for a column](columns.html#enabling_coding_assistance_for_column).

* To toggle and configure cell coloring, click ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/intellij.grid.core.impl.icons.tableHeatmap.png) Table Coloring Options.

> **Note:**
> This option is only available when the table is opened in the Data View tool window. To open it, click ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.toolwindows.toolWindowDataView.png) Open in Data View in the upper-right corner of the table.

![Configuring table color mapping](https://resources.jetbrains.com.cn/help/img/idea/2026.2/py_table_viewer_coloring.png)

Procedure: View column statistics

By default, column statistics are turned off.

To change the default mode to Compact or Detailed, navigate to `Settings | Languages & Frameworks | Tables`.

The Compact mode includes only `None Count` statistics:

![Column statistics in a compact mode](https://resources.jetbrains.com.cn/help/img/idea/2026.2/py_compact_statistics.png)

For numeric data, histograms are plotted and shown together with statistics. Hover over the histogram to view detailed information about each bar.

To view detailed column statistics, do one of the following:

1. Hover over a column name. A popup with column statistics appears.

2. Click ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/grid-core.icons.expui.statisticsPanel.svg) Show Column Statistics and select Detailed.

The detailed statistics are shown above the columns.

For non-numeric data:

![Column statistics for non-numeric data](https://resources.jetbrains.com.cn/help/img/idea/2026.2/py_ds_column_stats_non_numeric.png)

Data type
: Shows the data type the column belongs to

None Count
: Shows the number of `None` values in the column

Count
: Shows the total number of items in a column

Distinct
: Shows the number of unique values

Top
: Shows the most popular value

Frequency
: Shows the number of times an element occurs

For numeric data:

![Column statistics for numeric data](https://resources.jetbrains.com.cn/help/img/idea/2026.2/py_ds_column_stats_numeric.png)

Data type
: Shows the data type the column belongs to

None Count
: Shows the number of `None` values in the column

Count
: Shows the total number of items in a column

Mean
: Shows the average number of all values in the column

Std. Deviation
: Shows the standard deviation value

Min
: Shows the minimum value in the column

Pctl
: Shows values for 5th, 25th, 50th( Median) and 95th percentiles

Max
: Shows the maximum value in the column

> **Note:**
> Viewing column statistics in table outputs is equivalent to using the `describe()` method for `Series`. For more information, refer to [pandas.Series.describe](https://pandas.pydata.org/docs/reference/api/pandas.Series.describe.html#pandas-series-describe) and [polars.Series.describe](https://pola-rs.github.io/polars/py-polars/html/reference/series/api/polars.Series.describe.html#polars-series-describe).

Procedure: Sort data

* To sort the table data based on the column values, right-click the column name and select Ascending or Descending from the ORDER BY section in the context menu.

* To add another column to sorting, you can either click the column name while pressing `Alt` (Windows), `Alt` (macOS), `Alt` (IntelliJ IDEA Classic (macOS)), `Alt` (macOS System Shortcuts), `Alt` (XWin), `Alt` (GNOME), `Alt` (KDE), `Alt` (Emacs), `Alt` (Sublime Text), `Alt` (Sublime Text (macOS)), `Alt` (NetBeans), `Alt` (Visual Studio), `Alt` (Visual Studio (macOS)), `Alt` (Eclipse), `Alt` (Eclipse (macOS)) or select Ascending or Descending from the Add to ORDER BY section in the context menu.

The data will be sorted by selected columns.

> **Note:**
> Value column cannot be added to sorting if sorting by the index column is active.

| State | Description |
| --- | --- |
|    ![No sorting](https://resources.jetbrains.com.cn/help/img/idea/2026.2/py_ds_no_sorting.png)  | Indicates that the data is not sorted in this column. The initial state of the sorting marker.  |
|    ![Ascending order](https://resources.jetbrains.com.cn/help/img/idea/2026.2/py_ds_ascending_order.png)  | The data is sorted in the ascending order. |
|    ![Descending order](https://resources.jetbrains.com.cn/help/img/idea/2026.2/py_ds_descending_order.png)  | The data is sorted in the descending order.  |
|    ![Sorting level](https://resources.jetbrains.com.cn/help/img/idea/2026.2/py_ds_sorting_level.png)  |  The number to the right of the marker (1 on the picture) is the sorting level. You can sort by more than one column. In such cases, different columns will have different sorting levels.  |

Procedure: Filter data

1. Click ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app-client.expui.general.filter.svg) Open Filter View in the upper-right corner of the table.

2. In the dialog that opens, select the column where you want to apply the filter and specify the filter criteria.

> **Tip:**
> You can add your existing variables from RunTime or create a new variable right in the Enter value field.

3. For columns with the `object` data type, filter values should be entered in quotes.

You can use the Wrap with Quotes action to add them automatically.

![Wrap with Quotes](https://resources.jetbrains.com.cn/help/img/idea/2026.2/py_filter_wrap_quotes.png)

4. If you want to use additional filters, click Add filter and specify the new filter criteria.

5. Click Apply to filter data.

To remove or duplicate a filter, click ![Additional Filter Actions](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app-client.actions.more.svg)Additional Filter Actions and select the required option from the list.

Procedure: Reload data

> **Note:**
> This option is only available when the table is opened in the Data View tool window. To open it, click ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.toolwindows.toolWindowDataView.png) Open in Data View in the upper-right corner of the table.

Click ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/clion-radler.resharper.expui.SolutionAnalysis.Loading1.svg) Reload Data in the upper-right corner of the table. This refreshes the view with the most recent data.

![Reload data](https://resources.jetbrains.com.cn/help/img/idea/2026.2/py_table_reload_data.png)

Procedure: Save data as a file

1. Click ![More Actions](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app-client.actions.more.svg) More Actions in the upper-right corner of the table and select ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app-client.expui.general.download.svg) Export Data to File.

2. Choose an extractor and configure additional settings.

![Export data](https://resources.jetbrains.com.cn/help/img/idea/2026.2/py_ds_saving_data_as_file.png)

3. Click ![the Browse button](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app-client.expui.inline.browse.svg) Browse to choose the location for your file.

4. Click Export to File to save the data as a file.

Procedure: Adjust table formatting

> **Note:**
> This option is only available when the table is opened in the Data View tool window. To open it, click ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.toolwindows.toolWindowDataView.png) Open in Data View in the upper-right corner of the table.

1. Click ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app-client.actions.more.svg)More Actions and select Format Table...

2. In the dialog that opens, specify the format and click OK.

![Dialog with the input field for the format](https://resources.jetbrains.com.cn/help/img/idea/2026.2/py_format_table.png)

IntelliJ IDEA supports [Python 2
formatting syntax](https://python-reference.readthedocs.io/en/latest/docs/str/formatting.html).

Procedure: Use Expression Input

> **Note:**
> This option is only available when the table is opened in the Data View tool window. To open it, click ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.toolwindows.toolWindowDataView.png) Open in Data View in the upper-right corner of the table.

You can use Expression Input to display multidimensional data in a two-dimensional table format.

1. Click ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app-client.expui.general.moreVertical.svg)More Actions and select Show Expression Input.

2. Write your expression in the input field that appears on top of the table and press `Enter` (Windows), `⏎` (macOS), `⏎` (IntelliJ IDEA Classic (macOS)), `⏎` (macOS System Shortcuts), `Enter` (XWin), `Enter` (GNOME), `Enter` (KDE), `Enter` (Emacs), `Enter` (Sublime Text), `⏎` (Sublime Text (macOS)), `Enter` (NetBeans), `Enter` (Visual Studio), `⏎` (Visual Studio (macOS)), `Enter` (Eclipse), `⏎` (Eclipse (macOS)).

![Table expression input](https://resources.jetbrains.com.cn/help/img/idea/2026.2/py_expression_input.png)

### Work with charts

To view dataframes or series in a graphical form, click Chart View in the upper left corner of the output cell.

![View data as a chart](https://resources.jetbrains.com.cn/help/img/idea/2026.2/py_jupyter_view_as_chart.png)

The data will be displayed in the form of a chart. You can change the type of chart and configure additional settings.

![Data displayed as a chart](https://resources.jetbrains.com.cn/help/img/idea/2026.2/py_ds_chart_displayed.png)

Procedure: Configure charts

1. Click ![Show series settings](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app-client.expui.general.settings.svg) Show series settings to change the initial settings of the chart.

2. Select the chart type and configure the settings. You can choose one of the following chart types:

* ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/intellij.charts.icons.chart.chartBar.svg) Bar

* ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/intellij.charts.icons.chart.chartPie.svg) Pie

* ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/intellij.charts.icons.chart.chartArea.svg) Area

* ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/intellij.charts.icons.chart.chartLine.svg) Line

* ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/intellij.charts.icons.chart.chartScatter.svg) Scatter

* ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/intellij.charts.icons.chart.chartBubble.svg) Bubble

* ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/intellij.charts.icons.chart.chartStock.svg) Stock

* ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/intellij.charts.icons.chart.chartAreaRange.svg) AreaRange

* ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/intellij.charts.icons.chart.chartBar.svg) Histogram

![Change initial settings of the chart](https://resources.jetbrains.com.cn/help/img/idea/2026.2/py_ds_change_chart_settings.png)

3. Click the Add new series link to add more series to the chart.

Procedure: Save a chart as an image

1. Click ![Export to PNG](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app-client.expui.general.download.svg) Export to PNG to save the generated chart in the .png format.

2. Enter the filename and click Save.

Procedure: AI-generated charts

You can generate a number of preview-charts for a DataFrame using AI. These previews can then be transformed into notebook cells.

1. Click ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/intellij.ml.llm.core.icons.aiAssistantColored.svg)AI Quick Charts in the upper-right corner of the table.

2. You will see the suggested charts under the table. Click any of them to insert the corresponding visualization code as a notebook cell.

![AI suggested charts](https://resources.jetbrains.com.cn/help/img/idea/2026.2/py_ai_quick_charts.png)

## Image outputs

### Work with images

Image outputs include PNG, JPEG, and SVG image formats. You can manage how they are displayed, copy them to the clipboard, or save them as files.

Procedure: Fit image to editor width

Right-click the output cell and enable the Fit to Editor Width option in the context menu.

Original size:

![Fit to editor width disabled](https://resources.jetbrains.com.cn/help/img/idea/2026.2/py_jupyter_fit_to_editor_width_disabled.png)

Fit to editor width:

![Fit to editor width enabled](https://resources.jetbrains.com.cn/help/img/idea/2026.2/py_jupyter_fit_to_editor_width.png)

Procedure: Save image

Right-click the output cell and select Save As from the context menu.

Procedure: Copy image

Right-click the output cell and select ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app-client.expui.general.copy.svg)Copy from the context menu.

### Work with plots

PNG and JPEG images can be displayed as plots. You can work with plots either directly in the editor or open them in a dedicated Plots tool window.

Procedure: Disable color inversion in plots

If you are using a dark UI theme, the colors in charts are adapted for better readability by default. To change this behavior, perform the following steps:

* To disable inversion for a specific plot, right-click it and select Invert Image from the context menu.

> **Note:**
> This action only changes the state of the current image and does not persist after rerunning the cell.

* To permanently disable color inversion for all images:

1.

Right-click any image output and select Configure Inversion from the context menu.

Alternatively, go to `Settings | Jupyter | Jupyter General`.

2.  Disable the Invert image outputs for dark themes checkbox.

3.  Restart the editor to apply the changes.

To open an image in the Plots tool window, right-click it in the editor and select Show in Plots from the context menu.

![Plots](https://resources.jetbrains.com.cn/help/img/idea/2026.2/ij_plots_tw.png)

You can use the following toolbar options to work with the image:

| Item | Description |
| --- | --- |
| ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/platform-images.org.intellij.images.icons.expui.chessboard.svg) Show Chessboard | Click this button to toggle a chessboard background. |
| ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.image.grid.svg) Show Grid | Click this button to toggle a visible grid over the image. |
| ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app-client.expui.image.zoomIn.svg) Zoom In | Click this button to expand the image. |
| ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app-client.expui.image.zoomOut.svg) Zoom Out | Click this button to compress the image. |
| ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app-client.expui.image.actualZoom.svg) Actual Size | Click this button to restore the actual size of the image. |
| ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app-client.expui.image.fitContent.svg) Fit Zoom to Window | Click this button to make a larger image fit the window size. |
| ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.image.colorPicker.svg) Show Color Picker | Click this button to open the [Color Picker](null) window. |
| ![](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.openNewTab.svg) Open In Editor Tab |  Click this button to open the image in a new editor tab.  |

