nbdime
nbstripout
nbdime | nbstripout | |
---|---|---|
7 | 4 | |
2,595 | 1,143 | |
0.2% | - | |
8.7 | 7.6 | |
about 2 months ago | about 1 month ago | |
TypeScript | Python | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
nbdime
-
Stuff I Learned during Hanukkah of Data 2023
I remember hearing about nbdime and thinking it sounded useful, but I've never really needed it since I rarely use Jupyter in the first place. But then I made some changes to my Hanukkah of Data 2023 notebook to work with the follow-up "speed run" challenge (a new dataset and slightly tweaked clues), and the native Git diff was too noisy to be useful. nbdime came to the rescue! Here are the changes I had to make for days 2 and 3 during the speed run:
- The Jupyter+Git problem is now solved
-
Ask HN: Are there any good Diff tools for Jupyter Notebooks?
[5] ReviewNB for reviewing & diff'ing notebook PRs / Commits on GitHub
Disclaimer: While I’m the author of last two (GitPlus & ReviewNB), I’ve represented the overall landscape in an unbiased way. I've been working on this specific problem for 3+ years & regularly talk to teams who use GitHub with notebooks.
[1] https://nbdime.readthedocs.io
- Notebooks suck: change my mind
-
What if Git worked with Programming Languages?
Interesting they mentioned Jupyter Notebooks but not NBDime https://github.com/jupyter/nbdime which is a Jupyter plugin specifically to address this problem. Without it, diffing notebooks is not feasible.
-
Jupyter diff in Magit
A bit off-topic but someone might know; I'm working with jupyter notebook files (ipynb) which are basically json files. Git diff is very noisy so there's nbdime which works great in the CLI. Is there a way to have Magit aware of its integration with git diff?
-
The Notepad++
I use nbdime which allows you to ignore parts of a notebook (e.g. outputs) when diffing.
nbstripout
-
Tips for using Jupyter Notebooks with GitHub
If you'd like to automatically remove empty / tagged cells or retroactively apply this filter to your git history, you can read the nbstripout documentation on GitHub.
-
Ask HN: Are there any good Diff tools for Jupyter Notebooks?
I used something as a precommit hook in the past that remove plots and other rendered content and only kept text and code in git index. I'm almost sure it was https://github.com/kynan/nbstripout but it's been a while and I could be wrong.
Once the hook was in place git diff worked well enough to not need any other diffing tool.
-
Notebooks suck: change my mind
As far as versioning, I use nbstripout (notebook strip out) I think there are alternatives too.
-
NumPy 1.20 Released
You can use it with source control, I do it for about 18 notebooks I use on a daily basis:
https://github.com/kynan/nbstripout
What are some alternatives?
jupytext - Jupyter Notebooks as Markdown Documents, Julia, Python or R scripts
vscode-jupyter - VS Code Jupyter extension
poetry-dynamic-versioning - Plugin for Poetry to enable dynamic versioning based on VCS tags
clerk - ⚡️ Moldable Live Programming for Clojure
nvim-treesitter-context - Show code context
pluggy - A minimalist production ready plugin system
webdiff - Two-column web-based git difftool
Jupyter Notebook (IPython) - Multi-user server for Jupyter notebooks
locust - "git diff" over abstract syntax trees
ploomber - The fastest ⚡️ way to build data pipelines. Develop iteratively, deploy anywhere. ☁️
unison - A friendly programming language from the future
Pluto.jl - 🎈 Simple reactive notebooks for Julia