Run your notebooks on a server without you

I had the need to run some notebooks on a server so I could access them remotely and keep them running permanently, so I did something quick using headless chrome. It occurred to me that other people might find this useful. Would anyone be interested in a service/library like this?

1 Like

I am sure the folk on this thread would like to know more:

Please share!

Ha, ok! Very rudimentary - but this is the basic idea: https://github.com/jflatow/observer

1 Like

sweet! I shared the link to it in the other thread
:+1:

1 Like

Iā€™ve added a dockerify branch which wraps the whole thing in a container, and can be launched, e.g. on hyper.sh:

make run-hyper NOTEBOOK=https://api.observablehq.com/@jflatow/headless-observable.js?key=7d7a86c7b4aefbef

As an example, Iā€™ve done this and attached a floating ip. With the right version of chrome/canary/chromium you can attach to the remote debugger here:

http://209.177.93.47:9222

(though I will likely kill the container at some point)

I built some bots (trading cryptos :slight_smile:) inside notebooks, which is why I wanted something like this to run them. I wonder if others would find it useful to press a button and run a daemon/server from their notebook.

1 Like