René's URL Explorer Experiment


Title: docs(cli): working with notebooks in Git by jamesbhobbs · Pull Request #615 · deepnote/deepnote · GitHub

Open Graph Title: docs(cli): working with notebooks in Git by jamesbhobbs · Pull Request #615 · deepnote/deepnote

X Title: docs(cli): working with notebooks in Git by jamesbhobbs · Pull Request #615 · deepnote/deepnote

Description: Summary Adds docs/deepnote-cli-git.md, a guide to keeping .deepnote notebooks in Git with the CLI commands that already exist. None of these workflows were documented: Keep outputs out of source files: .deepnote files hold the code and snapshots/ hold outputs, with guidance on when to commit or ignore snapshots. Readable git diff / git log -p / git show: a .gitattributes entry plus a textconv driver using deepnote cat, so changes show up as block-level code diffs. Structural summaries: git difftool -y -x "deepnote diff --content". Pre-commit checks: deepnote validate (schema, exit 2) and deepnote lint (syntax errors and missing integrations are errors with exit 1; unused/redefined variables and empty inputs are warnings), set up as a pre-commit framework hook or a plain git hook. Pull-request review: a GitHub Actions job that writes a block-level diff of every changed notebook to the job summary and lints them. It needs no secrets, so it's safe on fork PRs. Tested locally (with published @deepnote/cli@0.10.0 where it matters) The textconv driver in git diff and git log -p, and the difftool, on a real example notebook. lint on a file with a syntax error (exit 1), validate on an invalid file (exit 2). The plain git hook blocks a commit containing a syntax error. The PR summary script logic, in a local repo with a modified notebook and a new one. Not tested: the Actions workflow itself, or the pre-commit framework config. Not mentioned on purpose: lint doesn't report undefined variables With CLI 0.10.0, a block that reads undefined_thing passes lint with no issues. deepnote dag vars shows that the analyzer drops undefined names from a block's used variables, so the undefined-variable rule never fires. The circular-dependency check also didn't fire for a = b + 1 / b = a + 1. The README lists both checks. This page only claims what I could reproduce. Both are worth a separate bug fix. Dependencies Links to /docs/deepnote-cli-ci, which is added in #611. Needs a sidebar entry in deepnote-internal, which will be a separate PR. Docs only. Prettier and cspell pass. 🤖 Generated with Claude Code Summary by CodeRabbit Documentation Added guidance for managing Deepnote notebooks with Git, including snapshot handling, structural diffs, validation, linting, commit hooks, and pull-request workflows. Added difftool and textconv to the documentation dictionary.

Open Graph Description: Summary Adds docs/deepnote-cli-git.md, a guide to keeping .deepnote notebooks in Git with the CLI commands that already exist. None of these workflows were documented: Keep outputs out of source f...

X Description: Summary Adds docs/deepnote-cli-git.md, a guide to keeping .deepnote notebooks in Git with the CLI commands that already exist. None of these workflows were documented: Keep outputs out of source f...

