I have two different Jupyter notebooks for two different projects. I would like to merge them to get them both on the same notebook.
One way is to copy cells from one to the other one but it seems to be quite a bit of work for projects containing many cells. Is there a feature supporting importing Notebook documents or copying multiple cells at a time?
Within your notebook, right-click the section tab above the page. In the context menu, select Merge into Another Section. A Merge Section dialog box will open, displaying notebooks that you save; you can also search for notebooks. At the left of the notebook, you want to merge sections click the plus button.
The new collaborative editing feature enables collaboration in real-time between multiple clients without user roles, when sharing the URL of a document to other users, they will have access to the same environment you are working on (they can write and execute the cells).
You can merge notebooks with nbmerge
Install it with pip
pip install nbmerge
and merge your files with
nbmerge file_1.ipynb file_2.ipynb file_3.ipynb > merged.ipynb
pip install nbmerge
nbmerge file_1.ipynb file_2.ipynb file_3.ipynb > merged.ipynb
full documentation - https://github.com/jbn/nbmerge
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With