Using data connection snippets

As a data scientist, you can connect your project to data with a data connection snippet.

  1. Select Deployed Experiences in the left navigation pane on the Anywhere Cloud Console.

    The list of deployed experiences is displayed.

  2. Search for the required Cloudera AI instance.

    Ensure that the status of the instance is Deployed.

  3. Click on the URL under the UI URL column.

    The authentication window for the Cloudera AI UI opens.

  4. Provide the required credentials and log in to the Cloudera AI UI.

    The Cloudera AI home page is displayed.

  5. Click Project in the left navigation pane.
  6. Select New Project.
  7. Enter the project name.
  8. Start a new session.
  9. In the Connection Code Snippet pane, select the data connection to use.
    Figure 1. Data Connection to use
  10. Select Copy Code.
  11. Paste the snippet into your code.
    Figure 2. Pasting snippet into your code
  12. Enter the data connection name.
  13. Uncomment and edit the SQL query.
  14. Select Run.
The results of the SQL query display in the command window.
When you have finished exploring the available data sources, you can select Don’t show me this again for this project on the Connection Code Snippet pane, and it will no longer display when you start a session in the project.