Estou no início do curso, na atividade 6.
Logo no primeiro exemplo quando tento gerar o gráfico de barras das médias eu tenho essa mensagem de retorno:
import matplotlib.pyplot as plt
estudantes = ["João", "Maria", "José"]
notas = [8.5, 9, 6.5]
plt.bar(x=estudantes, height=notas)
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/tmp/ipython-input-890293969.py in <cell line: 0>()
----> 1 plt.bar(x=estudantes, height=notas)
...
...
/usr/local/lib/python3.12/dist-packages/matplotlib_inline/backend_inline.py in <module>
234
235
--> 236 _enable_matplotlib_integration()
237
238
/usr/local/lib/python3.12/dist-packages/matplotlib_inline/backend_inline.py in _enable_matplotlib_integration()
216 backend = matplotlib.get_backend(auto_select=False)
217 else:
--> 218 backend = matplotlib.rcParams._get("backend")
219
220 if ip and backend in ("inline", "module://matplotlib_inline.backend_inline"):
AttributeError: 'RcParams' object has no attribute '_get'