mybinder.org-user-guide icon indicating copy to clipboard operation
mybinder.org-user-guide copied to clipboard

Running a bokeh server with Binder from documentation does not work

Open Mikejmnez opened this issue 7 months ago • 1 comments

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...

Mikejmnez avatar Jul 11 '24 18:07 Mikejmnez