achieved passing python code from JS to kernel.py through websocket protocol