shreyashk
shreyashk

Reputation: 107

Running Jupyter kernel and notebook server on different machines

I'm trying to run an iPython/ Jupyter kernel and the notebook server on two different Windows machines on a LAN.

From most of the links that I found on the internet, they offer advice on how we can access a remote kernel + server setup from a web browser, but no information on how to separate the kernel and the notebook server themselves.

Ideally, I'd like the code to remain on one machine, and the execution to happen on the other.

Is there a way that I could do this?

Upvotes: 1

Views: 2413

Answers (2)

shreyashk
shreyashk

Reputation: 107

I ended up using this demo which pretty much did this job for me.

Upvotes: 3

minrk
minrk

Reputation: 38588

This can be done, though it is a bit fiddly, and I do not believe that anyone has done it before on Windows. Jupyter applications use a class called a KernelManager to start/stop kernels. KernelManager provides an API that is responsible for launching kernel processes, and collecting the network information necessary to connect to them. There are two implementations of remote kernels that I know of:

Both of these use ssh to launch the remote kernels, and assume unix systems. I don't know how to launch processes remotely on Windows, but presumably you could follow the example of these two projects to do the same thing in a way that works on Windows.

Upvotes: 1

Related Questions