Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Seaborn 'set_theme' raises an attribute error [duplicate]

I have a problem running set_theme() in Jupyter notebook: it raises the error Module 'seaborn' has no attribute 'set_theme'. This is the content of the cell raising the error:

import seaborn as sns
sns.set_theme()

I tried upgrading seaborn, as well as reinstalling it with pip3 install seaborn==0.11.0 without any success.

Please help me fix this issue.

like image 614
dhru Avatar asked Oct 27 '25 15:10

dhru


1 Answers

I was having the same problem until I made a new Conda environment (https://uoa-eresearch.github.io/eresearch-cookbook/recipe/2014/11/20/conda/) and did pip3 install seaborn==0.11.0 in this environment.

like image 61
Ena Avatar answered Oct 30 '25 06:10

Ena