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


i know how to run general terminal commands (not jupyter notebook terminal)from a notebook cell using !python etc. What i am interested is purely an http communication with a terminal opened from jupyter.


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.


Related Questions

Sponsored Content

18 Answered Questions

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

23 Answered Questions

[SOLVED] HTTP GET request in JavaScript?

22 Answered Questions

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

  • 2008-08-22 15:34:13
  • Owen
  • 877175 View
  • 728 Score
  • 22 Answer
  • Tags:   python http urllib

2 Answered Questions

[SOLVED] Adjust Width of Jupyter Terminal

17 Answered Questions

[SOLVED] Using IPython notebooks under version control

11 Answered Questions

8 Answered Questions

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

4 Answered Questions

[SOLVED] Running an IPython/Jupyter notebook non-interactively

0 Answered Questions

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

1 Answered Questions

jupyter notebook in Mac OSX Sierra Terminal Not Working

Sponsored Content