{"id":24295278,"url":"https://github.com/adtech-labs/spylon-kernel","last_synced_at":"2025-04-09T23:17:30.693Z","repository":{"id":49345585,"uuid":"74318368","full_name":"adtech-labs/spylon-kernel","owner":"adtech-labs","description":"Jupyter kernel for scala and spark","archived":false,"fork":false,"pushed_at":"2024-01-11T09:22:04.000Z","size":204,"stargazers_count":188,"open_issues_count":26,"forks_count":38,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-09T23:17:06.651Z","etag":null,"topics":["jupyter-kernels","kernel","metakernel","scala","spark","team-platform"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adtech-labs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-21T02:23:14.000Z","updated_at":"2025-03-06T09:12:21.000Z","dependencies_parsed_at":"2024-06-18T21:26:54.690Z","dependency_job_id":null,"html_url":"https://github.com/adtech-labs/spylon-kernel","commit_stats":null,"previous_names":["maxpoint/spylon-kernel","adtech-labs/spylon-kernel","vericast/spylon-kernel"],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adtech-labs%2Fspylon-kernel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adtech-labs%2Fspylon-kernel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adtech-labs%2Fspylon-kernel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adtech-labs%2Fspylon-kernel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adtech-labs","download_url":"https://codeload.github.com/adtech-labs/spylon-kernel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248125593,"owners_count":21051771,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jupyter-kernels","kernel","metakernel","scala","spark","team-platform"],"created_at":"2025-01-16T18:18:42.678Z","updated_at":"2025-04-09T23:17:30.665Z","avatar_url":"https://github.com/adtech-labs.png","language":"Python","readme":"# spylon-kernel\n\n[![Project Status: Inactive – The project has reached a stable, usable state but is no longer being actively developed; support/maintenance will be provided as time allows.](https://www.repostatus.org/badges/latest/inactive.svg)](https://www.repostatus.org/#inactive)\n[![Build Status](https://travis-ci.org/Valassis-Digital-Media/spylon-kernel.svg?branch=master)](https://travis-ci.org/maxpoint/spylon-kernel)\n[![codecov](https://codecov.io/gh/Valassis-Digital-Media/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","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadtech-labs%2Fspylon-kernel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadtech-labs%2Fspylon-kernel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadtech-labs%2Fspylon-kernel/lists"}