{ "info": { "author": "Bill Allen", "author_email": "photo.allen@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: MIT License", "Topic :: Utilities" ], "description": "# ipydeps\n\nA friendly way to specify your Jupyter notebook's dependencies right at the top of the notebook.\nThis helps ensure that other users have the Python packages they need to successfully run your notebook.\n\nUnlike `!pip install`, ipydeps makes sure that the packages get installed into the same Python environment that's executing your notebook's code cells.\nNo more `!pip`, `!pip3`, `!pip -V` frustrations for you and your users.\n\nIt also includes features for installation accelerators via centrally-managed overrides, and PKI integration.\n\n## Usage\n\nYou can install individual packages like so.\n\n```python\nimport ipydeps\nipydeps.pip('numpy')\nimport numpy as np\n```\n\nYou can also install multiple packages by passing a list.\n\n```python\nimport ipydeps\nipydeps.pip(['pymc', 'beautifulsoup4'])\nfrom pymc import DiscreteUniform\nfrom bs4 import BeautifulSoup\n```\n\nIf you want more verbose output from pip, just set the ```verbose``` parameter to ```True```.\n\n```python\nimport ipydeps\nipydeps.pip('sklearn', verbose=True)\nfrom sklearn.cluster import KMeans\n```\n\n## Configuration Files\n\n### ipydeps.conf\npip options for your particular environment can be placed in ~/.config/ipydeps/ipydeps.conf. For example, the following ipydeps.conf could be used to specify that you want ipydeps to trust a host, timeout after 30 seconds, and install all packages into user space:\n\n```text\n--trusted-host=my.pip.server.com\n--user\n--timeout=30\n```\n\nSome pip options have to be specified per-package. ipydeps will take care of specifying the option for each package for you. However, make sure you're working in a fully trusted environment before using these options. Putting these two lines in your ipydeps.conf will basically turn off any of pip's built-in verification.\n\n```text\n--allow-external\n--allow-unverified\n```\n\nIf you were installing packages called \"foo\" and \"bar\" that you didn't want verified, then normally you'd have to pass ```--allow-external=foo --allow-external=bar --allow-unverified=foo --allow-unverified=bar```, but ipydeps will just fill these in for each package automatically if you simply put ```--allow-external``` and ```--allow-unverified``` in your ipydeps.conf.\n\n### dependencies.link\n\nSometimes there's a better way to install certain packages, such as a pre-built rpm or apk. ~/.config/ipydeps/dependencies.link contains a URL for a file that overrides ipydeps.pip() calls for certain packages.\n\nFor example, maybe you want to install numpy, so you call ipydeps.pip('numpy'). However, numpy can take a while to install from scratch. If there's a pre-built version of numpy available, it can install in seconds instead of minutes. \n\ndependencies.link contains a URL pointing to a dependencies.json file which maps the original package names to their overrides.\n\nOnly place a trusted link in your dependencies.link file, since dependencies.json could contain malicious commands that get executed as you.\n\nIf you are managing multiple Jupyter environment deployments, you can have different dependencies.link files pointing at different dependencies.json files for each environment.\nFor example, Fedora deployments can have a dependencies.link that points to https://trusted.host/dependencies-fedora.json, while FreeBSD deployments can have a dependencies.link that points to https://trusted.host/dependencies-freebsd.json.\nThis allows multiple environment deployments to be centrally managed by changing their corresponding dependencies.json files.\n\n### dependencies.json\n\ndependencies.link contains a URL pointing to a dependencies.json file which maps the original package names to their overrides.\nThe dependencies.json file should look something like this contrived example:\n\n```json\n{\n \"python-3\": {\n \"numpy\": [\n [ \"yum\", \"install\", \"python3-numpy\" ]\n ],\n \"labsetup\": [\n [ \"yum\", \"install\", \"python3-numpy\" ],\n [ \"yum\", \"install\", \"python3-scikitlearn\" ],\n [ \"yum\", \"install\", \"python3-pandas\" ],\n [ \"yum\", \"install\", \"python3-pymc3\" ]\n ]\n },\n \"python-3.5\": {\n \"numpy\": [\n [ \"yum\", \"install\", \"special-prerequisite-for-python-3.5\" ],\n [ \"yum\", \"install\", \"python3-numpy\" ]\n ]\n },\n \"python-2.7\": {\n \"foo\": [\n [ \"echo\", \"Why\", \"are\", \"you\", \"still\", \"using\", \"python\", \"2.7?\" ]\n ]\n }\n}\n```\n\nNote that ipydeps will use the most specific override it can find.\nIn the example above, a Python 3.5 environment will use the python-3.5 override for numpy. The python-3 override for numpy will be ignored.\n\nAlso note that all package names are handled in a case-insensitive manner (just like pip), so ipydeps will output a warning if it finds duplicate packages listed in your dependencies.json file.\n\n### Windows support\n\nipydeps now supports Windows as well as Linux. It will look for your home directory using `os.path.expanduser('~')`. In most cases, this just points to C:\\Users\\yourname. You should put your .config/ipydeps/ipydeps.conf file in that directory.\n\n### pypki2 support\n\nIn some environments, having a PKI-enabled pip server is advantageous. To that end, pypki2 integration is supported. Simply add the following to ipydeps.conf:\n\n```text\n--use-pypki2\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/nbgallery/ipydeps", "keywords": "pip,install,setup,jupyter,notebook,dependencies", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "ipydeps", "package_url": "https://pypi.org/project/ipydeps/", "platform": "", "project_url": "https://pypi.org/project/ipydeps/", "project_urls": { "Homepage": "https://github.com/nbgallery/ipydeps" }, "release_url": "https://pypi.org/project/ipydeps/0.8.2/", "requires_dist": null, "requires_python": "", "summary": "A pip interface wrapper for installing packages from within Jupyter notebooks.", "version": "0.8.2" }, "last_serial": 5100810, "releases": { "0.3.1": [ { "comment_text": "", "digests": { "md5": "92ef392233e6404b4a8c9adb6399aff8", "sha256": "7483aad619fe6d5fe1d64b79513d7972420cd7105603af964dae64ab5f087b98" }, "downloads": -1, "filename": "ipydeps-0.3.1.tar.gz", "has_sig": false, "md5_digest": "92ef392233e6404b4a8c9adb6399aff8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3588, "upload_time": "2017-06-09T13:50:40", "url": "https://files.pythonhosted.org/packages/cf/e6/ebe2574622d66b967083eb9db1fdf0eca9e1c2e15fbc592639df8604370e/ipydeps-0.3.1.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "57466191ad3b8740ef6bf16ce740261b", "sha256": "ecabb6de5f6d7fdfe33b702bff18b8df75779d4e963be068ec97d712aedc001a" }, "downloads": -1, "filename": "ipydeps-0.4.0.tar.gz", "has_sig": false, "md5_digest": "57466191ad3b8740ef6bf16ce740261b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3877, "upload_time": "2017-07-19T11:42:49", "url": "https://files.pythonhosted.org/packages/46/0a/937da195d598fbb092b2a4adb05ea99ec4541d9c6424742a3bae33f7e59e/ipydeps-0.4.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "130c297e2215ef9bd6f8f16226ae594e", "sha256": "67ba1a514a19a083ab28254c2cde4370196f7e0934abfa787f7cb0286581710d" }, "downloads": -1, "filename": "ipydeps-0.4.1.tar.gz", "has_sig": false, "md5_digest": "130c297e2215ef9bd6f8f16226ae594e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4000, "upload_time": "2017-07-26T19:28:18", "url": "https://files.pythonhosted.org/packages/76/77/7fa53263a972d19cb55a923a24493c0e35c381f77c67c337fa3b1d1a6175/ipydeps-0.4.1.tar.gz" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "f2cf5ab93647fce46ced61b1ccc66cda", "sha256": "5f7029e0732c19246650db9e68898817d82fafd57cc8eef6bb0932edf50bea44" }, "downloads": -1, "filename": "ipydeps-0.4.2.tar.gz", "has_sig": false, "md5_digest": "f2cf5ab93647fce46ced61b1ccc66cda", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3924, "upload_time": "2017-07-27T02:50:37", "url": "https://files.pythonhosted.org/packages/0f/1b/7620c78fba7f5da1d93ff3f2038eaaee787208a03d45cee7aec7a2592167/ipydeps-0.4.2.tar.gz" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "c589c889d1673d7a0f207eb90795652d", "sha256": "6b0b17fc741aa911f36f14b3470e6ecd6c55ca9b6092a10f7c3e014e36bce221" }, "downloads": -1, "filename": "ipydeps-0.5.1.tar.gz", "has_sig": false, "md5_digest": "c589c889d1673d7a0f207eb90795652d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3995, "upload_time": "2017-12-18T20:56:12", "url": "https://files.pythonhosted.org/packages/f6/2a/e6c36e50e67fc584df8e100568be1c121f12e82586e47cbaa37245e16658/ipydeps-0.5.1.tar.gz" } ], "0.6.0": [ { "comment_text": "", "digests": { "md5": "5fa2a088edff04398270b88ecbfdad1f", "sha256": "43e93c698f1af41a3e5fe586a22d3c55b3dc96af9fe89682dff4371a06c8f17c" }, "downloads": -1, "filename": "ipydeps-0.6.0.tar.gz", "has_sig": false, "md5_digest": "5fa2a088edff04398270b88ecbfdad1f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5311, "upload_time": "2018-04-12T19:35:49", "url": "https://files.pythonhosted.org/packages/37/1b/e256e4499925df8a53ec5895733271f896dbe73bce32211f08ccb67ac9c5/ipydeps-0.6.0.tar.gz" } ], "0.6.1": [ { "comment_text": "", "digests": { "md5": "c157a9a2d7548e8013b5062c2d38d054", "sha256": "a55839f03ff058f6a41f81a33479498ae5385f6aa05a92350f1e63fdca85556a" }, "downloads": -1, "filename": "ipydeps-0.6.1.tar.gz", "has_sig": false, "md5_digest": "c157a9a2d7548e8013b5062c2d38d054", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5323, "upload_time": "2018-04-18T04:55:04", "url": "https://files.pythonhosted.org/packages/4b/0b/c60b3d1148c34eb57bd8040c4886bae930259e1333e5ced36ee668c66e37/ipydeps-0.6.1.tar.gz" } ], "0.7.0": [ { "comment_text": "", "digests": { "md5": "27b4e08fac72509ae802832b0e936535", "sha256": "4a41f2c442ada4b4e0d8255839b6df18820d0ca8091d17932efb4ebba7c4da43" }, "downloads": -1, "filename": "ipydeps-0.7.0.tar.gz", "has_sig": true, "md5_digest": "27b4e08fac72509ae802832b0e936535", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6171, "upload_time": "2018-05-02T20:37:38", "url": "https://files.pythonhosted.org/packages/5f/58/ac67b588c3025457e0b8d9b0317cd65d6ddf592e9a4ad2403c1eca101f3e/ipydeps-0.7.0.tar.gz" } ], "0.8.0": [ { "comment_text": "", "digests": { "md5": "f59349d76e0e5226c9573568552bac1c", "sha256": "5319cfbd66e91c999e91f5e115477c9b4e0985cbd04a21cd860e5aee2546986b" }, "downloads": -1, "filename": "ipydeps-0.8.0.tar.gz", "has_sig": true, "md5_digest": "f59349d76e0e5226c9573568552bac1c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7951, "upload_time": "2018-11-09T05:49:49", "url": "https://files.pythonhosted.org/packages/06/42/97e0523d8b3051a3a135380c2482c29e0a9213fbdeaaf1848d3777c1633b/ipydeps-0.8.0.tar.gz" } ], "0.8.1": [ { "comment_text": "", "digests": { "md5": "fade4ea75bfcf0d81c199f42921469ae", "sha256": "c4d330084ebcf58b510cc87277be6f6c0f78b31647297040a9bec29aef640bd8" }, "downloads": -1, "filename": "ipydeps-0.8.1.tar.gz", "has_sig": true, "md5_digest": "fade4ea75bfcf0d81c199f42921469ae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8010, "upload_time": "2018-12-20T19:48:27", "url": "https://files.pythonhosted.org/packages/9c/b0/f8058e0ccc156d20cc63b42b01caa29035af32c91f60dee14d7ee7ba0a6f/ipydeps-0.8.1.tar.gz" } ], "0.8.2": [ { "comment_text": "", "digests": { "md5": "dc2600bf428fa76b16acffbd6a84b00e", "sha256": "b0bbff37f346ea8061b1d763c5a3e964bb66ffbac65f722b3d82a9cbab6e196f" }, "downloads": -1, "filename": "ipydeps-0.8.2.tar.gz", "has_sig": true, "md5_digest": "dc2600bf428fa76b16acffbd6a84b00e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9866, "upload_time": "2019-04-04T20:26:01", "url": "https://files.pythonhosted.org/packages/36/b2/67f99a2f1f4bba85e6f64d6c01b961782045186a7de5dcf7ffd987b2d80b/ipydeps-0.8.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "dc2600bf428fa76b16acffbd6a84b00e", "sha256": "b0bbff37f346ea8061b1d763c5a3e964bb66ffbac65f722b3d82a9cbab6e196f" }, "downloads": -1, "filename": "ipydeps-0.8.2.tar.gz", "has_sig": true, "md5_digest": "dc2600bf428fa76b16acffbd6a84b00e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9866, "upload_time": "2019-04-04T20:26:01", "url": "https://files.pythonhosted.org/packages/36/b2/67f99a2f1f4bba85e6f64d6c01b961782045186a7de5dcf7ffd987b2d80b/ipydeps-0.8.2.tar.gz" } ] }