"Science" style not found on Google Colab
See original GitHub issueHey there!
Thanks for the amazing project! Really useful for upcoming submissions 😅
Though, I ran into an issue when trying it out on Google Colab. I pip
installed the style library following the instructions on the README
. I then wrote down
import matplotlib.pyplot as plt
plt.style.use(['science','ieee'])
and it gave me the following error:
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/matplotlib/style/core.py in use(style)
113 try:
--> 114 rc = rc_params_from_file(style, use_default_template=False)
115 _apply_style(rc)
5 frames
FileNotFoundError: [Errno 2] No such file or directory: 'science'
During handling of the above exception, another exception occurred:
OSError Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/matplotlib/style/core.py in use(style)
118 "{!r} not found in the style library and input is not a "
119 "valid URL or path; see `style.available` for list of "
--> 120 "available styles".format(style))
121
122
OSError: 'science' not found in the style library and input is not a valid URL or path; see `style.available` for list of available styles
Any remedies for this would be awesome!
Thanks 😃
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
matplotlib-SciencePlots package cannot run - Stack Overflow
OSError : 'science' not found in the style library and input is not a valid URL or path; see `style.available` for list of...
Read more >SciencePlots - PyPI
This repo has Matplotlib styles to format your figures for scientific papers, presentations and theses. You can find the full gallery of included...
Read more >Customizing Matplotlib: Configurations and Stylesheets
Even if you don't create your own style, the stylesheets included by default are extremely useful. The available styles are listed in plt.style.available...
Read more >Latex + matplotlib + google colab - learnsharewithdp
The above error says that the file `type1ec.sty' not found. This error goes away by installing cm-super . I installed it by executing...
Read more >How to resolve module not found error in google colab?
How to resolve module not found error in google colab? · + 1. This is in the docs, see https://colab.research.google.com/notebooks/snippets/importing_libraries.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @rish-16
Does this work?
Sure!