Creating 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.
-
DSE 5.1 installed, configured, and running.
-
If using DSE Graph, it must be configured, and running.
-
DataStax Studio installed and running.
-
To create a new notebook and add some text.
-
Open
http:/URI_running_DSE:9091/
in your browser.The DataStax Studio opens in the Notebooks page.
-
Select Add Notebook (the plus icon (in a square) to the left of the existing notebooks).
The Create Notebook dialog displays.
-
Add information to the fields and Create.
- Name
-
My Notebook
- Select a connection
-
image::connectionsDialog.png[]
-
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:
-
In the default cell, change the drop-down to Markdown.
-
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.
-
Select Run Cell to render the marked down text.
-
Each notebook has only one connection. Create a connection to a DSE cluster.
-