{ "info": { "author": "John Bjorn Nelson", "author_email": "jbn@abreka.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Framework :: IPython", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": ".. 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/dm/nbmerge.svg\n :target: https://pypi.python.org/pypi/nbmerge\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 `__'s gist, \n\n.. code:: sh\n\n nbmerge file_1.ipynb file_2.ipynb file_3.ipynb > 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\nLineage\n=======\n\n`@fperez `__ wrote an\n`nbmerge.py `__\nscript which \"Merge[s]/concatenate[s] multiple IPython notebooks into\none.\" I use it a lot. Evidently, `other people do,\ntoo `__.\nIn early 2016, he opened an `issue to add the script as an nbconvert\ntool `__, but nothing\ncame of it. However, he and `@Carreau `__ came up\nwith good (i.e. unsurprising) `semantics for metadata merging and\nnotebook\nnaming `__:\n\n.. code:: python\n\n metadata = {}\n for n in reversed(notebooks):\n metadata.update(n.metadata)\n\n\nI don't think it's possible to implement the merger as a preprocessor.\nPreprocessors are stateless, so you can't implement a reduce operation.\nInstead, I wrote (er, packaged up) this library as an\n`nbstripoutput `__-like package . \nIt fits in a ``Makefile`` script just fine. \n\nRight now, only the basic (originally fperez's) functionality is \nimplemented. However, I'm going to follow \n`kynan's `__ lead and slowly pull in functionality\nsimilar to his ``nbstripout`` package.\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jbn/nbmerge", "keywords": "jupyter", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "nbmerge", "package_url": "https://pypi.org/project/nbmerge/", "platform": "", "project_url": "https://pypi.org/project/nbmerge/", "project_urls": { "Homepage": "https://github.com/jbn/nbmerge" }, "release_url": "https://pypi.org/project/nbmerge/0.0.4/", "requires_dist": null, "requires_python": "", "summary": "A tool to merge / concatenate Jupyter (IPython) notebooks", "version": "0.0.4" }, "last_serial": 2874023, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "3a9493739a1fb958b0737b81f54594a2", "sha256": "0fb858801d7de2272255f39c0a285cc4872f3168f6337bbe0685d6b480051826" }, "downloads": -1, "filename": "nbmerge-0.0.1.tar.gz", "has_sig": false, "md5_digest": "3a9493739a1fb958b0737b81f54594a2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5163, "upload_time": "2017-05-02T12:19:29", "url": "https://files.pythonhosted.org/packages/87/54/55f766b66448e0c7a439a9f60316600ab70d01207f606278e7b2926a593d/nbmerge-0.0.1.tar.gz" } ], "0.0.1.dev0": [ { "comment_text": "", "digests": { "md5": "e767e1d832adb687ebcc9e7400b790da", "sha256": "90c8215bd58e50f542f34d1502b4ccd74cd96d27837fd7d39af04cb4e10cf7ef" }, "downloads": -1, "filename": "nbmerge-0.0.1.dev0.tar.gz", "has_sig": false, "md5_digest": "e767e1d832adb687ebcc9e7400b790da", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3098, "upload_time": "2017-05-01T14:42:53", "url": "https://files.pythonhosted.org/packages/bc/8e/e5fe6b1285c46e2a733dd29639ab4a8f3c938325c430107ebe9d22ca7d0f/nbmerge-0.0.1.dev0.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "32a8d4d4ef3b8adb31ca27763d9b2a5e", "sha256": "0b5440185981fd74495f9d4302be1e31d4b34298abc60db0c4d81ef08ef3d8b8" }, "downloads": -1, "filename": "nbmerge-0.0.2.tar.gz", "has_sig": false, "md5_digest": "32a8d4d4ef3b8adb31ca27763d9b2a5e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7543, "upload_time": "2017-05-09T12:24:16", "url": "https://files.pythonhosted.org/packages/a7/6a/0e2cf2493b0e6a8bef130f940f7be032fa2c16515e513ff1eacaec9076e8/nbmerge-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "07d357c0bac24d8f0925e7dec5e90a46", "sha256": "4d9969742cd2a8cfd3ad96e11a24e897ff178abd27a98c6f54262b5685d1c758" }, "downloads": -1, "filename": "nbmerge-0.0.3.tar.gz", "has_sig": false, "md5_digest": "07d357c0bac24d8f0925e7dec5e90a46", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7752, "upload_time": "2017-05-13T22:18:50", "url": "https://files.pythonhosted.org/packages/78/08/d0eabea162be098cd9f97c3ae29ac30dda6e9e276194a5a26344478a185e/nbmerge-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "9c8928046d7d938398eff76782f7ce84", "sha256": "f432797ee685ed495a2daa4dbb76e2b52028d2c3a38142b523bb5cb832df0882" }, "downloads": -1, "filename": "nbmerge-0.0.4.tar.gz", "has_sig": false, "md5_digest": "9c8928046d7d938398eff76782f7ce84", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7590, "upload_time": "2017-05-14T21:14:22", "url": "https://files.pythonhosted.org/packages/73/a9/56a02f2a3405397af9924e1d372b2e546ebcdb312d800f3945b321a328a5/nbmerge-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9c8928046d7d938398eff76782f7ce84", "sha256": "f432797ee685ed495a2daa4dbb76e2b52028d2c3a38142b523bb5cb832df0882" }, "downloads": -1, "filename": "nbmerge-0.0.4.tar.gz", "has_sig": false, "md5_digest": "9c8928046d7d938398eff76782f7ce84", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7590, "upload_time": "2017-05-14T21:14:22", "url": "https://files.pythonhosted.org/packages/73/a9/56a02f2a3405397af9924e1d372b2e546ebcdb312d800f3945b321a328a5/nbmerge-0.0.4.tar.gz" } ] }