jupytext
jupyterlab-gitplus
jupytext | jupyterlab-gitplus | |
---|---|---|
20 | 7 | |
6,425 | 110 | |
- | 0.0% | |
8.8 | 1.2 | |
1 day ago | about 1 year ago | |
Python | TypeScript | |
MIT License | GNU Affero General Public License v3.0 |
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.
jupytext
- The Jupyter+Git problem is now solved
-
Do you git commit jupyter notebooks?
Jupytext (https://github.com/mwouts/jupytext) has been designed exactly for this
-
The hatred towards jupyter notebooks
jupytext is your friend.
-
Edit notebooks in Google cloud
So if you run your own jupyter server, -jupy+text can be a great workflow : it takes your notebook synchronized with other formats (python file, makdown, ...), so you can edit your py/md file with neovim, and refresh the browser to execute the notebook.
-
Rant: Jupyter notebooks are trash.
Automatically convert ipynb files to py when saving them on JupyterLab
-
Two questions regarding working with jupyter notebooks (git, vim)
I don't use Jupyter so I don't know for sure, but on a quick glance you might want to look at https://github.com/mwouts/jupytext to see if that could help at all.
-
JupyterLite is a JupyterLab distribution that runs in the browser
The format is only partially invented, it follows Jupytext [0], but adds support for cell metadata. There is no obvious way to get that in fenced codeblocks, especially with the ability to spread it over multiple lines so it plays well with version control.
One more consideration is that it's not "Markdown with code blocks interspersed", one might as well use plaintext or AsciiDoc.
Of course there are tradeoffs.. I wish I had more time to work on it.
[0]: https://github.com/gzuidhof/starboard-notebook/blob/master/d...
[1]: https://github.com/mwouts/jupytext
-
Many write research papers in R Markdown - What is the alternative setup in Python?
Using jupytext (allows you to open .md files as notebooks) + jupyter gives you pretty much the same experience. The main issue is that the cell's output will be discarded. To fix it, you can use ploomber to generate an output HTML, so the workflow goes like this:
-
Jupyter Notebooks.
First, the format. The ipynb format does not play nicely with git since it stores the cell's source code and output in the same file. But Jupyter has built-in mechanisms to allow other formats to look like notebooks. For example, here's a library that allows you to store notebooks on a postgres database (I know this isn't practical, but it's a great example). To give more practical advice, jupytext allows you to open .py files as notebooks. So you can develop interactively but in the backend, you're storing .py files.
jupyterlab-gitplus
-
Difftastic, a structural diff tool that understands syntax
If you are in need of a diff tool for jupter notebooks use https://www.reviewnb.com/ and for word documents use https://www.simuldocs.com/
-
The Jupyter+Git problem is now solved
- GitHub PR code reviews with ReviewNB[4]
Alternatively, if you don't care about cell outputs then Jupytext[5]
Disclaimer: I built ReviewNB. It's a completely bootstrapped business, 5 years in the making and now used by leading DS teams at Meta, AWS, NASA JPL, AirBnB, Lyft, Affirm, AMD, Microsoft & more (https://www.reviewnb.com/#customers)
[1] https://github.com/jupyterlab/jupyterlab-git
-
While you wait for GitHub to finish building Jupyter Notebook reviews
Already a GitHub plugin that does this very nicely: ReviewNB
- Rich Jupyter Notebook Diffs on GitHub... Finally.
-
[Noob question] Why are notebooks not used in production ?
For version control: https://www.reviewnb.com/ helps. Agree with the rest but some experimental notebooks are useful to track/version control.
-
Nbdev: Create delightful software with Jupyter Notebooks
It's not focused on collaboration, but it does add some critical pieces that otherwise make Jupyter development frustrating when working with a team. Specifically: `nbdev_prepare` ensures that diffs are as small as possible, by removing and standardising notebook metadata; and `nbdev_fix` fixes merge conflicts so that they are cell-level, rather than line level, so they can be opened and fixed in notebooks.
Something else we've found helpful for collaboration (not associated - just happy users) is this: https://www.reviewnb.com/ . It means we can get a nice notebook-based PR workflow.
Real-time collaboration is available in Jupyter nowadays: https://jupyterlab.readthedocs.io/en/stable/user/rtc.html . nbdev doesn't have any extra functionality for it, however -- but it should work fine in this environment.
- Ask HN: Are there any good Diff tools for Jupyter Notebooks?
What are some alternatives?
jupyter - An interface to communicate with Jupyter kernels.
jupyter-vim-binding - Jupyter meets Vim. Vimmer will fall in love.
rmarkdown - Dynamic Documents for R
vscode-jupyter - VS Code Jupyter extension
sagemaker-run-notebook - Tools to run Jupyter notebooks as jobs in Amazon SageMaker - ad hoc, on a schedule, or in response to events
livebook - Automate code & data workflows with interactive Elixir notebooks
nbdev - Create delightful software with Jupyter Notebooks
jupyterlab-git - A Git extension for JupyterLab
papermill - 📚 Parameterize, execute, and analyze notebooks
pyro - Deep universal probabilistic programming with Python and PyTorch
nbdime - Tools for diffing and merging of Jupyter notebooks.
notebooks - Examples and tutorials on using SOTA computer vision models and techniques. Learn everything from old-school ResNet, through YOLO and object-detection transformers like DETR, to the latest models like Grounding DINO and SAM.