Because there's a "hardcoded" relationship between input parameter, kernel name, and source code file, we are not able to run the python, scala, and R demos on kernels with different kernel names.
Can you add parameters like --kernel-name <kernel_name> and --source <filename> to the client.py and client.js demonstration programs? These parameters would supersede the values in the dictionary within the code.
That way we could run:
node client.js --kernel-name new-scala-version --source example.scala
Because there's a "hardcoded" relationship between input parameter, kernel name, and source code file, we are not able to run the python, scala, and R demos on kernels with different kernel names.
kernel_gateway_demos/node_client_example/src/client.js
Line 15 in b7fd80b
Can you add parameters like
--kernel-name <kernel_name>and--source <filename>to the client.py and client.js demonstration programs? These parameters would supersede the values in the dictionary within the code.That way we could run:
node client.js --kernel-name new-scala-version --source example.scala