Shinyproxy: Shinyproxy to launch jupyter notebook with docker?

Created on 13 Sep 2019  ·  5Comments  ·  Source: openanalytics/shinyproxy

Hello,

As you did for zeppelin notebook, is there a way to serve jupyter notebook with Shinyproxy ?

I tried with:

specs:
    id: jupyter-notebook
    display-name: jupyter-notebook
    description: Jupyter Notebook is a web-based interactive computational environment for creating Jupyter notebook documents.
    container-cmd: ["jupyter", "notebook","--NotebookApp.token=''","--NotebookApp.password=''", "--ip=0.0.0.0", "--port=8888", "--allow-root"]
    container-image: jupyter/datascience-notebook
    container-network: shinyproxy-network
    port: 8888

Bit without success. I just have a 404..

Thanks for your help :)

enhancement

Most helpful comment

The next version of ShinyProxy will have support for running Jupyter notebooks! I created a snapshot release, so that you can already test it. See the dedicated repository for more information: https://github.com/openanalytics/shinyproxy-jupyter-notebook-demo

All 5 comments

@thomas-chauvet did you figure it out? Just struggle with the same error Message: Not Found

id: jupyterlab
    display-name: Jupyter Lab
    description: Jupyter data science environment
    container-network: sp-example-net
    container-cmd: ["start.sh","jupyter", "lab","--LabApp.token=''","--LabApp.ip='0.0.0.0'","-- LabApp.allow_origin='same'"]
    container-volumes: [ "/home/users/#{proxy.UserId}:/home/#{proxy.UserId}" ]
    container-image: jupyter/datascience-notebook
port: 8888

where docker run -it --rm -p 8888:8888 jupyter/datascience-notebook start.sh jupyter lab --LabApp.token='' --LabApp.ip='0.0.0.0' --LabApp.al low_origin='same' runs without issues

@thomas-chauvet @hugeme Jupyter notebooks don't support relative URLs, but use root-relative URLs; this means these notebooks cannot be run out of the box on ShinyProxy without working around this limitation inside ShinyProxy.

Hi, I have the same Problem.. I followed another github-project where this was realized (https://github.com/rkingdc/datascience-portal) but I get a 404, too.. Seems to me, that something happened to the jupyter-end?

 - id: jupyterlab
    display-name: Jupyter Lab 
    description: Jupyter data science environment
    container-network: sp-net
    container-cmd: ["start.sh", 
      "jupyter", "lab", 
      "--LabApp.token=''", 
      "--LabApp.ip='0.0.0.0'",
      "--LabApp.allow_origin='same'"]
    container-volumes: [ "/home/users/#{proxy.UserId}:/home/#{proxy.UserId}" ]
    container-image: jupyter  
    container-env:
      USER: root
      NB_USER: '#{proxy.UserId}'
      NB_UID: 1010
      NB_GID: 1020
      CHOWN_HOME: 'yes'
      CHOWN_HOME_OPTS: -R
    port: 8888

Hi, is there any update on this issue? It would be great if we can run Jupyter dockers inside ShinyProxy. Regards

The next version of ShinyProxy will have support for running Jupyter notebooks! I created a snapshot release, so that you can already test it. See the dedicated repository for more information: https://github.com/openanalytics/shinyproxy-jupyter-notebook-demo

Was this page helpful?
0 / 5 - 0 ratings