Skip to content

Instantly share code, notes, and snippets.

@SpencerPark
SpencerPark / IJava.ipynb
Last active April 18, 2023 14:19
A base notebook to install the IJava kernel (and ipc proxy) in google colab. Based on https://gist.github.com/tueda/a200b3f747d0fc864be8b4dd09be5a1e
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@SpencerPark
SpencerPark / install_ipc_proxy_kernel.py
Last active December 20, 2023 13:26
A little proxy kernel (and installer) that manages a wrapped kernel connected with tcp. It was designed to support the case where the server starts kernels with ipc transport but only tcp is supported (like IJava). See https://gist.github.com/SpencerPark/447de114fcd3e6a272dc140809462e30 for a sample notebook that installs this.
import argparse
import json
import os
import os.path
import shutil
import sys
from jupyter_client.kernelspec import KernelSpec, KernelSpecManager, NoSuchKernel
parser = argparse.ArgumentParser()