{ "info": { "author": "Will Handley", "author_email": "wh260@cam.ac.uk", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Natural Language :: English", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "==================================================\npy2nb: convert python scripts to jupyter notebooks\n==================================================\n:py2nb: convert python scripts to jupyter notebooks\n:Author: Will Handley\n:Version: 0.0.4\n:Homepage: https://github.com/williamjameshandley/py2nb\n\n.. image:: https://badge.fury.io/py/py2nb.svg\n :target: https://badge.fury.io/py/py2nb\n :alt: PyPi location\n\nDescription\n===========\n\n``py2nb`` is a python package for converting python scripts with minimal\nmarkdown to jupyter notebooks. \n\nMarkdown cells are rendered from comments beginning with ``#|``, splits between\ncode cells are created by comment lines beginning with ``#-``\n\n``nb2py`` converts from jupyter notebooks to python\n\nInstallation\n============\n\nUsers can install using pip:\n\n.. code:: bash\n\n pip install py2nb\n\nfrom source:\n\n.. code:: bash\n\n git clone https://github.com/williamjameshandley/py2nb\n cd py2nb\n python setup.py install\n\nor for those on `Arch linux `__ it is\navailable on the\n`AUR `__\n\nExample\n=======\n\nIf one has a script named ``example.py`` containing the code:\n\n.. code:: python\n\n #| # Testing ipython notebook\n #| This is designed to demonstrate a simple script that converts a script into\n #| a jupyter notebook with a simple additional markdown format.\n #|\n #| Code by default will be put into code cells\n #|\n #| * To make a markdown cell, prefix the comment line with with '#|'\n #| * To split a code cell, add a line beginning with '#-'\n \n import numpy\n import matplotlib.pyplot as plt\n %matplotlib inline\n \n #| Here is a markdown cell.\n #| Maths is also possible: $A=B$\n #|\n #| There are code cells below, split by '#-':\n \n x = numpy.random.rand(5)\n \n #-------------------------------\n \n y = numpy.random.rand(4)\n z = numpy.random.rand(3)\n \n #| Here are some plots\n \n x = numpy.linspace(-2,2,1000)\n y = x**3\n fig, ax = plt.subplots()\n ax.plot(x,y)\n\nthen running\n\n.. code :: bash\n \n py2nb example.py\n \nproduces the notebook `example.ipynb `_\n\nTo do\n=====\n- evaluation option for script produced\n- vim syntax highlighting for markdown code blocks\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/williamjameshandley/py2nb", "keywords": "", "license": "GPL", "maintainer": "", "maintainer_email": "", "name": "py2nb", "package_url": "https://pypi.org/project/py2nb/", "platform": "", "project_url": "https://pypi.org/project/py2nb/", "project_urls": { "Homepage": "https://github.com/williamjameshandley/py2nb" }, "release_url": "https://pypi.org/project/py2nb/0.0.4/", "requires_dist": null, "requires_python": "", "summary": "py2nb: convert python scripts to jupyter notebooks", "version": "0.0.4" }, "last_serial": 4454287, "releases": { "0.0.0": [ { "comment_text": "", "digests": { "md5": "83b9f3ad3552b66b6f160dd98f30bcb1", "sha256": "55d8f4617e10eb5328ec0d95fe8b7b5cd44039b1b4497a338e62e6ad07118500" }, "downloads": -1, "filename": "py2nb-0.0.0.tar.gz", "has_sig": false, "md5_digest": "83b9f3ad3552b66b6f160dd98f30bcb1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2577, "upload_time": "2018-11-05T07:10:27", "url": "https://files.pythonhosted.org/packages/b2/48/926cc023520dce7fe9e7a8124aa162c564a384db5a85987be4a13f2f4d26/py2nb-0.0.0.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "eee12683c48d12294e9b2e2c2fbc0d1a", "sha256": "e03f5cb58e10f356cfb65d569699b3bb74b6e3a690d9eaceafe3050b1a6344ff" }, "downloads": -1, "filename": "py2nb-0.0.2.tar.gz", "has_sig": false, "md5_digest": "eee12683c48d12294e9b2e2c2fbc0d1a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2855, "upload_time": "2018-11-05T07:30:42", "url": "https://files.pythonhosted.org/packages/cc/15/d5338c3a3978f8a533b5c685d6e20a358b48b22a13b242948755d1ba69e0/py2nb-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "5aa32cb16504e3000361d33222cbc480", "sha256": "cf8bf4bc02d683ccc7ef8f75f8ad19d6a2684c8f4c59c489004fdea40081618f" }, "downloads": -1, "filename": "py2nb-0.0.3.tar.gz", "has_sig": false, "md5_digest": "5aa32cb16504e3000361d33222cbc480", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3012, "upload_time": "2018-11-05T08:47:39", "url": "https://files.pythonhosted.org/packages/8b/ff/f44682cc8a928db1a3380324c8f7d2e48f2094add2d6bd9a6fb204e7e0f1/py2nb-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "b4918c9850a7122e3a061cf9bd4908db", "sha256": "9b081142cc9e51fc2f741e698d28b4d5eaad79ba69af252b53454236db828b0e" }, "downloads": -1, "filename": "py2nb-0.0.4.tar.gz", "has_sig": false, "md5_digest": "b4918c9850a7122e3a061cf9bd4908db", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3289, "upload_time": "2018-11-05T19:27:08", "url": "https://files.pythonhosted.org/packages/82/33/81862f5aacdee7b3dfeb44818ba146f87667098d85693de209cb0df22d39/py2nb-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b4918c9850a7122e3a061cf9bd4908db", "sha256": "9b081142cc9e51fc2f741e698d28b4d5eaad79ba69af252b53454236db828b0e" }, "downloads": -1, "filename": "py2nb-0.0.4.tar.gz", "has_sig": false, "md5_digest": "b4918c9850a7122e3a061cf9bd4908db", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3289, "upload_time": "2018-11-05T19:27:08", "url": "https://files.pythonhosted.org/packages/82/33/81862f5aacdee7b3dfeb44818ba146f87667098d85693de209cb0df22d39/py2nb-0.0.4.tar.gz" } ] }