Notebook cells in DataStax Studio

Description of notebook cells in DataStax Studio.

Notebook cells contain markdown text, CQL, Gremlin code, or Spark SQL. A notebook consists of a sequence of cells. A cell is a multi-line text input field.

Execute cell contents by:
  • Pressing Shift + Enter with focus in the cell
  • Clicking the Play button ▶ on the right
  • Selecting Cell | Run in the menu bar
The cell language determines the execution behavior of a cell:
  • Gremlin

    Execution configurations define the run behavior.

  • CQL

    Execution configurations define the run behavior. Custom run configurations are supported.

  • Spark SQL
  • Markdown

    Markdown is a superset of HTML. Use Markdown to document the computational process in a literate way, alternating descriptive text with code. You can make text italic or bold. You can build lists, and provide other structure including headings that link to other sections of the notebook. Click Play to display the formatted markdown text.

Every cell starts off being a code cell, but you can change its type by selecting a different cell language or by using Keyboard shortcuts in DataStax Studio.


Widget Name Description
View Schema Switch to Schema to view and interact with contextual views of data.
View History Display notebook history to view and manage notebook revisions.
Add Cell Add a cell in the current location.


Widget Name Description
Run Cell Display the markdown or runs the Gremlin code and displays the results.
Hide Code Editor Hide the code editor.
Disable editor validations Toggle editor validations to off.
Enable editor validations Toggle editor validations to on.
Maximize cell Maximize the cell.
More actions Display more menu items for the cell.

Gremlin results display

Display the results returned by the last Gremlin statement executed in a cell in these ways:

Widget View description
Pie chart

Schema view

Widgets for schema view:

Widget Description
Reset drop down selections
Dock schema to the top
Dock schema to the side