sagemath / sagecell

The Sage Cell Server---providing a way to embed Sage computations into any web page.
Other
202 stars 70 forks source link

Make the ipython device start new processes by forking #4

Closed jasongrout closed 13 years ago

jasongrout commented 13 years ago

If we could fork a clean ipython process, our startup time could be much faster than starting up a new kernel every time we wanted to run a computation.

Here is one implementation to start Sage by forking: https://github.com/jasongrout/sage-forker

ihanson commented 13 years ago

The main difficulty here is forking a process running ØMQ. For example, each process needs its own Context object (see here from the ØMQ guide), and the sockets would probably need to bind to different ports for each process.

jasongrout commented 13 years ago

I'm closing this since we are concentrating on device_process for now, and a lot has changed in that. We'll look at updating device_ipython when the new ipython comes out.