By George Pamfilis


2018-05-12 14:30:28 8 Comments

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"}.

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.

UPDATE!!

the strangest thing just happened. i typed in my browser URL http://localhost:8888/terminals/10 pressed enter and a new terminal was created! I assume it was a GET request. We are close... I can make one now. help me send a command to it.

0 comments

Related Questions

Sponsored Content

23 Answered Questions

[SOLVED] HTTP GET request in JavaScript?

20 Answered Questions

[SOLVED] How do I download a file over HTTP using Python?

  • 2008-08-22 15:34:13
  • Owen
  • 806128 View
  • 694 Score
  • 20 Answer
  • Tags:   python http urllib

11 Answered Questions

8 Answered Questions

[SOLVED] How are parameters sent in an HTTP POST request?

18 Answered Questions

[SOLVED] How to make an HTTP POST request in node.js?

1 Answered Questions

[SOLVED] Adjust Width of Jupyter Terminal

0 Answered Questions

How to start a jupyter notebook terminal from within the jupyter notebook?

15 Answered Questions

[SOLVED] Using IPython notebooks under version control

1 Answered Questions

jupyter notebook in Mac OSX Sierra Terminal Not Working

Sponsored Content