How to ineractive code cell in jupyter notebook via REST API

I’m trying to make a python or R interpreter server able to interact with my web server.

For example, If I write some code block in my web server and send these code to Interpreter server and get result of execution.

Jupyter Notebook seems not offering such features.

Is there any way to interact with code cell in jupyter notebook via REST API??