Problems with merging git changes in notebooks
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 20/100
- Type d'issue
- Documentation
- Clarté
- À clarifier
- Activité
- Active
- Stack technique
- git, jupyter-notebook, vscode
- Domaine
- documentation
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- Jupyter Notebook
- Étoiles
- 4
- Forks
- 11
- Merge moyen
- 6 h 57 min
- PR mergées (30 j)
- 62
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de NCAR/CLM-Tutorial
-
enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
NCAR/CLM-Tutorial#155 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Hillslope exercise doesn't workOuverte
Difficulté 3/5 1-2 jours Accessibilité débutants 55/100
NCAR/CLM-Tutorial#150 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 35/100
NCAR/CLM-Tutorial#149 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Hillslope examplesPeut-être à nouveau libre @minallah l’a pris il y a 65 jours, et aucune pull request n’est ouverte. Ouverte
NCAR/CLM-Tutorial#29 · 1 commentaire · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de NCAR/CLM-Tutorial
Issues similaires
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 85/100
facebookresearch/atlas-lean#20426 ·
Les mainteneurs répondent en général sous 1 jour
-
docs(contributing): the two things that silently block a PRPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverteavailable documentation good first issue
Difficulté 1/5 1-3 heures Accessibilité débutants 95/100
Nixitov/Riptide-Native#944 ·
Les mainteneurs répondent en général sous 1 jour
-
area: ai-assistants documentation help wanted
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
BetaBots-LLC/latticegate#17 ·
-
enhancement good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
juspay/agent-distro#203 ·
Les mainteneurs répondent en général sous 1 jour