bokeh / bokeh-notebooks

Interactive Web Plotting with Bokeh in IPython notebook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error without message

MalikRumi opened this issue · comments

I have a red error box showing up at the top of my notebook - which has now become unresponsive. This is on the navbar, I guess, to the right of "Widgets Help". But there is no message, no explanation, no pop up, no nothing. What am I supposed to do with that? How would I know if the issue is bokeh, binder, or some dependency? I've got nothing to go on here!!! https://notebooks.gesis.org/binder/jupyter/user/bokeh-bokeh-notebooks-lmhpedwb/notebooks/tutorial/01%20-%20Basic%20Plotting.ipynb#

What is the error? Please always provide the actual text of error messages (or a screenshot if copying text is not possible). Without more information we have nothing to speculate with. Are there any error messages in your browsers JS console?

I am not sure why you are having such difficulty with binder. I just ran through all the cells in the Basic Plotting notebook on binder and everything works as expected without any issue:

Screen Shot 2022-04-29 at 07 50 47

Screen Shot 2022-04-29 at 07 50 56

This is on the navbar, I guess, to the right of "Widgets Help".

FYI if it is on the navbar then the error is not coming from Bokeh. Did you leave the page idle for a long time? AFAIK Binder will disconnect dormant sessions after some time of inactivity. That is just what Binder does, we have nor control over that. Alternatively, perhaps the connection never successfully initiates. But if so, that would be an issue with Binder, or your network setup (maybe a firewall blocking websockets?) We would not be able to do anything about that kind of situation, either. If Binder is not a good option for you then perhaps you would have an easier time running the tutorial notebook locally.

  1. There is no error message

I don't understand how this is consistent with your earlier statement:

I have a red error box showing up at the top of my notebook

What in the error box? How do you know it is an error box if there is not some error text? Even if there is no text, a screenshot would be advised so that there is no question about what you are seeing. Right now all I can do is speculate, and my speculation might be wrong because I have nothing to look at. Regardless, anything in the nav bar is not something coming from Bokeh, so it's not something we will be able to address directly.

  1. Well, I can try to get help from them, but what has timing out got to do with not being allowed back in at all?

You have to go back to the original tutorial links, to start up a new session. That's the way binder works. When you click the original links, Binder spins up a VM to service a new session for and redirects you to a unique temporary URL for that session. When your session time out, Binder spins down the VM (because it costs them money) and then the temporary session URL for it becomes useless. Again: this has nothing to do with Bokeh. This is just how Binder works and we have no control over that whatsoever.

I can try that, but: aren't these one-at-a-time separate notebooks? Is there a way to download them all at once?

The simplest way to get the notebooks locally is to git clone this repo, which is how users used them for many years before Binder existed.

Will there be any connection, resource, or path issues running the notebooks locally instead of online as
intended?

You'll need to set up a suitable environment with Bokeh, JupyterLab, etc. intstalled. There is a conda env file that lists all the dependencies here: https://github.com/bokeh/bokeh-notebooks/blob/main/environment.yml

I think the take-away might be this: If your Binder session times out, you always have to go back to this URL:

https://mybinder.org/v2/gh/bokeh/bokeh-notebooks/master?filepath=tutorial%2F00%20-%20Introduction%20and%20Setup.ipynb

Which will start a brand new Binder session. You can then use the Table of Contents links there to open any of the other notebooks. You cannot go back to the "notebooks.gesis.org" links. Those are ephemeral, and once the session is shut down they are not usable anymore.

I am going to go ahead and close this as I don't think there is any action to take on our end.