Colab tutorial reports error on desi.mplstyle
- Dominant language
- Jupyter Notebook
- Stars
- 61
- Forks
- 25
- PR merge metrics
- No merged PRs in 30d
Description
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)
in ()
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: ' \n'. If you need a double-quote inside a string, use escaping: e.g. "the " char"
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.