numenta / NAB

The Numenta Anomaly Benchmark
GNU Affero General Public License v3.0
1.93k stars 869 forks source link

Cannot use seaborn style with matplotlib #407

Open Layla-Aphrodite opened 6 months ago

Layla-Aphrodite commented 6 months ago

When I try to use the seaborn style the same way as example showed on the book Python Crash Course:

import matplotlib.pyplot as plt

input_values  =  [1,2,3,4,5]
squares = [1,4,9,16,25]

plt.style.use('seaborn')
fig, ax = plt.subplots()
---snip---

it blew up with the following warning: OSError: 'seaborn' is not a valid package style, path of style file, URL of style file, or library style name (library styles are listed in style.available)

And when I try to see the full list of available styles running the following line in terminal, the output is: -bash: import: command not found. >>> import matplotlib.pyplot as plt

Does anyone know the reason why?