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

[Feature Requests] What about making `nbdev_separate` to automatically separate imports and codes?

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
jupyter-notebook, python
領域
tooling

調査の方向性

リンクされた getting-started 警告と nbdev_docs のエラーパスから始めます。imports と計算が混在するセルがどこで検出されるかを特定し、提案された nbdev_separate コマンドによって元のセルの上に imports 用の新しいセルが作成され、計算はそのまま残ることを確認します。

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

説明

bug

https://nbdev.fast.ai/getting_started.html#q-what-is-the-warning-found-a-cell-containing-mix-of-imports-and-computations.-please-use-separate-cells

This is a strong limitations to the usability of nbdev.

Every time I try to export docs, I spend hours cleaning up my code to sepearte imports and codes, reading tedious and annoying error messages from nbdev_docs.

We definitely have the ability to do this automatically. (since nbdev can produce warning messages about the situation)

Why not provide a simple tool like nbdev_separate, to automatically detect import lines in a cell and reformat them to a new cell above the original cell.

主要言語
Jupyter Notebook
スター
5.3k
フォーク
516
平均マージ
1日 3時間
マージ済み PR(30日)
2

環境構築

はじめの一歩

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

AnswerDotAI/nbdev のほかの issue

AnswerDotAI/nbdev の issue をすべて見る

似ている issue

DevTools の issue をもっと見る

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

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