2

How do IDEs like Spyder send commands to their interactive ipython shell (such as runfile() when you click the run button)? Is there a way to open an ipython console and send commands to the kernel from outside the console (e.g. from a cmd or python script)?

I've read in the ipython documentation about messaging and the execute_request message type, but it gives no indication as to how you would implement that. And I'm not sure it's even what Spyder uses - in Spyder, when you click run, the runfile() command is inserted into the ipython console input.

binaryfunt
  • 6,401
  • 5
  • 37
  • 59
  • maybe answered here https://stackoverflow.com/questions/9977446/connecting-to-a-remote-ipython-instance/35792945#35792945 i'm using this as a cli script here https://github.com/WillForan/wf-utils/blob/master/jpsnd – Will Feb 18 '19 at 18:35

0 Answers0