Insights Azure ML Seaborn Module Not Found

Azure ML Seaborn Module Not Found

I was doing some testing in Azure Machine Learning Notebooks and ran into a problem where the module I was looking to use was not working properly. The error I recieved was “ModuleNotFoundError: No module named ‘seaborn’”. The code I used which resulted in this was:

%matplotlib inline
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns 
sns.set(style="darkgrid")

This was relatively easy to correct by opening a terminal and installing the module, if you know how to do it in the Azure ML interface. The terminal button is on the right side of the interface:

To fix the error and allow seaborn to install properly, run the following in the terminal “python -m pip install seaborn”:

After this, the module loaded correctly and I was off to the races.

Happy coding!