Opengraph URL: https://github.com/deepnote/deepnote/pull/615

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:bc95ae22-38b5-b8b8-cd91-31371e0651ad
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD6F0:169E62:11CF1E7:172EA70:6AED648F
html-safe-nonce722dc354acda21d3a2a780230855b57628d973fbbadfa517adfecf8fa0824779
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENkYwOjE2OUU2MjoxMUNGMUU3OjE3MkVBNzA6NkFFRDY0OEYiLCJ2aXNpdG9yX2lkIjoiMTcxNjQ1MDQ4MTU0MzE0NDU5MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacedd923c2f960a09711c980cb88cbf9e64a439446638b6d3562e0617baf379f0f
hovercard-subject-tagpull_request:5160218252
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/deepnote/deepnote/pull/615/files
twitter:imagehttps://avatars.githubusercontent.com/u/15235276?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/15235276?s=400&v=4
og:image:altSummary Adds docs/deepnote-cli-git.md, a guide to keeping .deepnote notebooks in Git with the CLI commands that already exist. None of these workflows were documented: Keep outputs out of source f...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None56fb42677ae87ed3e64410323d67980aa65d0485568a7858f874e7edfc6d1c11
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/deepnote/deepnote git https://github.com/deepnote/deepnote.git
octolytics-dimension-user_id45339858
octolytics-dimension-user_logindeepnote
octolytics-dimension-repository_id1066509034
octolytics-dimension-repository_nwodeepnote/deepnote
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1066509034
octolytics-dimension-repository_network_root_nwodeepnote/deepnote
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9c9a37e2423ed382cf39f70b5aa4b4858b40a3b0
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/deepnote/deepnote/pull/615/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeepnote%2Fdeepnote%2Fpull%2F615%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeepnote%2Fdeepnote%2Fpull%2F615%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=deepnote%2Fdeepnote
Reloadhttps://github.com/deepnote/deepnote/pull/615/files
Reloadhttps://github.com/deepnote/deepnote/pull/615/files
Reloadhttps://github.com/deepnote/deepnote/pull/615/files
deepnotehttps://github.com/deepnote
deepnotehttps://github.com/deepnote/deepnote
Codehttps://github.com/deepnote/deepnote
Issues13 (13)https://github.com/deepnote/deepnote/issues
Pull requests22 (22)https://github.com/deepnote/deepnote/pulls
Discussionshttps://github.com/deepnote/deepnote/discussions
Actionshttps://github.com/deepnote/deepnote/actions
Security and qualityhttps://github.com/deepnote/deepnote/security
Insightshttps://github.com/deepnote/deepnote/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fdeepnote%2Fdeepnote%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fdeepnote%2Fdeepnote%2Fissues%2Fnew%2Fchoose
jamesbhobbshttps://github.com/jamesbhobbs
mainhttps://github.com/deepnote/deepnote/tree/main
docs/notebooks-in-githttps://github.com/deepnote/deepnote/tree/docs/notebooks-in-git
Conversation 6 https://github.com/deepnote/deepnote/pull/615
Commits 1 https://github.com/deepnote/deepnote/pull/615/commits
Checks 21 https://github.com/deepnote/deepnote/pull/615/checks
Files changed https://github.com/deepnote/deepnote/pull/615/files
Please reload this pagehttps://github.com/deepnote/deepnote/pull/615/files
docs(cli): working with notebooks in Git https://github.com/deepnote/deepnote/pull/615/files#top
Show all changes 1 commit https://github.com/deepnote/deepnote/pull/615/files
6a16047 docs(cli): add a guide to working with notebooks in Git jamesbhobbs Nov 4, 2026 https://github.com/deepnote/deepnote/pull/615/commits/6a1604746a1baec167f79730dbdc579c0ff77966
Clear filters https://github.com/deepnote/deepnote/pull/615/files
Please reload this pagehttps://github.com/deepnote/deepnote/pull/615/files
Please reload this pagehttps://github.com/deepnote/deepnote/pull/615/files
docs-dictionary.txt https://github.com/deepnote/deepnote/pull/615/files#diff-c96df37ea86990896f0d35a689d39b33127421d7edae0369efa3de3e0284158a
deepnote-cli-git.md https://github.com/deepnote/deepnote/pull/615/files#diff-924f8695dc141dfa038420bed34d1bb97bb168565386753f386c6301e2842d44
https://github.com/deepnote/deepnote/blob/main/.github/CODEOWNERS#L2
docs-dictionary.txthttps://github.com/deepnote/deepnote/pull/615/files#diff-c96df37ea86990896f0d35a689d39b33127421d7edae0369efa3de3e0284158a
View file https://github.com/deepnote/deepnote/blob/6a1604746a1baec167f79730dbdc579c0ff77966/docs-dictionary.txt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/deepnote/deepnote/pull/615/{{ revealButtonHref }}
https://github.com/deepnote/deepnote/pull/615/files#diff-c96df37ea86990896f0d35a689d39b33127421d7edae0369efa3de3e0284158a
https://github.com/deepnote/deepnote/blob/main/.github/CODEOWNERS#L2
docs/deepnote-cli-git.mdhttps://github.com/deepnote/deepnote/pull/615/files#diff-924f8695dc141dfa038420bed34d1bb97bb168565386753f386c6301e2842d44
View file https://github.com/deepnote/deepnote/blob/6a1604746a1baec167f79730dbdc579c0ff77966/docs/deepnote-cli-git.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/deepnote/deepnote/pull/615/{{ revealButtonHref }}
coderabbitaihttps://github.com/apps/coderabbitai
Nov 4, 2026https://github.com/deepnote/deepnote/pull/615/files#r4472294109
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
raw.githubusercontent.comhttps://raw.githubusercontent.com/deepnote/deepnote/6a1604746a1baec167f79730dbdc579c0ff77966/packages/cli/src/commands/cat.ts
Please reload this pagehttps://github.com/deepnote/deepnote/pull/615/files
coderabbitaihttps://github.com/apps/coderabbitai
Nov 4, 2026https://github.com/deepnote/deepnote/pull/615/files#r4472294120
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
git-scm.comhttps://git-scm.com/docs/git-diff?utm_source=openai
Please reload this pagehttps://github.com/deepnote/deepnote/pull/615/files
Please reload this pagehttps://github.com/deepnote/deepnote/pull/615/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.