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

FileNotFoundError: [Errno 2] No such file or directory: 'ipynb' #9

Closed
baogiadoan opened this issue Mar 5, 2024 · 7 comments
Closed

Comments

@baogiadoan
Copy link

I followed the installation instruction. However, when I use:
plt.style.use('ipynb')

then I faced with the error:

FileNotFoundError: [Errno 2] No such file or directory: 'ipynb'

Here is the available style when I use command plt.style.available:

['Solarize_Light2',
 '_classic_test_patch',
 '_mpl-gallery',
 '_mpl-gallery-nogrid',
 'bmh',
 'classic',
 'dark_background',
 'fast',
 'fivethirtyeight',
 'ggplot',
 'grayscale',
 'seaborn-v0_8',
 'seaborn-v0_8-bright',
 'seaborn-v0_8-colorblind',
 'seaborn-v0_8-dark',
 'seaborn-v0_8-dark-palette',
 'seaborn-v0_8-darkgrid',
 'seaborn-v0_8-deep',
 'seaborn-v0_8-muted',
 'seaborn-v0_8-notebook',
 'seaborn-v0_8-paper',
 'seaborn-v0_8-pastel',
 'seaborn-v0_8-poster',
 'seaborn-v0_8-talk',
 'seaborn-v0_8-ticks',
 'seaborn-v0_8-white',
 'seaborn-v0_8-whitegrid',
 'tableau-colorblind10']

I use conda to manage virtual envs and the env I installed LovelyPlots is the same as for the kernel that I run my Jupyter.

@killiansheriff
Copy link
Owner

Hi -- thanks for noticing this!

Can you try adding import lovelyplots on top of your script? There might have been a matplotlib update that now requires to import the module.

@baogiadoan
Copy link
Author

thanks for your quick response, after import LovelyPlots I still faced the same error

@killiansheriff
Copy link
Owner

killiansheriff commented Mar 5, 2024

Can you try installing the latest git commit with pip install --upgrade git+https://github.com/killiansheriff/LovelyPlots.git?

And then run:

import lovelyplots 
import matplotlib.pyplot as plt 

plt.style.use('ipynb')

@baogiadoan
Copy link
Author

baogiadoan commented Mar 5, 2024 via email

@baogiadoan
Copy link
Author

can you replicate the issue at your end @killiansheriff ?

@killiansheriff
Copy link
Owner

Should be fixed in the latest release! Let me know if it works fine now. Thanks!

@baogiadoan
Copy link
Author

yes, I can confirm it is working now, thanks for you prompt action.

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

2 participants