nteract / rx-jupyter

🎈 RxJS 5 bindings for the Jupyter Notebook API
https://nteract.io/rx-jupyter
BSD 3-Clause "New" or "Revised" License
13 stars 10 forks source link

Provide instructions in the README for using a local Jupyter Notebook Server #37

Open rgbkrk opened 7 years ago

rgbkrk commented 7 years ago

We need to provide some simple guidance for running a Jupyter Notebook server, with cross origin setup, for folks to prototype with rx-jupyter.

jupyter notebook --NotebookApp.allow_origin_pat='^https?://127.0.0.1:.*'

^^ That's a start, misses the token auth we now have to deal with.

Analect commented 7 years ago

@rgbkrk I'm interested in experimenting with this. I have a running jupyterhub that leverage kubespawner for spawning a compute environment for a given user. Is it possible for this rx-jupyter to hook into that notebook server? Obviously that server is hooked back into the hub using a JPY_API_TOKEN ... but does rx-jupyter need to authenticate with the hub too, in order to interact with that server?

If you can offer any suggestions on set-up, that would be great.

minrk commented 7 years ago

FWIW, if the server uses token auth, allow-origin is not needed, as origin is only checked for no-auth or cookie auth, but tokens can make requests from anywhere.

Analect commented 7 years ago

Thanks @minrk . Have you had any success in hooking this up to a running notebook server spawned from jupyterhub?

minrk commented 7 years ago

I haven't, yet