To check the versions of multiple libraries in bulk from a Jupyter notebook
To check the versions of multiple libraries in bulk from a Jupyter notebook, you can use a few handy Python techniques. Here are the best ways to do it:
✅ Method 1: Use pip inside notebook
You can list all installed packages and their versions:
✅ Method 2: Print versions of specific libraries manually
If you just want to know the versions of specific libraries (e.g., pandas, numpy, sklearn, streamlit, etc.):
Add more lines as needed for other libraries like joblib, xgboost, lightgbm, etc.
✅ Method 3: Use a helper function for many libraries
If you have a long list of libraries, try this:
No comments