Creating a simple notebook in DataStax Studio

Steps to create a simple notebook in DataStax Studio.

A notebook is a document that contains text and runnable code. A notebook consists of one or more cells.

Prerequisites

  • DSE 5.1 installed, configured, and running.
  • If using DSE Graph, it must be configured, and running.
  • DataStax Studio installed and running.

Procedure

To create a new notebook and add some text.

  1. Open http:/URI_running_DSE:9091/ in your browser.
    The DataStax Studio opens in the Notebooks page.
  2. Select Add Notebook (the plus icon (in a square) to the left of the existing notebooks).
    The Create Notebook dialog displays.
  3. Add information to the fields and Create.
    Name
    My Notebook
    Select a connection


  4. Select Create.
    The notebook displays with a single empty (default) cell in CQL edit mode. This can be changed to Gremlin or Markdown depending on the desired mode.

The following steps show a Markdown example:

  1. In the default cell, change the drop-down to Markdown.
  2. Add some verbiage to the default cell:
    My Notebook
    ===========
    
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut consectetur lectus sit amet erat tempus ornare. Fusce sagittis, mauris eu maximus pellentesque, odio purus accumsan lacus, eu accumsan ex nisi eu metus.
    
  3. Select Run Cell to render the marked down text.


  4. Each notebook has only one connection. Create a connection to a DSE cluster.