Datalore 2024.5 Help

Use Reactive mode

Besides the standard Jupyter mode, Datalore offers Reactive mode, an alternative method for managing your notebook calculations.

Reactive mode is a reproducible mode that enforces a fixed top-down evaluation order and automatic recalculation of the cells below the modified one.

When combined with interactive controls, Reactive mode allows you to turn notebooks into interactive reports.

With Reactive mode enabled, notebook state is saved after each cell evaluation to ensure automatic recalculation of only those cells that are below the modified one. This can be particularly helpful when working on big projects.

Preconditions

Consider the following when enabling Reactive mode:

  • To make sure Reactive mode works properly with SQL statements, use SQL cells when working with databases.

  • The minimum Linux kernel version required is 5.13. (applicable for Datalore On-Premises only)

Procedures

Choose Reactive mode for a new notebook

You choose Reactive mode on the Kernel tab of the New notebook dialog.

Kernel and mode selection

    Enable Reactive mode in the editor

    You can enable Reactive mode at any time working in the editor. There are two interfaces that you can use: Kernel menu and Computation tool.

    1. Go to Main menu | Kernel.

    2. Select the Reactive mode option.

      Kernel menu
    3. Click the OK button in the Change computation mode confirmation window.

    1. Open the Computation tab from the left-hand toolbar.

    2. Under Kernel, click switch the Reactive mode toggle.

      Computation tab
    3. Click the OK button in the Change computation mode confirmation window.

      Keywords

      computation mode, running notebooks, calculation, execution, alternative mode

      Last modified: 19 November 2024