Skip to content

Instantly share code, notes, and snippets.

@glor
glor / install_ijavascript_kernel.sh
Created June 16, 2022 10:48
Add a locally installed JavaScript (node.js) Kernel to a hosted Jupyter(Lab) instance, permanently
#!/bin/bash
# Dependency: node and npm must be installed on the jupyter(lab) instance. This could probably also be hacked around using nvm (node version manager)
cd
npm i ijavascript
npx ijsinstall
sed -i 's/ijskernel/node", "\/home\/jovyan\/node_modules\/ijavascript\/lib\/kernel\.js/g' .local/share/jupyter/kernels/javascript/kernel.json
echo "Try to refresh the page (F5). JavaScript notebook and console should be available then."