Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Colab tutorial reports error on desi.mplstyle

オープン
#99 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
jupyter-notebook, matplotlib, python
領域
documentation

調査の方向性

intro_to_DESI_EDR_files_colab.ipynb を開いて 6 番目の import セルを調べ、次にダウンロードされた desi.mplstyle の 682 行目付近を確認して、それがどこから来たものか検証します。Google Colab で失敗を再現します。plt.style.use('desi.mplstyle') で、報告されている warning や ValueError が発生せずに style ファイルを読み込めれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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"
主要言語
Jupyter Notebook
スター
62
フォーク
25
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

desihub/tutorials のほかの issue

desihub/tutorials の issue をすべて見る

似ている issue

Documentation の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。