All Projects → vericast → spylon-kernel

vericast / spylon-kernel

Licence: other
Jupyter kernel for scala and spark

Programming Languages

python
139335 projects - #7 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to spylon-kernel

Dyalog Jupyter Kernel
A Jupyter kernel for Dyalog APL
Stars: ✭ 26 (-83.75%)
Mutual labels:  kernel, jupyter-kernels
imongo
A MongoDB kernel for Jupyter
Stars: ✭ 51 (-68.12%)
Mutual labels:  kernel, jupyter-kernels
Spylon Kernel
Jupyter kernel for scala and spark
Stars: ✭ 129 (-19.37%)
Mutual labels:  kernel, jupyter-kernels
Enterprise gateway
A lightweight, multi-tenant, scalable and secure gateway that enables Jupyter Notebooks to share resources across distributed clusters such as Apache Spark, Kubernetes and others.
Stars: ✭ 412 (+157.5%)
Mutual labels:  kernel, jupyter-kernels
coq jupyter
Jupyter kernel for Coq
Stars: ✭ 70 (-56.25%)
Mutual labels:  kernel, jupyter-kernels
HEVD Kernel Exploit
Exploits pack for the Windows Kernel mode driver HackSysExtremeVulnerableDriver written for educational purposes.
Stars: ✭ 44 (-72.5%)
Mutual labels:  kernel
Driver.NET
Lightweight and flexible library to load and communicate with kernel drivers on Windows.
Stars: ✭ 59 (-63.12%)
Mutual labels:  kernel
scaraOS
A 32bit multiboot OS kernel for IA32 (PC/AT) systems.
Stars: ✭ 31 (-80.62%)
Mutual labels:  kernel
docker-cheat-sheet
All about docker commands
Stars: ✭ 50 (-68.75%)
Mutual labels:  kernel
Understanding Linux Kernel Vulnerability
Understanding Linux Kernel Vulnerability
Stars: ✭ 21 (-86.87%)
Mutual labels:  kernel
Sphinx-Dipper
Sphinx Custom Kernel for Mi 8 (Dipper)
Stars: ✭ 17 (-89.37%)
Mutual labels:  kernel
OpenHarmony
华为鸿蒙分布式操作系统(Huawei OpenHarmony)开发技术交流,鸿蒙技术资料,手册,指南,共建国产操作系统万物互联新生态。
Stars: ✭ 373 (+133.13%)
Mutual labels:  kernel
poplar
Microkernel and userspace written in Rust exploring modern ideas
Stars: ✭ 217 (+35.63%)
Mutual labels:  kernel
kernel-syslog
📝 Kernel module that can be used as a replacement for syslog, logger or logwrapper
Stars: ✭ 37 (-76.87%)
Mutual labels:  kernel
ZeldaOS
32bit OS/kernel built from scratch with POSIX.1 compliance
Stars: ✭ 23 (-85.62%)
Mutual labels:  kernel
homebrew-i386-elf-toolchain
Homebrew formulas for buildling a valid GCC toolchain for the i386-elf target.
Stars: ✭ 62 (-61.25%)
Mutual labels:  kernel
yask
YASK--Yet Another Stencil Kit: a domain-specific language and framework to create high-performance stencil code for implementing finite-difference methods and similar applications.
Stars: ✭ 81 (-49.37%)
Mutual labels:  kernel
SimpleOS
Operating System Coded in Assembly and C
Stars: ✭ 72 (-55%)
Mutual labels:  kernel
TravorOS
A simple OS running on Intel x86 architecture | No longer updating
Stars: ✭ 24 (-85%)
Mutual labels:  kernel
KA27
A Mod version of KernelAdiutor (An application which manages kernel parameters)
Stars: ✭ 15 (-90.62%)
Mutual labels:  kernel

spylon-kernel

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. Build Status codecov

A Scala Jupyter kernel that uses metakernel in combination with py4j.

Prerequisites

  • Apache Spark 2.1.1 compiled for Scala 2.11
  • Jupyter Notebook
  • Python 3.5+

Install

You can install the spylon-kernel package using pip or conda.

pip install spylon-kernel
# or
conda install -c conda-forge spylon-kernel

Using it as a Scala Kernel

You can use spylon-kernel as Scala kernel for Jupyter Notebook. Do this when you want to work with Spark in Scala with a bit of Python code mixed in.

Create a kernel spec for Jupyter notebook by running the following command:

python -m spylon_kernel install

Launch jupyter notebook and you should see a spylon-kernel as an option in the New dropdown menu.

See the basic example notebook for information about how to intiialize a Spark session and use it both in Scala and Python.

Using it as an IPython Magic

You can also use spylon-kernel as a magic in an IPython notebook. Do this when you want to mix a little bit of Scala into your primarily Python notebook.

from spylon_kernel import register_ipython_magics
register_ipython_magics()
%%scala
val x = 8
x

Using it as a Library

Finally, you can use spylon-kernel as a Python library. Do this when you want to evaluate a string of Scala code in a Python script or shell.

from spylon_kernel import get_scala_interpreter

interp = get_scala_interpreter()

# Evaluate the result of a scala code block.
interp.interpret("""
    val x = 8
    x
""")

interp.last_result()

Release Process

Push a tag and submit a source dist to PyPI.

git commit -m 'REL: 0.2.1' --allow-empty
git tag -a 0.2.1 # and enter the same message as the commit
git push origin master # or send a PR

# if everything builds / tests cleanly, release to pypi
make release

Then update https://github.com/conda-forge/spylon-kernel-feedstock.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].