IntelliJ IDEA 2020.1 Help

Run notebooks and analyze data

To preview and analyze data sets, you need to run the executable paragraphs of your notebook.

Running notebooks

You can run paragraphs one by one or all at once. When executing any paragraph, mind code dependencies. If, for example, the current paragraph relies on the variables that are initialized in the previous paragraph, they need to be executed first.

  • Click Run all on the notebook editor toolbar to execute all paragraphs of the notebook. The progress of the execution will be shown on the toolbar.

  • Click Run a paragraph icon in the gutter to execute a particular paragraph of the notebook.

    Run a paragraph

Once the execution completes, the execution status is shown in the toolbar and in the gutter:

  • Finished: success: execution has been successfully finished

  • Finished: failed: execution has failed

  • Finished: aborted: execution has been aborted

In case of the successful execution, preview the output that is shown below the paragraph code:

Executing code paragraph has been successfully finished

The Spark job link appears in the preview area when the paragraph contains any RDD operation that starts a Spark job, for example, count or saveAsTextFile methods. Click this link to open the Spark Monitoring tool window and and preview the completion status, event timeline, and DAG visualization.

When you execute SQL statements or run the show method of a Zeppelin or Spark object, the results are shown in the Table and Chart tabs of the preview area.

Viewing tables

By default, the Table tab shows all the processed data.

Car data in the table view

Organize data jn the table

  • Click a column header to order values in it.

  • Click Filter data to filter data in the selected column.

  • Click Pagination to organize table in pages. Toggle this button and specify the number of table rows to display on a page: 10, 15, 30, or 100.

Export tables

  1. Click Export table to save the table in a .csv file.

  2. Enter the filename and click Save.

Viewing charts

The default type of the chart is defined by the chart settings on the server. However, you can configure and modify the predefined settings.

Configure charts

  1. Click Chart settings icon to alter the initial settings of the chart.

    Chart view

  2. Click any icon that corresponds to a chart type and the new chart will be plotted. For example, click Scatter chart icon to add a new scatter chart.

  3. Scroll down the chart settings to configure the newly added chart. Drag the variables you want to plot to the specific field:

    Building a new chart

  4. To remove any chart from the plotting area, click Close on the chart settings.

Export charts

  1. Click Export a chart to save the generated graphical output in the .png format.

  2. Enter the filename and click Save.

Troubleshooting

If, for some reasons, the execution of the notebook or a particular paragraph has failed, review the error message and consider some typical troubleshooting actions:

Problem

Recommended action

The notebook toolbar is not available. The following warning message is shown:

The notebook is not connected

Click the Try Reconnect link to get the notebook connected to the server.

Server connection is lost. The corresponding icon shows the disconnected status of the server:

Disconnected server

Click Refresh connections to reestablish the connection to the server.

Interpreter session gets expired. For example, the error message reports that the Spark session is expired.

Click Interpreter bindings on the notebook toolbar control and restart the problematic interpreter.

Last modified: 7 July 2020