Embedded Jupyter notebook

Hello!
I want to add Jupyter Notebook in my web app like in Kaggle or Colab with custom interface in order it looks native and I can provide additional deployment features. I checked information in documentation/internet and did not find any description how it was implemented by others companies . After exploring source code I have next vision.

  1. I need over JHub to spawn JServer (not JLab or JNotebook)
  2. Using JS libraries from JLab repo add the code in my web application
  3. In order send request from notebook to JServer directly I need to add pattern on Nginx

Questions:

  1. Is my vision correct? If no please, give me advice how to implement it.
  2. What is better to use JServer or JLab as execution application?

That is a reasonable view, but I don’t have a lot of advice for how to implement it. You might checkout thebe as an example that uses JupyterLab js to execute code without the rest of JupyterLab.

What is better to use JServer or JLab as execution application?

I would use Jupyter Server, but it doesn’t make a huge difference. JupyterLab is a Jupyter Server extension, and the main thing it does is make sure JupyterLab js is available, which you don’t need, and that JupyterLab is the default UI, which you also don’t need.

1 Like