jupyterhub / mybinder.org-user-guide

Turn a Git repo into a collection of interactive notebooks. This is Binder's user documentation repository.
https://mybinder.readthedocs.io
BSD 3-Clause "New" or "Revised" License
151 stars 103 forks source link

Running a bokeh server with Binder from documentation does not work #291

Open Mikejmnez opened 1 month ago

Mikejmnez commented 1 month ago

don't know if this is the appropriate place for it. But here it goes:

I am very interested in running a Bokeh server app within Binder. It seems the bokeh App can run it. For example, with Bokeh 3.5.0 I do the following in the Binder terminal

bokeh serve --port=5006 App.py

and the app runs with output:

2024-07-11 06:53:16,223 Bokeh app running at: http://localhost:5006/App
2024-07-11 06:53:16,224 Starting Bokeh server with process id: 191
2024-07-11 06:53:31,239 [pid 191] 0 clients connected
2024-07-11 06:53:31,239 [pid 191]   /App has 0 sessions with 0 unused

I then go to the proxy URL : <binder_url>/proxy/5006/App

And the browser seems load the header since on the tab favicon appears the name of the App. However the page remains white and nothing ever displays. For the record, with the same (mamba) environment I can run the app just fine in my personal laptop.

I thought I was doing some wrong. But then I went to the documentation which has this example for exactly doing what I want to do. This example is also part of BInder's official documentation running-a-bokeh-server-with-binder Running the Binder in the example just mentioned leads to the same problem I am having: - white page and never actually displays the app. Note that in the example in the documentation, there is configuration so that upon building the Binder simply runs the App.

I have tried different browsers but I always get the same result.

From the Discourse topic Creating a shareable Bokeh dashboard with Binder, it seems this example was first written/approached back in 2019 so it is likely outdated. But I don't discard the fact that I am prob doing something wrong...

manics commented 1 month ago

This repo is mostly used by mybinder operators. We usually rely on the community's help with these sorts of questions- there's so many ways to run things on mybinder there's no way a small team can keep up with everything :smile:

Try posting on https://discourse.jupyter.org/ with a link to your current attempt, and hopefully someone will be able to help