Reputation: 29
fig, axes = plt.subplots(2,figsize=(15,10))
sns.lineplot(agg_cases_death.index, agg_cases_death.cases, ax=axes[0]).set_title('Cases')
sns.lineplot(agg_cases_death.index, agg_cases_death.deaths, ax=axes[1]).set_title('Deaths')
plt.show()
The above used to work perfectly on jupyter notebook on my desktop but while I ran the same code in AWS Sagemaker Jupyter notebook it produces error. It says the module 'seaborn' has no attribute lineplot.
Is there something we need to set up while using aws sagemaker jupyter?
Upvotes: 1
Views: 1569
Reputation: 1324
AWS Sagemaker is, famously, utterly shit at this.
Try sns.__version__
and you will find you are running an old seaborn version.
You may be able to resolve this with:
del sns
!conda update seaborn --yes
import seaborn as sns
sns.__version__
in separate cells.
Seaborn is part of the default conda setup on a sagemaker instance, so you can't use a pip install to fix the version issue.
Upvotes: 2