{ "info": { "author": "Marius van Niekerk", "author_email": "marius.v.niekerk+spylon@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "Intended Audience :: Science/Research", "Intended Audience :: System Administrators", "License :: OSI Approved :: BSD License", "Programming Language :: Python" ], "description": "# spylon-kernel\n[![Build Status](https://travis-ci.org/maxpoint/spylon-kernel.svg?branch=master)](https://travis-ci.org/maxpoint/spylon-kernel)\n[![codecov](https://codecov.io/gh/maxpoint/spylon-kernel/branch/master/graph/badge.svg)](https://codecov.io/gh/maxpoint/spylon-kernel)\n\nA Scala [Jupyter kernel](http://jupyter.readthedocs.io/en/latest/projects/kernels.html) that uses [metakernel](https://github.com/Calysto/metakernel) in combination with [py4j](https://www.py4j.org/).\n\n## Prerequisites\n\n* Apache Spark 2.1.1 compiled for Scala 2.11\n* Jupyter Notebook\n* Python 3.5+\n\n## Install\n\nYou can install the spylon-kernel package using `pip` or `conda`.\n\n```bash\npip install spylon-kernel\n# or\nconda install -c conda-forge spylon-kernel\n```\n\n## Using it as a Scala Kernel\n\nYou can use spylon-kernel as Scala kernel for Jupyter Notebook. Do this when you want\nto work with Spark in Scala with a bit of Python code mixed in.\n\nCreate a kernel spec for Jupyter notebook by running the following command:\n\n```bash\npython -m spylon_kernel install\n```\n\nLaunch `jupyter notebook` and you should see a `spylon-kernel` as an option\nin the *New* dropdown menu.\n\nSee [the basic example notebook](./examples/basic_example.ipynb) for information\nabout how to intiialize a Spark session and use it both in Scala and Python.\n\n## Using it as an IPython Magic\n\nYou can also use spylon-kernel as a magic in an IPython notebook. Do this when\nyou want to mix a little bit of Scala into your primarily Python notebook.\n\n```python\nfrom spylon_kernel import register_ipython_magics\nregister_ipython_magics()\n```\n\n```scala\n%%scala\nval x = 8\nx\n```\n\n## Using it as a Library\n\nFinally, you can use spylon-kernel as a Python library. Do this when you\nwant to evaluate a string of Scala code in a Python script or shell.\n\n```python\nfrom spylon_kernel import get_scala_interpreter\n\ninterp = get_scala_interpreter()\n\n# Evaluate the result of a scala code block.\ninterp.interpret(\"\"\"\n val x = 8\n x\n\"\"\")\n\ninterp.last_result()\n```\n\n# Release Process\n\nPush a tag and submit a source dist to PyPI.\n\n```\ngit commit -m 'REL: 0.2.1' --allow-empty\ngit tag -a 0.2.1 # and enter the same message as the commit\ngit push origin master # or send a PR\n\n# if everything builds / tests cleanly, release to pypi\nmake release\n```\n\nThen update https://github.com/conda-forge/spylon-kernel-feedstock.\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/maxpoint/spylon-kernel", "keywords": "", "license": "BSD 3-clause", "maintainer": "", "maintainer_email": "", "name": "spylon-kernel", "package_url": "https://pypi.org/project/spylon-kernel/", "platform": "", "project_url": "https://pypi.org/project/spylon-kernel/", "project_urls": { "Homepage": "http://github.com/maxpoint/spylon-kernel" }, "release_url": "https://pypi.org/project/spylon-kernel/0.4.1/", "requires_dist": null, "requires_python": "", "summary": "Jupyter metakernel for apache spark and scala", "version": "0.4.1" }, "last_serial": 3700180, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "6fb5def4f98fbdeee72d02b0e6734913", "sha256": "0998b1723dacdf08b8d095dbb744cbd9f9e4dbcf3e3b99478e2cdcda2c28d947" }, "downloads": -1, "filename": "spylon_kernel-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6fb5def4f98fbdeee72d02b0e6734913", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13263, "upload_time": "2017-01-03T23:11:15", "url": "https://files.pythonhosted.org/packages/30/7a/8b5a9b2568c7303bf2cd8a3939e45adc2955428907e6daf7a1accddca90e/spylon_kernel-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1f4be97447fa1cf1b02bfb18e95efd6c", "sha256": "dba22950a5cd4e2113e4e65409fa8e717f63df1732edcfc75748238780d65173" }, "downloads": -1, "filename": "spylon-kernel-0.0.1.tar.gz", "has_sig": false, "md5_digest": "1f4be97447fa1cf1b02bfb18e95efd6c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11150, "upload_time": "2017-01-03T23:11:16", "url": "https://files.pythonhosted.org/packages/5e/09/5726e9e9e17a9f01fbfa025e6b3bc4fd3615b194826f9ecd6628100a1cb8/spylon-kernel-0.0.1.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "8fde6d941df1eec0413e292532d07efd", "sha256": "7667ec67eb543b0dc7be4ee3105331178082309c8f2dcfef2970112928aabaa8" }, "downloads": -1, "filename": "spylon-kernel-0.1.0.tar.gz", "has_sig": false, "md5_digest": "8fde6d941df1eec0413e292532d07efd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 29111, "upload_time": "2017-01-09T16:39:01", "url": "https://files.pythonhosted.org/packages/25/ad/f2c4afe8b31ceaa0aa0b53ab71355e3b7bc8af4963562f37c9ccc7767d07/spylon-kernel-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "a691a125327e7465e790f58914dffd1c", "sha256": "4647473e02341f2d236eed541733dfbd07cb492526a1755e3443c677bae6d0c9" }, "downloads": -1, "filename": "spylon-kernel-0.1.1.tar.gz", "has_sig": false, "md5_digest": "a691a125327e7465e790f58914dffd1c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30914, "upload_time": "2017-01-09T17:48:57", "url": "https://files.pythonhosted.org/packages/4a/ae/f68fde5cb20538da3e169b3fe49d7c8db711df899bb5ed8458165d7a535c/spylon-kernel-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "4e0ce0ae2729b9e1daee0c81116ec93d", "sha256": "1e2117573f23d25c22e0323812b7a62bcbc9b57a11ecf4864389854675b6281b" }, "downloads": -1, "filename": "spylon-kernel-0.1.2.tar.gz", "has_sig": false, "md5_digest": "4e0ce0ae2729b9e1daee0c81116ec93d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30839, "upload_time": "2017-01-09T19:47:53", "url": "https://files.pythonhosted.org/packages/7a/19/4a57677a2ab0badb4f2fb63ef859518a99ea5500fda6922e72dafeb8702f/spylon-kernel-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "16623a3d3e7b237db031db6f725189d3", "sha256": "a7ee3b2024ed987cfca4aee5b7c7abd5952f0fcd852190f5a7439ec220a7b8bf" }, "downloads": -1, "filename": "spylon-kernel-0.1.3.tar.gz", "has_sig": false, "md5_digest": "16623a3d3e7b237db031db6f725189d3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30307, "upload_time": "2017-01-30T19:51:19", "url": "https://files.pythonhosted.org/packages/83/fd/c26b0a0976bdeb91751980d4d7a60e724a9925214a9ab2e814bf4f776986/spylon-kernel-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "49f6f02e7673ff88ddbcadeb5bc2a774", "sha256": "0b6d65f010ea2ba60ccb9d9fe56e517d6da30625ee7220dbe78bbfc7ac8c11c0" }, "downloads": -1, "filename": "spylon-kernel-0.1.4.tar.gz", "has_sig": false, "md5_digest": "49f6f02e7673ff88ddbcadeb5bc2a774", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30947, "upload_time": "2017-01-31T22:21:29", "url": "https://files.pythonhosted.org/packages/5c/e7/ae8f4eae34aeac405874318981ca39f8f6b7efac99f692e03aa116d93f0a/spylon-kernel-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "15587cdad4ee33366d79f7d938e95ce7", "sha256": "ef8161662d48f1fb94b6f06475df0e3dfd5b6b89be4d2efe657bca817b3ad9d9" }, "downloads": -1, "filename": "spylon-kernel-0.1.5.tar.gz", "has_sig": false, "md5_digest": "15587cdad4ee33366d79f7d938e95ce7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30935, "upload_time": "2017-01-31T22:52:35", "url": "https://files.pythonhosted.org/packages/0e/69/cff630d0a9840254d79ee515b0ee7348feed20101f090f8431f18096115c/spylon-kernel-0.1.5.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "3192e3b691dffefc17bc0535a1261018", "sha256": "aa875c6e78c5056643b3c7620acba7f527a4c1b652a1bd8ec8ceac5108ab6157" }, "downloads": -1, "filename": "spylon-kernel-0.2.0.tar.gz", "has_sig": false, "md5_digest": "3192e3b691dffefc17bc0535a1261018", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30805, "upload_time": "2017-03-05T04:27:34", "url": "https://files.pythonhosted.org/packages/c2/8b/5d2372595c6b03a3f6f619a3c1df2b7fdc8dd402ce5e94dbcb504a74dd7b/spylon-kernel-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "56075d85dcb8726395202dd4d40426a6", "sha256": "1a4da260fe93ff4eeede01084d2ec7a62a0e4b4f0519d229712bf8b6a20d3b33" }, "downloads": -1, "filename": "spylon-kernel-0.2.1.tar.gz", "has_sig": false, "md5_digest": "56075d85dcb8726395202dd4d40426a6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 31560, "upload_time": "2017-03-16T02:44:22", "url": "https://files.pythonhosted.org/packages/48/73/67ad45893bd2e1f2cb45b0fbb66132a499937d37e7281c045b88003bdac8/spylon-kernel-0.2.1.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "0dc255822908e2ca97eb85df3ad22287", "sha256": "370a0a2f340d9191810004e4a0465db38de16f614d9bdf94b210f6f563832c81" }, "downloads": -1, "filename": "spylon-kernel-0.3.0.tar.gz", "has_sig": false, "md5_digest": "0dc255822908e2ca97eb85df3ad22287", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33412, "upload_time": "2017-05-12T02:37:13", "url": "https://files.pythonhosted.org/packages/a0/d0/65e3dbb271051faee9ef43dddbccec29bcbfb59a0c09875957f25fc70473/spylon-kernel-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "9f3c8b469910933dd3eed09d00add8cd", "sha256": "a9a81526d3cdce371114e43c4d6eeac3a29aa564cbaed2bbc3d75ef837d6479a" }, "downloads": -1, "filename": "spylon-kernel-0.3.1.tar.gz", "has_sig": false, "md5_digest": "9f3c8b469910933dd3eed09d00add8cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33421, "upload_time": "2017-05-16T03:13:07", "url": "https://files.pythonhosted.org/packages/ac/96/50cb71686e2e58229d3404a5f44d44bb83bd57699c47fc341ddd0f58c18f/spylon-kernel-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "568a3a27263f5a26471609de057bbc5e", "sha256": "35b36d52370e03811f5ef67159f5c7f710b4f9aa36545a4d9bcbb031482ca030" }, "downloads": -1, "filename": "spylon-kernel-0.3.2.tar.gz", "has_sig": false, "md5_digest": "568a3a27263f5a26471609de057bbc5e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33294, "upload_time": "2017-05-23T18:06:28", "url": "https://files.pythonhosted.org/packages/47/be/8bbb9a3b178dd5bc6130311054d9b7832828f7dc691a83752bde1ecdbed7/spylon-kernel-0.3.2.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "d6d59fd9d99fa05d11112e6f1ff84019", "sha256": "79b55b74adaa70f8576e7dbb00c0b8ea66c9143da1f56ae7a81246a75bf74af2" }, "downloads": -1, "filename": "spylon-kernel-0.4.0.tar.gz", "has_sig": false, "md5_digest": "d6d59fd9d99fa05d11112e6f1ff84019", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33418, "upload_time": "2017-06-20T21:24:16", "url": "https://files.pythonhosted.org/packages/79/f4/ba645dda58eef306301e550a8c9ccb5f071dc7c4dc0c25e1991fd0048364/spylon-kernel-0.4.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "59727d9a737a39199bca545736b88283", "sha256": "378a6fc652f6af8dbfbd48668bc1a0bc68bca1f28e8932985d88a8f6da4b29ab" }, "downloads": -1, "filename": "spylon-kernel-0.4.1.tar.gz", "has_sig": false, "md5_digest": "59727d9a737a39199bca545736b88283", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33513, "upload_time": "2018-03-23T20:36:58", "url": "https://files.pythonhosted.org/packages/3b/26/0c1c289ab535489b0e290461b0f2c45a00d2033a50a58a45f6d00c5fb205/spylon-kernel-0.4.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "59727d9a737a39199bca545736b88283", "sha256": "378a6fc652f6af8dbfbd48668bc1a0bc68bca1f28e8932985d88a8f6da4b29ab" }, "downloads": -1, "filename": "spylon-kernel-0.4.1.tar.gz", "has_sig": false, "md5_digest": "59727d9a737a39199bca545736b88283", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33513, "upload_time": "2018-03-23T20:36:58", "url": "https://files.pythonhosted.org/packages/3b/26/0c1c289ab535489b0e290461b0f2c45a00d2033a50a58a45f6d00c5fb205/spylon-kernel-0.4.1.tar.gz" } ] }