This is a lab designed to provide practice using MongoDB with Python, using the PyMongo driver.
Educators and learners are welcome to use this lab for non-commercial purposes, under the terms of its license.
This material is a resource developed by the MongoDB for Academia program, which offers resources and support to educators and students teaching and learning with MongoDB.
The lab consists of five sections, with a total of 22 exercises:
- Connect to MongoDB & explore your data (4 exercises)
- Basic queries (5 exercises)
- More complex queries (4 exercises)
- Creating and manipulating documents (4 exercises)
- Using aggregation pipelines (5 exercises)
Each section is in a Jupyter Notebook. The lab is designed to be completed interactively in the browser in cloud-hosted Jupyter Notebooks created with Binder.
The maximum number of simultaneous users for a given Binder repo is 100. For this reason, please avoid using this lab with Binder for large classes. If you have need for more concurrent users, consider running the lab locally by cloning the repo and running on a local Jupyter server.
- The binder will start to load w/ screen below. (Repo name & URL have changed since screenshots were taken.) No action needed from your side.
Please create an Issue for any improvements, suggestions or errors in the content.
This lab makes use of the following open-source projects:
- The BinderHub deployment at mybinder.org for creating an easy way to share a custom computing environment for an educational resource. Thank you to all Binder contributors & supporters!
- binder-mongo for the template example of running MongoDB in Binder on which this lab is based. binder-mongo is licensed under the MIT License. Thank you @psychemedia!
This project is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.