Simple server and REPL to execute code inside ipykernel.
Install and run the web server:
pip install -e .
python -m ipyrepl
Then execute python code as below:
curl -d 'code=a=123' http://localhost:8080/execute
curl -d 'code=print(a)' http://localhost:8080/execute
To create a custom kernel within ipykernel such as the example
kernel in this folder...
python -m venv example-kernel
source example-kernel/bin/activate
pip install ipykernel [+ any other packages you want]
Set the following environment variables to use the example
kernel:
export JUPYTER_PATH=$PWD
export KERNEL_NAME=example