Skip to content

How to send commands to a jupyter notebook terminal through http requests such as POST. #3611

@gpamfilis

Description

@gpamfilis

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions