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

Submodule plots is in `__all__` but not imported in `__init__.py`

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

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

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
python
領域
api

調査の方向性

package init.py から始め、plots に対する all エントリをドキュメントに記載された import 例と比較します。import cmocean に続けて cmocean.plots.plot_gallery() を実行したときの現在の動作を確認します。ドキュメントに記載されたアクセスで AttributeError が発生しなくなれば完了です。

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

説明

Hi,

This might be deliberate but it seems that the submodule plots is not imported in the __init__.py but is included in __all__.
I can see there are some optional dependencies for some of the functions but their imports are only inside the concerned functions.

That means that if someone wants to use the plots submodule they would need to explicitly import it, which seems a bit strange when the documentation has this:

import cmocean
cmocean.plots.plot_gallery()

Which currently gives:

AttributeError: module 'cmocean' has no attribute 'plots'
主要言語
Python
スター
269
フォーク
54
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

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

matplotlib/cmocean のほかの issue

matplotlib/cmocean の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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