LNCT University Students: Teamwork on a Shared AI Notebook Without Breaking Each Other's Work

LNCT University Students: Teamwork on a Shared AI Notebook Without Breaking Each Other’s Work

Facebook
Twitter
LinkedIn
WhatsApp
Email

The safest way to share an AI notebook is to stop sharing one file. Give each person a separate, clearly named notebook on their own Git branch, keep shared logic in plain .py files, and merge only after a teammate has reviewed the change. This article gives you a naming scheme, a branch-and-review cheat sheet, a merge checklist and a 14-day plan for a team of three or four.

Why shared notebooks break and what it costs an AI team

A Jupyter notebook is a single JSON file. It stores your code, your outputs, execution counts, and sometimes embedded images and metadata. When two people edit the same notebook, even a tiny change like re-running one cell rewrites large parts of that file. Git then sees conflicts in places neither person edited on purpose.

The usual failure patterns in student AI teams are predictable:

  • Silent overwrite: two people download the same .ipynb, edit separately, and the last one uploaded wins.
  • Cell-order drift: someone inserts a cell at the top, and the notebook only runs correctly in the order it was written, not top to bottom.
  • Hidden state: a variable defined in a deleted cell keeps working in a live kernel, so the notebook runs for its author and fails for everyone else.
  • Data drift: one person cleans the dataset in place, and everyone else’s results change without warning.
  • Unreproducible metrics: a score appears in a report but nobody can recreate it, because the random seed and library versions were never recorded.

The protocol below addresses each of these with a small number of habits rather than heavy tooling.

The ground rules: one repository, one owner per file

  1. One repository per team. Host it on GitHub, GitLab or any Git service the whole team can access. Add every member as a collaborator on day one.
  2. One owner per notebook. A notebook has exactly one person who edits it. Others read it, comment, or copy ideas into their own.
  3. Shared code lives in .py files. Functions for loading data, cleaning, metrics and plotting go into a src/ folder. Notebooks import them. Plain text files merge cleanly; notebooks do not.
  4. Raw data is read-only. Never edit files in data/raw/. Write cleaned versions to data/processed/ with a script that anyone can re-run.
  5. The main branch always runs. If the notebook on main does not run top to bottom on a fresh kernel, it is broken and fixing it is the top priority.

Free 2-Week CareerSwami Internship

Online, 14 days, with a free offer letter and a free completion certificate once you finish the work. Check with your college that it fits your requirement before you enrol.

Apply for the free internship

Notebook naming convention for a team AI project

A good name tells a teammate the order, the purpose and the owner before they open the file. Use this pattern:

NN_stage_topic_initials_vN.ipynb
  • NN: two-digit sequence number (01, 02, 03) showing pipeline order.
  • stage: one of eda, clean, feat, model, eval, report.
  • topic: short lowercase description with hyphens.
  • initials: the owner, such as ak or rs.
  • vN: bump only for a major rewrite, not for every small edit. Git history handles small edits.
Illustrative file name What it tells you
01_eda_review-lengths_ak_v1.ipynb Exploratory analysis, owned by AK, first version
02_clean_text-normalise_rs_v1.ipynb Cleaning stage, owned by RS
03_model_tfidf-baseline_pm_v2.ipynb Baseline model, PM’s second major version
04_eval_error-analysis_ak_v1.ipynb Evaluation notebook that reads saved predictions

Avoid names like final, final2, new or copy of project. They stop meaning anything within a day.

Recommended folder structure for a shared AI repository

project/
  README.md
  requirements.txt
  data/
    raw/          (read-only, not edited)
    processed/    (generated by scripts)
  notebooks/
    01_eda_...ipynb
    02_clean_...ipynb
  src/
    data.py
    features.py
    metrics.py
  outputs/
    figures/
    predictions/
  .gitignore

Put large data files in .gitignore and share them through a drive link recorded in the README, with a note on the exact file name and date downloaded. Pin library versions in requirements.txt so everyone’s results come from the same environment.

Branch-and-review cheat sheet for student AI teams

Keep branching simple: one stable branch, and short-lived branches for each piece of work.

Step Command or action Rule of thumb
1. Update git checkout main then git pull Always start from the latest main
2. Branch git checkout -b ak/eda-review-lengths Name: initials/short-task
3. Work Edit only your own notebook and any agreed src file One task per branch
4. Clean outputs Clear large outputs, restart kernel, run all Must run top to bottom
5. Commit git add specific files, git commit -m "eda: add length histogram" Small commits with a stage prefix
6. Sync git fetch then git merge origin/main into your branch Resolve conflicts on your branch, not on main
7. Push git push -u origin ak/eda-review-lengths Push daily so work is never only on your laptop
8. Pull request Open a PR with a three-line description Assign one reviewer
9. Review Reviewer pulls the branch and runs the notebook Approve only after a clean run
10. Merge Author merges after approval, then deletes the branch Never merge your own unreviewed work

