0 votes
by (120 points)

Hi there!

I am using intro_to_DESI_EDR_files_colab.ipynb to familiarise myself with DESI data.
On running the first import cell, errors are reported as following.

WARNING:matplotlib:Missing colon in file 'desi.mplstyle', line 682 ('        >')

---------------------------------------------------------------------------

ValueError                                Traceback (most recent call last)

<ipython-input-10-8fac1844082e> in <cell line: 12>()

     10 import matplotlib.pyplot as plt

     11 

---> 12 plt.style.use('desi.mplstyle')

2 frames

/usr/local/lib/python3.10/dist-packages/matplotlib/cbook/__init__.py in _strip_comment(s)

    423             closing_quote_pos = s.find('"', quote_pos + 1)

    424             if closing_quote_pos < 0:

--> 425                 raise ValueError(

    426                     f"Missing closing quote in: {s!r}. If you need a double-"

    427                     'quote inside a string, use escaping: e.g. "the \" char"')

ValueError: Missing closing quote in: '          <!-- \'"` --><!-- </textarea></xmp> --></option></form><form id="query-builder-test-form" action="" accept-charset="UTF-8" method="get">\n'. If you need a double-quote inside a string, use escaping: e.g. "the " char"


What I did was just executing the previous cells. I ensured current working directory was /content where desi.mplstyle was downloaded to.

I would appreciate it if anyone could help me out!
 

1 Answer

0 votes
by (960 points)

This should be reported as a bug at https://github.com/desihub/tutorials/issues.

Please be sure to specify which import cell you mean, because there are more than one, and the first one doesn't actually import matplotlib.

Please also specify which version of matplotlib is installed in your environment.

Welcome to DESI Data Q&A, where you can ask questions and receive answers about Dark Energy Spectroscopic Instrument (DESI) data from other members of the community.
...