{ "info": { "author": "M.Jones, forked from Siu Kwan Lam", "author_email": "jones.0bj3@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Programming Language :: Python :: 3" ], "description": "# Features after forking:\n- New token recognized for code cells, defined by `#%%`, used in [Spyder](https://github.com/spyder-ide) and PyCharm scientific mode. \n\n\n\n\n*Original source repo readme follows...*\n***************\n# PY2NB: Python To Notebook Converter\n\nThis is a small utility for turning python scripts into jupyter notebooks and\nconvert module-level multiline (triple quote) string literals into markdown\ncells.\n\n## Why?\n\nI wanted a tool to create user examples that can be executed as normal python\nscripts so that they can be copy-and-pasted easily and can be rendered as\nnotebook for better readability (e.g nice styling, results embedded).\n\nAlso,\n\n* Notebooks are nice to look at but slow to write\n* Notebooks does not play well with version control\n\n\n## Install\n\n```bash\npython setup.py install\n```\n\n## Usage\n\n\nTo convert a python script into a notebook:\n\n```bash\n\npython -m py2nb input.py output.ipynb\n```\n\n### Additional commandline not from this package\n\nExecute a notebook:\n\n```bash\nipython nbconvert --to=notebook --execute input.ipynb\n```\n\nConvert a notebook to a HTML:\n\n```bash\nipython nbconvert --to=html input.ipynb\n```\n\n\n## Samples\n\nSee \"samples\" directory.\n\n\n\n## How?\n\nUses python ``tokenize`` (builtin tokenizer library) for tokenization.\nString literals with triple quote at column zero are converted into a comment\ntoken with special ```` and ```` to feed into the python\nimporter in IPython version 3. The processed tokens are untokenized using the\n``tokenize`` module so that untouched line looks exactly the same as the input.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/MarcusJones/py2jnb", "keywords": "", "license": "Apache Software License 2.0", "maintainer": "", "maintainer_email": "", "name": "py2jnb", "package_url": "https://pypi.org/project/py2jnb/", "platform": "", "project_url": "https://pypi.org/project/py2jnb/", "project_urls": { "Homepage": "https://github.com/MarcusJones/py2jnb" }, "release_url": "https://pypi.org/project/py2jnb/0.0.5/", "requires_dist": [ "nbformat", "IPython" ], "requires_python": "", "summary": "Utility to turn IPython scripts into Jupyter Notebook format. Forked from py2nb project.", "version": "0.0.5" }, "last_serial": 4327568, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "3ee4c03086d9adf891e54e4630b298b9", "sha256": "0cca99770bf7e5d1c14577cc0c7b48eba19af4cdea0132bb55b07d706decda54" }, "downloads": -1, "filename": "py2jnb-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3ee4c03086d9adf891e54e4630b298b9", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9448, "upload_time": "2018-10-01T08:16:16", "url": "https://files.pythonhosted.org/packages/60/96/e5cf901c0a05b1d42c881ad29c9d97eb2b6d0710e79c811bfd8851165c62/py2jnb-0.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "95176a3caa1c7c20cac51e38cdae1182", "sha256": "ec9bae751b0c5882d2af50d0235ba17b0616cc6dcf20f3a43bcc0956d9b24b3f" }, "downloads": -1, "filename": "py2jnb-0.0.2.tar.gz", "has_sig": false, "md5_digest": "95176a3caa1c7c20cac51e38cdae1182", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4406, "upload_time": "2018-10-01T08:16:18", "url": "https://files.pythonhosted.org/packages/2a/27/1d370fa32e819a3e91672762b67bb4b729153804c4552c4e24db0aeb0a4f/py2jnb-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "588f83dfa444a134d18b5489f2d65ebf", "sha256": "b62786b91bdd0802ef83a28aa2b68f58465cc1767c298f33fe8c0c65554cd58c" }, "downloads": -1, "filename": "py2jnb-0.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "588f83dfa444a134d18b5489f2d65ebf", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9457, "upload_time": "2018-10-01T08:27:20", "url": "https://files.pythonhosted.org/packages/12/39/78bb0c5d4a4723e8c9f6af154c39fc2d9571a320d9852bc9da265a1050b6/py2jnb-0.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9aee140e48efc883d6962b3df07f9647", "sha256": "5c27a2d20b63d6948441b4a7503ef2c7a4e5a103eccaacd38d3626a7675c84d9" }, "downloads": -1, "filename": "py2jnb-0.0.3.tar.gz", "has_sig": false, "md5_digest": "9aee140e48efc883d6962b3df07f9647", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4406, "upload_time": "2018-10-01T08:27:21", "url": "https://files.pythonhosted.org/packages/15/6b/5f7da1d64143077e780df9ac339baadca740a72f58458aac3ea2579de365/py2jnb-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "66eb76534c2c267f7274ea3bebd9540c", "sha256": "720bdf8eb93508b729642105e46efaaea6cce0cd86ec73078f586e5d1e8714a5" }, "downloads": -1, "filename": "py2jnb-0.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "66eb76534c2c267f7274ea3bebd9540c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9416, "upload_time": "2018-10-01T09:35:07", "url": "https://files.pythonhosted.org/packages/9d/09/16dc0979e83578765c1b8129aecbdf3c9e42d0f126dbe5c03547d8b7ae6a/py2jnb-0.0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "48ad8af36f4b4616497da940d6c16d10", "sha256": "4423b1eee4ca112015104d468c78b0f7ec530a3bfe13ac5c1eaedd6319647e56" }, "downloads": -1, "filename": "py2jnb-0.0.4.tar.gz", "has_sig": false, "md5_digest": "48ad8af36f4b4616497da940d6c16d10", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4421, "upload_time": "2018-10-01T09:35:09", "url": "https://files.pythonhosted.org/packages/01/b6/71b837ccb81005d3b263b37761276c488a539cf76d9dc47e43206cd83802/py2jnb-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "c21f33ca3e97b1849946fd1686174ce1", "sha256": "f00da358ce70ab783f86a63a0de2a689df4d05166f6c075fe028f347c884f740" }, "downloads": -1, "filename": "py2jnb-0.0.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c21f33ca3e97b1849946fd1686174ce1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9457, "upload_time": "2018-10-01T10:34:57", "url": "https://files.pythonhosted.org/packages/63/db/fb155b0ee2ed4bf127142add59a8833baa9c72df94915f9e2fe7cfb6b04f/py2jnb-0.0.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "36b73a482c3511e78448d0f5ebaf7b8b", "sha256": "2abcaa37cd165dd6de8ac39480462e980cdde15f2ceb011646509f6c1dea5d9b" }, "downloads": -1, "filename": "py2jnb-0.0.5.tar.gz", "has_sig": false, "md5_digest": "36b73a482c3511e78448d0f5ebaf7b8b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4481, "upload_time": "2018-10-01T10:34:58", "url": "https://files.pythonhosted.org/packages/40/a6/46b24ab7d20dd52b37d6123964f4fd32b223f24479456b86c94fedfe8d05/py2jnb-0.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c21f33ca3e97b1849946fd1686174ce1", "sha256": "f00da358ce70ab783f86a63a0de2a689df4d05166f6c075fe028f347c884f740" }, "downloads": -1, "filename": "py2jnb-0.0.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c21f33ca3e97b1849946fd1686174ce1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9457, "upload_time": "2018-10-01T10:34:57", "url": "https://files.pythonhosted.org/packages/63/db/fb155b0ee2ed4bf127142add59a8833baa9c72df94915f9e2fe7cfb6b04f/py2jnb-0.0.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "36b73a482c3511e78448d0f5ebaf7b8b", "sha256": "2abcaa37cd165dd6de8ac39480462e980cdde15f2ceb011646509f6c1dea5d9b" }, "downloads": -1, "filename": "py2jnb-0.0.5.tar.gz", "has_sig": false, "md5_digest": "36b73a482c3511e78448d0f5ebaf7b8b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4481, "upload_time": "2018-10-01T10:34:58", "url": "https://files.pythonhosted.org/packages/40/a6/46b24ab7d20dd52b37d6123964f4fd32b223f24479456b86c94fedfe8d05/py2jnb-0.0.5.tar.gz" } ] }