Branch naming patterns

  • ak/eda-review-lengths for exploration
  • rs/fix-missing-values for a bug fix
  • pm/model-logreg-baseline for a modelling task
  • team/readme-update for shared documentation

Merge etiquette: what to do before, during and after a pull request

Before you open the pull request

  • Restart the kernel and run all cells from the top. Fix anything that fails.
  • Remove debug cells, stray print statements and commented-out experiments.
  • Set a random seed and write it in the first code cell.
  • Write a short markdown cell at the top: goal, input files, output files, key result.
  • Strip heavy outputs such as long tables or large images if they bloat the file. Tools like nbstripout can automate this, but agree as a team before enabling it.

When you review someone else’s pull request

  • Pull the branch and run it yourself; reading the diff of a notebook is not enough.
  • Comment on the change, not the person. “This split leaks test data into training” is useful; “this is wrong” is not.
  • Separate must-fix items from suggestions.
  • Respond within a day, since a waiting review blocks teammates.

When a merge conflict appears in a notebook

  1. Do not edit the JSON by hand in a panic.
  2. Keep a copy of both versions under temporary names.
  3. Accept one full version, then copy the other person’s cells across manually in Jupyter.
  4. Restart, run all, and confirm results before committing.
  5. Tell the other author what you did so nothing is silently dropped.

Pull request review checklist for an AI notebook

Check Question the reviewer asks Pass?
Runs clean Does it run top to bottom on a fresh kernel without errors?
Paths Are file paths relative, with no personal drive letters or usernames?
Seed Is the random seed set and stated?
Data leakage Is the train/test split done before any fitting or scaling?
Raw data Is raw data untouched?
Metrics Is the metric appropriate (for example F1 rather than accuracy on imbalanced classes)?
Reuse Is repeated logic moved into src/ rather than copied?
Documentation Does the top cell explain purpose, inputs and outputs?
Secrets Are API keys, passwords and personal data absent?
Size Is the file free of huge outputs or embedded data?

Worked example: three students building a sentiment classifier

This scenario is illustrative. No code was run to produce it.

Anika, Rohit and Priya are building a movie-review sentiment classifier. They create one repository and agree on ownership: Anika owns exploration and evaluation, Rohit owns cleaning, Priya owns modelling.

  1. Setup. Priya creates the repo, adds a README, .gitignore and requirements.txt, and invites the others. The dataset link and download date go in the README.
  2. Parallel work. Anika branches ak/eda-review-lengths; Rohit branches rs/clean-text-normalise. Each edits only their own notebook.
  3. Shared function. Both need a function to load the data. Rohit writes it in src/data.py and merges that small change first. Anika pulls main into her branch and imports it.
  4. Review. Priya reviews Rohit’s pull request. She pulls the branch, restarts and runs all, and notices the cleaning step lowercases text after the test split in one place. She flags it. Rohit fixes it and she approves.
  5. Conflict. Priya and Anika both touched src/metrics.py. Because it is plain text, Git shows a normal conflict. Priya resolves it on her branch, runs her notebook again, then pushes.
  6. Handover. Cleaned data is written to data/processed/ by a script. Priya’s model notebook reads from there, and Anika’s evaluation notebook reads saved predictions from outputs/predictions/.

No one overwrote anyone else, and every result can be recreated by cloning the repo and running the notebooks in numbered order.

Shared cloud notebooks versus Git: choosing the right tool

Option Good for Risk
Git with a hosted repository Parallel work, history, review Notebook merge conflicts if two people edit one file
Real-time shared notebook in the cloud Pair sessions, quick demos Overwritten cells, hidden kernel state, weak history
Shared drive folder of copies Sharing datasets and final PDFs Version confusion; not suitable for code

A sensible mix: Git for the real work, a live session only when two people are pairing and one is typing, and a drive folder for large data and the final report.

LNCT University students: keeping team AI work clean and verifiable

LNCT University describes itself on its About page as a private university in Bhopal and central India. Its academic calendar page lists a combined calendar PDF for B.Tech, BCA, BBA, B.Com, Diploma, MCA and MBA III-semester for session 2026-27, and a separate one for B.Tech VII semester. Because calendars are issued by programme group, your team members may be in different semesters with different busy periods. Agree your review days around the calendar your own programme follows, and check the PDF for the current version, since the file is a scanned image.

