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.pymongo
driver, you can use code such as this to access MongoDB from within a notebook session:
To connect to the MongoDB server:
This example uses the
SCRAM-SHA-256
default authentication mechanism. You’ll
need to change this if you are using a different mechanism. See the PyMongo
documentation
for additional authentication examples.