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

Colab tutorial reports error on desi.mplstyle #99

Open
Safiier opened this issue May 17, 2024 · 0 comments
Open

Colab tutorial reports error on desi.mplstyle #99

Safiier opened this issue May 17, 2024 · 0 comments

Comments

@Safiier
Copy link

Safiier commented May 17, 2024

Hi there!

I am using intro_to_DESI_EDR_files_colab.ipynb on google colab to familiarise myself with DESI data.
On running the 6th import cell, errors are reported.
What I did was just executing the previous cells. I ensured current working directory was /content where desi.mplstyle was downloaded to. Matplotlib is in version 3.7.1

The cell is

import os
import numpy as np

from astropy.io import fits
from astropy.table import Table
from astropy.convolution import convolve, Gaussian1DKernel

import matplotlib
import matplotlib.pyplot as plt

plt.style.use('desi.mplstyle')

Error report is 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"
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