0

I'm trying to execute this code in a notebook:

from cloudant.client import Cloudant
client = Cloudant('yyyyyy', 'xxxxxxxx',     url='https://yyyyyy.cloudant.com',
connect=True,
auto_renew=True)
my_database = client['logs']
my_document = my_database['325f5d5699c58e3c30bd6a125901c914']
print(my_document)

But I'm getting this error:

ImportError: No module named 'cloudant'

How do I install the modulo on IBM cloud?

Phonolog
  • 6,321
  • 3
  • 36
  • 64

1 Answers1

1

You need to install the Cloudant module in your notebook. In a new cell, type:

!pip install cloudant

Note the exclamation mark.

enter image description here

xpqz
  • 3,617
  • 10
  • 16