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

Run Doodler through proxy URL for Jupyter Hub #55

Open
jmdelvecchio opened this issue Feb 21, 2023 · 3 comments
Open

Run Doodler through proxy URL for Jupyter Hub #55

jmdelvecchio opened this issue Feb 21, 2023 · 3 comments

Comments

@jmdelvecchio
Copy link

Hello, just a feature request and really just in case someone is a whiz at this:

Jupyter Hubs remove burden of installing and managing software but present new issues 🤣 We figured out how to expose ports on JHub to open a web browser for a certain port (e.g. https://jhub.higheredinstitution.edu/user-redirect/proxy/8050/). The resulting webpage displays "Loading..." and the tab is now named "Dash" but perhaps the dash/flask app needs some tweaking to run through a proxy server. Any ideas/experience?

Specific steps:

  • Doodler environment already built on virtual image
  • Launch a terminal in the Notebook Server
  • Clone Dash Doodler git repo: git clone https://github.com/Doodleverse/dash_doodler.git
  • Launch Dash Doodler: cd dash_doodler/; python doodler.py
  • Access the proxy in a new tab: https://jhub.higheredinstitution.edu/user-redirect/proxy/8050/
  • Web page displays "Loading..."
@dbuscombe-usgs
Copy link
Member

Hi @jmdelvecchio, I wish I was a whizz at this .....

In https://github.com/Doodleverse/dash_doodler/blob/main/environment/settings.py , are you using an IP of "0.0.0.0", rather than localhost, for deployment? In there, you could also set DEBUG to True for graphic server error messages. Also, perhaps 'threaded' may need to be set to False?

Let me know if that gets you any closer? Cool development! Definitely interested in helping you get this working (and learning more)

@dbuscombe-usgs
Copy link
Member

Also, note that I use Flask as a backend server, on line https://github.com/Doodleverse/dash_doodler/blob/main/app.py#L250.

You'll see that I have commented out an alternative method

app = dash.Dash(__name__)

which I think uses the built-in dash server. I can't remember now the relative advantages/disadvantages ...

@dbuscombe-usgs
Copy link
Member

I also wonder if it is easier to deploy holodoodler .... https://github.com/Doodleverse/holodoodler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants