I have opened a jupyter terminal at http://localhost:8888/terminals/1 is there a way to send a POST request to this url in order to run a command. for example {"command":"ls"} to see what files are there or {"command":"python runsomething.py"}. I tried doing a GET request from POSTMAN even after i included the token and it complained about javascript. Is there a way to this though because i can not seem to find it in the documentation.
EDIT
i know how to run general terminal commands (not jupyter notebook terminal)from a notebook cell using !python runsomething.py etc. What i am interested is purely an http communication with a terminal opened from jupyter.