Connecting to Couchbase
Data Science & AI Workbench enables you to connect to a Couchbase NoSQL database from within your notebook sessions.
To do so, you’ll need to do the following to install the essential elements required to connect to a Couchbase server:
-
Download the release RPM from Couchbase to set up the Couchbase repository:
-
Install the RPM using yum:
-
Install the packages required to install the pip package:
-
Install the pip package:
Any packages you install from the command line are available during the current session only. If you want them to persist, add them to the project’s anaconda-project.yml
file. For more information, see Project configurations.
You can then use code such as this to import the modules and connect to Couchbase from within a notebook session:
Was this page helpful?