Creating a simple notebook in DataStax Studio

A notebook requires a name and a connection to a DSE cluster.

Procedure

  1. Open the Studio server by entering http:/URI_running_DSE:9091/ in your web browser.

    studio launched

    DataStax Studio opens to the Notebooks page.

  2. Click the plus (+) to add a notebook.

    The Create Notebook dialog displays.

  3. Enter the notebook name.

  4. Select an existing connection or click + Add New Connection.

    The connection auto-fills if there is only a single connection.

  5. For a new connection, enter the connection information:

    Name

    Name of the connection from the notebook to a DSE cluster.

    Host/IP (comma delimited)

    The host names or IP addresses of the DSE cluster to connect to. All hosts must be in a single datacenter. Default: localhost.

    Username

    Optional: DSE username for logging in.

    Password

    Optional: DSE password for logging in.

    Port

    IP connection port. Default: 9042.

    For example, to connect to a single-node DSE cluster on the local host using the default port:
    Name

    My First Connection

    Host/IP

    127.0.0.1

    Port

    9091

  6. Click Test to verify the connection works.

  7. Optional: To configure a secure encrypted connection, select the Use SSL check box.

    The Truststore and Keystore fields display. See Using SSL connections in DataStax Studio.

  8. Click Save.

    A connection is created from the notebook to the DSE cluster.

  9. Select Create.

    The notebook displays with a single empty (default) cell in CQL edit mode. This can be changed to Gremlin, SparkSQL, or Markdown.

  10. The following steps show a Markdown example:

  11. In the default cell, change the drop-down to Markdown.

  12. Add some verbiage to the default cell:

    My Notebook
    -----------
    Schema-aware content-assist improves productivity. Studio inspects your schema to make smart suggestions based on your data model. When you work with properties of a person, then you'll see suggestions for name and date_of_birth.
  13. Select Run Cell to render the marked down text.

    myNotebook
  14. Create another Markdown cell.

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com