Using sns.set_theme()

In my personal Jupyter notebook, I usally get an error when I use sns.set_theme() even when I copy the code directly from Dataquest. The error I get when I use the set_theme() is…
AttributeError: module ‘seaborn’ has no attribute ‘set_theme’
Please how do I use this function without getting this error?

1 Like

Hi @bonaventureosuide,

Welcome to the Community!

It seems that you have an old version of seaborn (earlier than 0.11.0). To fix the issue, just update seaborn:

pip install seaborn --upgrade
1 Like