{ "info": { "author": "SwiftAce", "author_email": "opensource@swiftace.ai", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# `kernel-run` \ud83d\udd25\ud83d\ude80\n\nInstantly create and run a Kaggle kernel from any Jupyter notebook (local file or URL).\n\n![kaggle-run-demo](https://i.imgur.com/KsrIYH3.gif)\n\n```\n$ pip install kernel-run --upgrade\n\n$ kernel-run path/to/notebook.ipynb\nKernel created successfully: https://www.kaggle.com/aakashns/kr-notebook/edit\n\n$ kernel-run http://cs231n.stanford.edu/notebooks/pytorch_tutorial.ipynb\nKernel created successfully: https://www.kaggle.com/aakashns/kr-pytorch-tutorial/edit\n```\n\n`kernel-run` uploads the Jupyter notebook to a private kernel in your Kaggle account, and launches a browser window so you can start editing/executing the code immediately.\n\n## Installation\n\n```\npip install kernel-run --upgrade\n```\n\nThe above command install a command-line tool called `kernel-run` which can be invoked from the terminal/command prompt.\n\nNote: To allow `kaggle-run` to upload the notebook to your Kaggle account, you need to download the [Kaggle API credentials file `kaggle.json`](https://github.com/Kaggle/kaggle-api#api-credentials). To download the `kaggle.json` file:\n\n1. Go to https://kaggle.com\n2. Log in and go to your account page\n3. Click the \"Create New API Token\" button in the \"API\" section\n4. Move the downloaded `kaggle.json` file to the folder `~/.kaggle/`\n\n## CLI Usage & Options\n\nRun the `kernel-run` command on your terminal/command prompt with a Jupyter notebook's path (or URL) as the argument:\n\n```\n$ kernel-run path/to/notebook.ipynb\nKernel created successfully: https://www.kaggle.com/aakashns/kr-notebook/edit\n\n$ kernel-run http://cs231n.stanford.edu/notebooks/pytorch_tutorial.ipynb\nKernel created successfully: https://www.kaggle.com/aakashns/kr-pytorch-tutorial/edit\n```\n\nThere are various options you can configure. Run `kernel-run -h` to see the options:\n\n```\nusage: kernel-run notebook_path_or_url [-h] [--public] [--new] [--no-browser] [--strip-output] [--prefix PREFIX]\n\npositional arguments:\n notebook_path_or_url Path/URL of the Jupyter notebook\n\noptional arguments:\n -h, --help show this help message and exit\n --public Create a public kernel\n --new Create a new kernel, if a kernel with the same name exists\n --no-browser Don't open a browser window automatically\n --strip-output Clear output cells before uploading notebook (useful for large files)\n --prefix PREFIX Prefix added to kernel title to easy identification (defaults to 'kr/')\n```\n\n## Python API\n\nYou can also use the library form a Python script or Jupyter notebook. It can be imported as `kernel_run`.\n\n```python\nfrom kernel_run import create_kernel\n\ncreate_kernel('path/to/notebook.ipynb', public=True, no_browser=True)\n# Kernel created successfully: https://www.kaggle.com/aakashns/kr-notebook/edit\n```\n\nThe arguments to `create_kernel` are identical to the CLI options:\n\n```python\ndef create_kernel(path_or_url, public=False, no_browser=False, new=False,\n strip_output=False, prefix='kr/', creds_path=None):\n \"\"\"Instantly create and run a Kaggle kernel from a Jupyter notebook (local file or URL)\n\n Arguments:\n path_or_url (string): Path/URL to the Jupyter notebook\n public (bool, optional): If true, creates a public kernel. A private kernel\n is created by default.\n no_browser (bool, optional): If true, does not attempt to automatically open\n a browser tab to edit the created Kernel\n new (bool, optional): If true, creates a new Kernel by adding a random\n 5-letter string at the end of the title\n prefix (string, optional): A prefix added to the Kernel title, to indicate that\n the Kernel was created using kernel-run\n creds_path (string, optional): Path to the 'kaggle.json' credentials file\n (defaults to '~/.kaggle/kaggle.json')\n strip_output (bool, optional): Clear output cells before uploading notebook.\n \"\"\"\n```\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/swiftace-ai/kernel-run", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "kernel-run", "package_url": "https://pypi.org/project/kernel-run/", "platform": "", "project_url": "https://pypi.org/project/kernel-run/", "project_urls": { "Homepage": "https://github.com/swiftace-ai/kernel-run" }, "release_url": "https://pypi.org/project/kernel-run/0.0.12/", "requires_dist": [ "requests", "six" ], "requires_python": "", "summary": "Run any Jupyter notebook on Kaggle kernels instantly", "version": "0.0.12" }, "last_serial": 5419425, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "ea5651103cc27027276d778e51825c83", "sha256": "ea1d8e281407ab77c0ad49dfc91d3f733003d635cf6152f90b2bb192120304ef" }, "downloads": -1, "filename": "kernel_run-0.0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "ea5651103cc27027276d778e51825c83", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 3733, "upload_time": "2019-05-18T22:06:43", "url": "https://files.pythonhosted.org/packages/66/23/5d71134085c0acf6f32d8d26fcadcdc448f9bb2e7b3064f6cf9f0c8d0a77/kernel_run-0.0.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cfab6a60fbfb6795089bb210008cc426", "sha256": "942a1f05b6268389e10fdf26b45648798198974506c3a45daba4c9a624520c33" }, "downloads": -1, "filename": "kernel-run-0.0.1.tar.gz", "has_sig": false, "md5_digest": "cfab6a60fbfb6795089bb210008cc426", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3126, "upload_time": "2019-05-18T22:06:45", "url": "https://files.pythonhosted.org/packages/a6/f9/230a3c39de0ae385641f1c4c4747c28d002bc25f95afdac1128c3f290a47/kernel-run-0.0.1.tar.gz" } ], "0.0.10": [ { "comment_text": "", "digests": { "md5": "c90e7355569807d01513fcc34ede179a", "sha256": "c15831455325e11b5e5a6438e2d9f0f749aab69cf2acc0c0e08bf228283e1633" }, "downloads": -1, "filename": "kernel_run-0.0.10-py2-none-any.whl", "has_sig": false, "md5_digest": "c90e7355569807d01513fcc34ede179a", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 8355, "upload_time": "2019-05-23T10:58:41", "url": "https://files.pythonhosted.org/packages/e9/65/67c03ef929f42549b4463b1112d06f411fde7859fe931f194f6b2d1416b4/kernel_run-0.0.10-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "706ed0a8b446ff06cfa2e3c1b2b13499", "sha256": "ba6003b7d28df4eec38b837cc344ff04020d52a3d056468dd49e1315773dc37e" }, "downloads": -1, "filename": "kernel-run-0.0.10.tar.gz", "has_sig": false, "md5_digest": "706ed0a8b446ff06cfa2e3c1b2b13499", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5971, "upload_time": "2019-05-23T10:58:43", "url": "https://files.pythonhosted.org/packages/4f/7f/02ea860e25eb75aa65da6d6e97864bed0cc884e9a2bff18919713ffd22a9/kernel-run-0.0.10.tar.gz" } ], "0.0.11": [ { "comment_text": "", "digests": { "md5": "64353a0733d6f45cca86e955fbaa0d91", "sha256": "816fdb36ffe8f46f879ed2de5561523fcc28eb1d1243868b772d44cda65b0582" }, "downloads": -1, "filename": "kernel_run-0.0.11-py2-none-any.whl", "has_sig": false, "md5_digest": "64353a0733d6f45cca86e955fbaa0d91", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 8354, "upload_time": "2019-05-23T11:03:45", "url": "https://files.pythonhosted.org/packages/ea/2a/be52e69bcd41b53c5f664ed7119d8861083ce94d3ca3caf619e0b01c353a/kernel_run-0.0.11-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f6f0cf2a390533e759c09bb2218f31a9", "sha256": "2e5c5931489d936d3536c39b5b66db0e80bc103e9390abfef1045d2d216d23af" }, "downloads": -1, "filename": "kernel-run-0.0.11.tar.gz", "has_sig": false, "md5_digest": "f6f0cf2a390533e759c09bb2218f31a9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5976, "upload_time": "2019-05-23T11:03:46", "url": "https://files.pythonhosted.org/packages/dd/6a/b6d7aac44d29e49401472aea4a19d1fd726d6db46e2ae29aa43cf48ce61c/kernel-run-0.0.11.tar.gz" } ], "0.0.12": [ { "comment_text": "", "digests": { "md5": "70fdb7239f6fa5cc768a28cdc53ae2b1", "sha256": "abe0aa92502b15a8a056efa068213bd67da886ff49cfea04276b54bebe3f4f9d" }, "downloads": -1, "filename": "kernel_run-0.0.12-py3-none-any.whl", "has_sig": false, "md5_digest": "70fdb7239f6fa5cc768a28cdc53ae2b1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8404, "upload_time": "2019-06-19T09:25:45", "url": "https://files.pythonhosted.org/packages/62/0f/d1eb37aaf1d417660bd1003fdc0e2c2c71e3551c893b44746e70c5507daf/kernel_run-0.0.12-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "63336f7d99a04845daa16cad7656dfab", "sha256": "be14f53483f2cd1ffd0b5f213d797ee3a0ea9721227f0ffc8ff42a20587a6ba9" }, "downloads": -1, "filename": "kernel-run-0.0.12.tar.gz", "has_sig": false, "md5_digest": "63336f7d99a04845daa16cad7656dfab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5984, "upload_time": "2019-06-19T09:25:47", "url": "https://files.pythonhosted.org/packages/ff/45/ffa2c84f51ec638f807d8b4aa0c1c2c7b51abcfa69c3371652450f6e967c/kernel-run-0.0.12.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "7341404da614fda2502a081eb6bef125", "sha256": "1522c819585829fe6ef96392ae19aafe0ad52007ac580a229df00fdbf196a43a" }, "downloads": -1, "filename": "kernel_run-0.0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "7341404da614fda2502a081eb6bef125", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 4116, "upload_time": "2019-05-18T22:15:07", "url": "https://files.pythonhosted.org/packages/49/87/5fc74131378a1762c3c1f65abe81511dab9b71b66d98ee1066e480a8dcb3/kernel_run-0.0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "76230aec7fc11aabef795446ab1e51bc", "sha256": "a991933ebeb27c742bff8e49f250392fbbff05c1a0e5420c0092bee1d9a46305" }, "downloads": -1, "filename": "kernel-run-0.0.2.tar.gz", "has_sig": false, "md5_digest": "76230aec7fc11aabef795446ab1e51bc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3464, "upload_time": "2019-05-18T22:15:08", "url": "https://files.pythonhosted.org/packages/12/c7/37b5721d0ef425fc386d27e0a77634bb9cb4ee84e4d038156b1dd7a2e954/kernel-run-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "f4587454c91b34b22e51d10a6d0acb5e", "sha256": "a5fc1e7e716cdb982d261377b17bdb961c91df76fbce4b967b985cf3163be970" }, "downloads": -1, "filename": "kernel_run-0.0.3-py2-none-any.whl", "has_sig": false, "md5_digest": "f4587454c91b34b22e51d10a6d0acb5e", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 6867, "upload_time": "2019-05-22T12:35:40", "url": "https://files.pythonhosted.org/packages/88/ed/39530771122becb18342e023f23b48dcbe55e5c47aa297c52085c9ba5172/kernel_run-0.0.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9aeefe24f09a9bdc92221fefa72d680d", "sha256": "e6ea4883ed8386447477fe6285dae3a134f8fab57a2a26282dbaf46bac692fb5" }, "downloads": -1, "filename": "kernel-run-0.0.3.tar.gz", "has_sig": false, "md5_digest": "9aeefe24f09a9bdc92221fefa72d680d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4886, "upload_time": "2019-05-22T12:35:42", "url": "https://files.pythonhosted.org/packages/cb/ab/3f0ccf11968a462182dc67548c8380b3d5b0b0ec97c5f9c6d978b207201a/kernel-run-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "3664f1d2c4d073b2688c77ca9b0b9cc4", "sha256": "a948133e9a9a1e7318ccb4fa36491fc34cc910d5361f9b2590f4f4d9f08b788b" }, "downloads": -1, "filename": "kernel_run-0.0.4-py2-none-any.whl", "has_sig": false, "md5_digest": "3664f1d2c4d073b2688c77ca9b0b9cc4", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 7348, "upload_time": "2019-05-22T13:11:53", "url": "https://files.pythonhosted.org/packages/bc/6e/cf4fe892242f67f7159e50fb59183738956f4e245fee0201a179e26f7d80/kernel_run-0.0.4-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2c6f5471d57d4921d602dfa73c0a3b22", "sha256": "07f8fc8f83159f35fb2ba91736cdfb3d367fe08a39703de9261acc652cf095b7" }, "downloads": -1, "filename": "kernel-run-0.0.4.tar.gz", "has_sig": false, "md5_digest": "2c6f5471d57d4921d602dfa73c0a3b22", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5202, "upload_time": "2019-05-22T13:11:54", "url": "https://files.pythonhosted.org/packages/8b/a7/a77d7cac9cd7301bd4dd67d4daf7f01eed3e583726b897568711589dfa8d/kernel-run-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "cf5f7c7cdb59641f4623f168bc60329e", "sha256": "209ddc75c5597ad4583dbd5dc480d0603f1bde6c4b8bee082336ca7e282b1c4f" }, "downloads": -1, "filename": "kernel_run-0.0.5-py2-none-any.whl", "has_sig": false, "md5_digest": "cf5f7c7cdb59641f4623f168bc60329e", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 7342, "upload_time": "2019-05-22T15:56:12", "url": "https://files.pythonhosted.org/packages/36/6d/2f852240ad69c168ca25a84dc4c0269f5aed8f63da28786b73aa845d18b8/kernel_run-0.0.5-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "18f51c3cc2c0046477c01769729f1f43", "sha256": "7cc4ac010f248c35b44d4225e6b9381c230e7d0c2d912d480bb45706fe499aea" }, "downloads": -1, "filename": "kernel-run-0.0.5.tar.gz", "has_sig": false, "md5_digest": "18f51c3cc2c0046477c01769729f1f43", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5206, "upload_time": "2019-05-22T15:56:14", "url": "https://files.pythonhosted.org/packages/09/68/fb57d332a4c91ceb2b37f554741f7ebbd9cdc1db0370fbc142dda890c19c/kernel-run-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "d9e0fce2937204b1162369950399092e", "sha256": "52b02021725c686ee47e09ec0b3ef30adc86b36edafaa779255cc3de3ce7c71e" }, "downloads": -1, "filename": "kernel_run-0.0.6-py2-none-any.whl", "has_sig": false, "md5_digest": "d9e0fce2937204b1162369950399092e", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 8273, "upload_time": "2019-05-22T16:25:46", "url": "https://files.pythonhosted.org/packages/e9/f4/f6d6cfd4628fe56c20b8a0fe2dadfc0bbccb339fe57119e8e5dce8d266d3/kernel_run-0.0.6-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d4473f7ff209bd6b2c689f59c2597824", "sha256": "daef2029a888cf47943bb8701550d86b5ea40725e9be7693d552f0f8e682e056" }, "downloads": -1, "filename": "kernel-run-0.0.6.tar.gz", "has_sig": false, "md5_digest": "d4473f7ff209bd6b2c689f59c2597824", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5864, "upload_time": "2019-05-22T16:25:48", "url": "https://files.pythonhosted.org/packages/5f/c9/5ba64140a7b276c57489bc5a58eed962cfbed09c7dc6935bda199b7c5e17/kernel-run-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "153474631ebb39c81cc7fd65b0348e84", "sha256": "66f3def02e75758b36c04a3969c1c17dce6936b1edebe310c163b2859e8d647d" }, "downloads": -1, "filename": "kernel_run-0.0.7-py2-none-any.whl", "has_sig": false, "md5_digest": "153474631ebb39c81cc7fd65b0348e84", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 8319, "upload_time": "2019-05-22T16:45:36", "url": "https://files.pythonhosted.org/packages/cd/86/e6997f9d129fdb25f6ec1b59eed7e31b1ea0cfad0efc66529ea1bf2505f1/kernel_run-0.0.7-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3943217d39e8e38ce5fc08745087e8af", "sha256": "5a7105a9301f9569d468dcaedccb0982491a0739990a6801d7992a6ecad40d32" }, "downloads": -1, "filename": "kernel-run-0.0.7.tar.gz", "has_sig": false, "md5_digest": "3943217d39e8e38ce5fc08745087e8af", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5925, "upload_time": "2019-05-22T16:45:38", "url": "https://files.pythonhosted.org/packages/9a/bf/76b6ce3090d93523c00fc9ce1cd26b050c54d608b345612736557fd9a983/kernel-run-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "78e674ecbdb0de0e9bf93e0eceb37080", "sha256": "f1a1f7f93679268b90dd5696337daea47df904689d290d1bb8791560eaf68b68" }, "downloads": -1, "filename": "kernel_run-0.0.8-py2-none-any.whl", "has_sig": false, "md5_digest": "78e674ecbdb0de0e9bf93e0eceb37080", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 8322, "upload_time": "2019-05-23T10:41:52", "url": "https://files.pythonhosted.org/packages/a4/15/5c0e11c39bf4f5c57ee623ae02a931c7a55af57301d7d255e472d752e9e0/kernel_run-0.0.8-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2d4a5f1e3de057ce851486f4530f8545", "sha256": "18055f2d376f6d0f875900e06a51fcc0c56b3558f5eab7f102ad267c8c9407f5" }, "downloads": -1, "filename": "kernel-run-0.0.8.tar.gz", "has_sig": false, "md5_digest": "2d4a5f1e3de057ce851486f4530f8545", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5947, "upload_time": "2019-05-23T10:41:54", "url": "https://files.pythonhosted.org/packages/59/70/23cae84ba0f7bbce9e5c624581dfe96cdaaabda64b2b07f111367aa3810c/kernel-run-0.0.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "70fdb7239f6fa5cc768a28cdc53ae2b1", "sha256": "abe0aa92502b15a8a056efa068213bd67da886ff49cfea04276b54bebe3f4f9d" }, "downloads": -1, "filename": "kernel_run-0.0.12-py3-none-any.whl", "has_sig": false, "md5_digest": "70fdb7239f6fa5cc768a28cdc53ae2b1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8404, "upload_time": "2019-06-19T09:25:45", "url": "https://files.pythonhosted.org/packages/62/0f/d1eb37aaf1d417660bd1003fdc0e2c2c71e3551c893b44746e70c5507daf/kernel_run-0.0.12-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "63336f7d99a04845daa16cad7656dfab", "sha256": "be14f53483f2cd1ffd0b5f213d797ee3a0ea9721227f0ffc8ff42a20587a6ba9" }, "downloads": -1, "filename": "kernel-run-0.0.12.tar.gz", "has_sig": false, "md5_digest": "63336f7d99a04845daa16cad7656dfab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5984, "upload_time": "2019-06-19T09:25:47", "url": "https://files.pythonhosted.org/packages/ff/45/ffa2c84f51ec638f807d8b4aa0c1c2c7b51abcfa69c3371652450f6e967c/kernel-run-0.0.12.tar.gz" } ] }