Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Behind Reverse Proxy #80

Closed
enahwe opened this issue Feb 24, 2020 · 4 comments
Closed

Behind Reverse Proxy #80

enahwe opened this issue Feb 24, 2020 · 4 comments
Labels
BackEnd Updates to the back-end help wanted Extra attention is needed question Further information is requested

Comments

@enahwe
Copy link

enahwe commented Feb 24, 2020

I tried many possibilities by using Apache Reverse Proxy in order to expose dtale widgets outside my JupyterLab/JupyterHub Platform, but I didn't find any solution.

Here's some rules I tested with Apache web server, but it doesn't works :

RewriteRule /datalab/mynode/dtale/5100/(.) ws://127.0.0.1:41000/dtale/main/$1 [P,L]
ProxypassMatch /datalab/mynode/dtale/5100/(.
) http://127.0.0.1:41000/dtale/main/$1
ProxypassReverse /datalab/mynode/dtale/5100/(.*) http://127.0.0.1:41000/dtale/main/$1

You should specify in your doc where to configure the "base_url" in order to expose your dtale outside.

Nowadays I consider dtale like a "localhost" component, impossible to open it for teams who want to develop and collaborate by using JupyterLab instances on a remote server.

It seems that dtale has been developed for only selfish developpers who are working on their laptop !

Be more open-mind please.

@phillipdupuis
Copy link
Contributor

phillipdupuis commented Feb 24, 2020

Edit: ignore my answer, it is not helpful. I don't use notebooks much.

Seems like the right way to do this is by using flask_ngrok: https://github.com/gstaff/flask-ngrok
Which, coincidentally, the owner was just working with (and should have some helpful advice/tips)

@aschonfeld
Copy link
Collaborator

I'm sorry to hear you're having issues. But luckily for you I just released a new version this morning which allows users to use D-Tale within hosted notebook services like Google Colab & Kaggle suing something called flask_ngrok

Here are the tutorials: https://github.com/man-group/dtale#google-colab--kaggle

Here is an example of how to get it started:

import pandas as pd

import dtale
import dtale.app as dtale_app

dtale_app.USE_NGROK = True

dtale.show(pd.DataFrame([1,2,3]))

The key is setting USE_NGROK to true. Hopefully this works, but if not I can take you through some of the horror stories we went through getting it to work in jupyterhub through our comapny's proxy.

@aschonfeld
Copy link
Collaborator

@enahwe I just recently released v.1.8.13 with support for a jupyterhub extension jupyter-server-proxy. Here's the documentation

Hopefully this might help with using D-Tale in jupyterhub on top of kubernetes

@shainaraza
Copy link

its working simply if we install directly from git
!pip install -U dtale

@aschonfeld aschonfeld added help wanted Extra attention is needed question Further information is requested BackEnd Updates to the back-end labels Apr 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BackEnd Updates to the back-end help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants