lgienapp / aquarel

Styling matplotlib made easy
MIT License
725 stars 20 forks source link

Can not display in jupyter lab #29

Open purpleskyfall opened 1 year ago

purpleskyfall commented 1 year ago

I'm trying aquarel in jupyter lab, but it's doesn't work sometimes (can't display in jupyter lab page).

You may try this code:

import numpy as np
import matplotlib.pyplot as plt
from aquarel import load_theme

x = np.linspace(0, 10, 1000)
sinx = np.sin(x)
cosx = np.cos(x)

with load_theme('boxy_light'):
    plt.subplot(2, 1, 1)
    plt.plot(x, sinx)
    plt.plot(x, cosx)

    plt.subplot(2, 1, 2)
    plt.plot(x, cosx)
    plt.show()

My environment:

python: 3.10.8
aquarel: 0.0.5
matplotlib: 3.5.2
purpleskyfall commented 1 year ago

Should I add %matplotlib inline manually?

chris-aeviator commented 2 months ago

@purpleskyfall this at least works.