{ "info": { "author": "Jan Freyberg", "author_email": "jan.freyberg@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Framework :: IPython", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# jupyterstan\n\n`jupyterstan` is a package to help development of Stan models (using `pystan`)\nin jupyter notebooks.\n\nThe package is heavily based on Arvinds-ds\n[stanmagic](https://github.com/Arvinds-ds/stanmagic) package, but provides an\ninterface that simply returns a `pystan.Model` object.\n\nIn addition, it bundles Arvinds-ds `stan_code_helper` package to improve\nsyntax highlighting for stan cells.\n\n## Features\n\n- Stan language syntax highlighting in all cells beginning with `%%stan`\n- Compile a stan model and save it as a pystan variable by running a `%%stan` cell\n- No longer worry about `model_code`, reading in stan files, etc.\n\n\n## Installation\n\nTo install the library:\n\n```bash\npip install jupyterstan\n```\n\n## Usage\n\nTo use the `magic` in your notebook, you need to lead the extension:\n\n```python\n%load_ext jupyterstan\n```\n\nTo define a stan model inside a jupyter notebook, start a cell with the `%%stan`\nmagic. You can also provide a variable name, which is the variable name that\nthe `pystan.Model` object will be assigned to. For example:\n\n```stan\n%%stan paris_female_births\ndata {\n int male;\n int female;\n}\n\nparameters {\n real p;\n}\n\nmodel {\n female ~ binomial(male + female, p);\n}\n```\n\nWhen you run this cell, `jupyterstan` will create a pystan Model object, which will compile your model and allow\nyou to sample from it. To use your compiled model:\n\n```python\nfit = paris_female_births.sampling(\n data={'male': 251527, 'female': 241945},\n iter=1000,\n chains=4\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/janfreyberg/jupyterstan", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "jupyterstan", "package_url": "https://pypi.org/project/jupyterstan/", "platform": "", "project_url": "https://pypi.org/project/jupyterstan/", "project_urls": { "Homepage": "https://github.com/janfreyberg/jupyterstan" }, "release_url": "https://pypi.org/project/jupyterstan/0.2.0/", "requires_dist": null, "requires_python": "", "summary": "Magics for defining stan code in notebooks.", "version": "0.2.0" }, "last_serial": 4660909, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "209eadf1261937a69f466675b61120b8", "sha256": "baf6ed9921c099bd2b06a2032575121540245284f7974d87c9e32a6ec22cc617" }, "downloads": -1, "filename": "jupyterstan-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "209eadf1261937a69f466675b61120b8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13079, "upload_time": "2018-10-06T21:26:30", "url": "https://files.pythonhosted.org/packages/7d/d6/97d076f4b104ac7ab8aa7858d9e7f4b2a8bf2f961b76a48323733c05de71/jupyterstan-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ff31acd9945a0d6993637e99561206db", "sha256": "dc1e9742c660064764c51d2b54b72a9f269a364298a0ae0ae37cbb14032fbf62" }, "downloads": -1, "filename": "jupyterstan-0.0.1.tar.gz", "has_sig": false, "md5_digest": "ff31acd9945a0d6993637e99561206db", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11413, "upload_time": "2018-10-06T21:26:31", "url": "https://files.pythonhosted.org/packages/22/10/901898d36ce8ef7f2932d1b135c4228cf378a0ecfa552a66470c3efb10a9/jupyterstan-0.0.1.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "3fc9d8013d3c956cbcec4fb77e9b7275", "sha256": "ecf35844cc899ea095a3fa17d585166c6794da7ede85ea78eab91981c5752a00" }, "downloads": -1, "filename": "jupyterstan-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3fc9d8013d3c956cbcec4fb77e9b7275", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13108, "upload_time": "2018-10-06T21:30:37", "url": "https://files.pythonhosted.org/packages/c4/e8/f843a011d19a2444671994c7fb0cd84ba7d2f19e5b77eaf0969ba9c8eca4/jupyterstan-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "15845304455b2da21fcbbc143bced5b2", "sha256": "9848577c536808c9dbb1f313a61df718a2838ad9705798c612c4810e1cb3ac8c" }, "downloads": -1, "filename": "jupyterstan-0.1.0.tar.gz", "has_sig": false, "md5_digest": "15845304455b2da21fcbbc143bced5b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11457, "upload_time": "2018-10-06T21:30:38", "url": "https://files.pythonhosted.org/packages/36/fc/e29e9dcd2354e3904530c284b1f14bb152732f864eea7ea2ff0a7b8e2097/jupyterstan-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "4b99c3d2cfe6636e53aec7da75afdf4e", "sha256": "38bae587efc3e953236888cbf5286713ad36ae363e8347eb12d344afc8c7afd8" }, "downloads": -1, "filename": "jupyterstan-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4b99c3d2cfe6636e53aec7da75afdf4e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 14153, "upload_time": "2018-10-06T21:36:49", "url": "https://files.pythonhosted.org/packages/66/23/103615c5521e728fd7799f74c8d123ee97c37d7cca7b088f6877fb9f1637/jupyterstan-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d965afaafa5adccb7b4c3a993054a4d0", "sha256": "537f10a4a2321450104b2fcc4efbd572630b780c6b7b6a4e9be71cf779e7005a" }, "downloads": -1, "filename": "jupyterstan-0.1.1.tar.gz", "has_sig": false, "md5_digest": "d965afaafa5adccb7b4c3a993054a4d0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11489, "upload_time": "2018-10-06T21:36:51", "url": "https://files.pythonhosted.org/packages/14/ab/0c96a0f0aefa3a72c56c8189f952f13986f657f6a5ae5ed03444fe74c652/jupyterstan-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "235746a04fd3c50fcc5566a05d166d49", "sha256": "0c38220b80d430c0281966e18ea3105d9d3996efecc0c82d6740ec1268da184c" }, "downloads": -1, "filename": "jupyterstan-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "235746a04fd3c50fcc5566a05d166d49", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13379, "upload_time": "2018-10-08T09:18:45", "url": "https://files.pythonhosted.org/packages/1d/ff/04526621d3cbe0a50dbea92565dd3efacb510224683e9b6c17257af19e04/jupyterstan-0.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c23766a1f3062950dc79bf835b8e2460", "sha256": "8d2006bcb2fe9594b687be8b8588a3b35dc0319d24c71e78dd7c7bb94060dfd4" }, "downloads": -1, "filename": "jupyterstan-0.1.2.tar.gz", "has_sig": false, "md5_digest": "c23766a1f3062950dc79bf835b8e2460", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11730, "upload_time": "2018-10-08T09:18:46", "url": "https://files.pythonhosted.org/packages/47/89/dd46d482d61eb8f26297bbc6d340ec95f05e82f88549d982e1ecb63f787d/jupyterstan-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "f52ca7de0daef4d1caed974a65f07fa5", "sha256": "152a8ef34783bbeba675bf500098193426893d15edb115577803b522d68d2669" }, "downloads": -1, "filename": "jupyterstan-0.1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f52ca7de0daef4d1caed974a65f07fa5", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13232, "upload_time": "2018-10-09T12:45:11", "url": "https://files.pythonhosted.org/packages/ec/68/9979a3cc857650d8faa6d833cd75fa9b03c41e0fac15d35ffc696f7aaff7/jupyterstan-0.1.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3d71d4066a7cb80884459bba5d865bd0", "sha256": "5053ad82d09cb6f861eb0aaecdd548856953e141019da107da83b57d9be81307" }, "downloads": -1, "filename": "jupyterstan-0.1.3.tar.gz", "has_sig": false, "md5_digest": "3d71d4066a7cb80884459bba5d865bd0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11587, "upload_time": "2018-10-09T12:45:12", "url": "https://files.pythonhosted.org/packages/02/17/d688b9e69c26fad2b82e540e445b7fedae9748656ca15528c379186fe60e/jupyterstan-0.1.3.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "d6c5021c06ecc3fbb0aadd3c8b5a3734", "sha256": "bc234d0fb039a1e0bbdd7e4b8460c13be3cf141a931f6782160f6a62f2b77b43" }, "downloads": -1, "filename": "jupyterstan-0.2.0.tar.gz", "has_sig": false, "md5_digest": "d6c5021c06ecc3fbb0aadd3c8b5a3734", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11602, "upload_time": "2019-01-04T16:44:24", "url": "https://files.pythonhosted.org/packages/02/bf/21eff660bc918520bdbb91d898bc03eb6aef5acbb977ddfce994e8f8d420/jupyterstan-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d6c5021c06ecc3fbb0aadd3c8b5a3734", "sha256": "bc234d0fb039a1e0bbdd7e4b8460c13be3cf141a931f6782160f6a62f2b77b43" }, "downloads": -1, "filename": "jupyterstan-0.2.0.tar.gz", "has_sig": false, "md5_digest": "d6c5021c06ecc3fbb0aadd3c8b5a3734", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11602, "upload_time": "2019-01-04T16:44:24", "url": "https://files.pythonhosted.org/packages/02/bf/21eff660bc918520bdbb91d898bc03eb6aef5acbb977ddfce994e8f8d420/jupyterstan-0.2.0.tar.gz" } ] }