The same page links a promotion scheme PDF for BBA, BCA, B.Com and B.Tech CSE-AIML students admitted from the 2023 batch onwards, and the site has Scheme and Syllabus pages. The University Ordinance page publishes ordinances and school-wise documents, including a School of Computer Science and Technology table. Whether any of these documents says how team projects, internships or online work are assessed has not been confirmed here, so do not assume your notebook repository, or an online internship, counts toward anything until your department says so.

One more point: LNCT Group also runs separate colleges, such as the MBA colleges described on the LNCT college site, which are affiliated to Barkatullah University. Their rules differ from the university’s, so use only documents that apply to your own institution.

Five verification steps for LNCTU teams before relying on shared project work

  1. Open the Scheme and Syllabus page and find the PDF for your programme and admission batch; note any project, mini-project or internship component.
  2. Check the University Ordinance page for documents under your school and look for anything on project work, training or academic integrity.
  3. Email your department coordinator or faculty mentor: “Does a team project need individual contribution records, and is a Git commit history acceptable as evidence?”
  4. Ask in writing whether group work submitted for evaluation must show who wrote which part, and in what format.
  5. Confirm which academic calendar PDF applies to your semester, so your team’s deadlines avoid exam weeks.

A 14-day plan for a team using the shared notebook protocol

This plan suits a short sprint, such as the free two-week online internship from CareerSwami, where a small AI project has to be organised quickly. Adjust it to the task you are given.

Days Team goal Protocol focus
1-2 Agree the problem, dataset and owners Create repo, folders, README, requirements, naming rules
3-4 Exploration and cleaning First branches and pull requests; move shared code into src/
5-6 Baseline model Set seeds; record the baseline metric in the README
7 Mid-point check Everyone clones fresh and runs all notebooks in order
8-10 Improve the model One experiment per branch; log results in a table
11-12 Evaluation and error analysis Evaluation notebook reads saved predictions only
13 Freeze No new features; fix bugs, tidy notebooks, update README
14 Final run and write-up Tag the final commit; each member writes their own contribution note

The free offer letter and the completion certificate after successful completion are the confirmed outcomes of that internship. A clean repository with a visible commit history is useful evidence of what you actually did, which you can show in interviews.

Experiment log template for comparing models without confusion

Keep a simple table in the README or a shared experiments.md. Each row is one run, added by the person who ran it.

Date Owner Branch Model and settings Seed Validation F1 Notes
Day 6 (illustrative) PM pm/model-logreg-baseline TF-IDF + logistic regression, default C 42 0.00 (placeholder) Baseline; replace with real value

The numbers in this row are placeholders, not results. Replace them with your own measured values.

Frequently Asked Questions

Can two people edit the same Jupyter notebook at the same time?

It is possible in some live cloud tools, but risky for graded or portfolio work because of overwritten cells and shared kernel state. With Git, assign one owner per notebook and let others contribute through pull requests or their own notebooks.

Should we commit notebook outputs to Git?

Prefer clearing bulky outputs before committing, since they inflate diffs and cause conflicts. Keep key figures by saving them to outputs/figures/ and referencing them in the README. Decide this as a team once, and apply it consistently.

How do we handle a dataset that is too large for GitHub?

Keep it out of the repository using .gitignore, store it on a shared drive, and record the link, file name and download date in the README. A small script that downloads or prepares it helps everyone get identical data.

What is the minimum Git knowledge a team needs for this protocol?

Cloning, branching, committing, pushing, pulling and opening a pull request. The ten steps in the cheat sheet cover these. Practise them together on a dummy repository before starting real work.

How can we show our individual contribution if the project is a group submission?

Use commit history, pull request records and a short personal contribution note. Whether your department accepts these as evidence is a question for your faculty mentor, so ask in writing.

What if a teammate stops responding and their branch is half-finished?

Message them once with a deadline. If there is no reply, a teammate can create a new branch from theirs, finish the task, and note the handover in the pull request. Tell your mentor if it affects the timeline.

Why move code from notebooks into .py files?

Plain text files produce readable diffs and merge cleanly. Functions in src/ can be reviewed line by line, reused by every notebook and tested separately, which cuts duplicated logic and conflicting versions.

Does this protocol suit a short two-week online internship project?

Yes. The setup takes about two days, and the rest of the time goes to the work itself. The 14-day plan above shows how to pace it, and the habits carry over to any later team project.

Related Artificial Intelligence guides

Ready to put this into practice?

Join the free two-week CareerSwami online internship in Artificial Intelligence. The internship, the offer letter and the completion certificate are free.

Start your free 2-week internship

Web Stories

Scroll to Top