{"id":14977160,"url":"https://github.com/jbn/nbmerge","last_synced_at":"2025-10-28T01:30:35.749Z","repository":{"id":57445140,"uuid":"89928492","full_name":"jbn/nbmerge","owner":"jbn","description":"A tool to merge / concatenate Jupyter (IPython) notebooks","archived":false,"fork":false,"pushed_at":"2017-11-11T15:44:19.000Z","size":74,"stargazers_count":86,"open_issues_count":5,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-05T13:56:38.452Z","etag":null,"topics":["ipython","ipython-notebook","jupyter","jupyter-notebook","nbconvert"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jbn.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-01T13:58:41.000Z","updated_at":"2025-01-29T12:04:06.000Z","dependencies_parsed_at":"2022-09-26T17:30:47.468Z","dependency_job_id":null,"html_url":"https://github.com/jbn/nbmerge","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbn%2Fnbmerge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbn%2Fnbmerge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbn%2Fnbmerge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbn%2Fnbmerge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jbn","download_url":"https://codeload.github.com/jbn/nbmerge/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238579176,"owners_count":19495510,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ipython","ipython-notebook","jupyter","jupyter-notebook","nbconvert"],"created_at":"2024-09-24T13:55:13.318Z","updated_at":"2025-10-28T01:30:35.379Z","avatar_url":"https://github.com/jbn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":".. image:: https://travis-ci.org/jbn/nbmerge.svg?branch=master\n    :target: https://travis-ci.org/jbn/nbmerge\n.. image:: https://ci.appveyor.com/api/projects/status/69kj3prrrieyp8q2/branch/master?svg=true\n    :target: https://ci.appveyor.com/project/jbn/nbmerge/branch/master \n.. image:: https://coveralls.io/repos/github/jbn/nbmerge/badge.svg?branch=master\n    :target: https://coveralls.io/github/jbn/nbmerge?branch=master \n.. image:: https://img.shields.io/pypi/v/nbmerge.svg\n    :target: https://pypi.python.org/pypi/nbmerge\n.. image:: https://img.shields.io/badge/license-MIT-blue.svg\n    :target: https://raw.githubusercontent.com/jbn/nbmerge/master/LICENSE\n.. image:: https://img.shields.io/pypi/pyversions/nbmerge.svg\n    :target: https://pypi.python.org/pypi/nbmerge\n\n\n==================================================\n``nbmerge``: merge / concatenate Jupyter notebooks\n==================================================\n\nInstallation\n============\n\n.. code:: sh\n\n    pip install nbmerge\n\nUsage\n=====\n\nFor the usage as originally specified by \n`@fperez \u003chttps://github.com/fperez\u003e`__'s gist, \n\n.. code:: sh\n\n    nbmerge file_1.ipynb file_2.ipynb file_3.ipynb \u003e merged.ipynb\n\nAlternatively, nbmerge can cursively collect all files in the current\ndirectory and below, recursively. After collection, it sorts them\nlexicographically. You can use a regular expression as a file name\npredicate. All ``.ipynb_checkpoints`` are automatically ignored. And, you\ncan use the ``-i`` option to ignore any notebook prefixed with an underscore\n(think pseudo-private in python). \n\nFor example, the following command collects all notebooks in your project\nthat have the word ``intro`` in the file name and saves it to a merged file\nnamed ``_merged.ipynb``,\n\n.. code:: sh\n\n    nbmerge --recursive -i -p \".*intro.*\" -o _merged.ipynb\n\nFinally, you can also instruct the script to demarcate the boundary\nbetween each original file with the ``-b`` / ``-boundary [BOUNDARY]`` flag.\nThe ``src_nb`` value in the metadata for the first cell in each original\nnotebook will then contain the path of the original notebook, relative to\nthe cwd at the point of script execution.\n\nMore details\n============\n\nRead the docs: `here \u003chttp://nbmerge.falsifiable.com\u003e`_.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbn%2Fnbmerge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjbn%2Fnbmerge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbn%2Fnbmerge/lists"}