Problems with merging git changes in notebooks

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
20/100
issue の種類
ドキュメント
明瞭さ
説明が足りない
活発さ
活発
技術スタック
git, jupyter-notebook, vscode
領域
documentation

調査の方向性

The issue names no files, tests or entry points; it describes a git merge problem with notebook indentation and a suggested tutorial change. Start by reading the repository's notebook tutorial files and any existing guidance on git workflow, then agree with the maintainers on what the tutorial should say. Done means a decided approach, such as guidance or a helper note, that the maintainers accept.

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

説明

enhancement question

This is really a thing to think about for next time we do a Tutorial. But, putting it here, as we had some frictiion with this,. Although really it was much smaller than it should have been. This is also a known problem for Jupyter notebooks in github, and there are various groups with solutions out there.

Conflicts have to be resolved in a text editor and not VS Code

VS Code already led me to do that, and found it largely OK for simple conflicts. It was annoying when the next problem shows up, which is changes in indentation.

White-space Indentation

The main problem we saw was that different editors saved the raw notebooks with different indentation. Most are 1-space, but a few saved as 4-space indentation. Changes become difficult to merge when the indentation is different. It'll essentially mark as the complete block of things with indentation changes as needed to be merged by hand.

I've solved it by saving each section of the difference, and then do diffs without whitespace differences between each, and then apply the usually small change that's needed.

主要言語
Jupyter Notebook
スター
4
フォーク
11
平均マージ
6時間 57分
マージ済み PR(30日)
62

環境構築

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

はじめの一歩

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

NCAR/CLM-Tutorial のほかの issue

NCAR/CLM-Tutorial の issue をすべて見る

似ている issue

Documentation の issue をもっと見る

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

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