Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not display in jupyter lab #29

Open
purpleskyfall opened this issue Nov 26, 2022 · 1 comment
Open

Can not display in jupyter lab #29

purpleskyfall opened this issue Nov 26, 2022 · 1 comment

Comments

@purpleskyfall
Copy link

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
Copy link
Author

purpleskyfall commented Nov 26, 2022

Should I add %matplotlib inline manually?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant