-
Notifications
You must be signed in to change notification settings - Fork 77
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
Start viewer server OSError: [Errno 99] Cannot assign requested address (Google Colab) #1014
Comments
@jortiz12, I just tested the notebook locally, and it is still valid. I suspect the collab environment may restrict opening ports in some way? In any case, the port number can be changed in the second cell of the notebook. Try changing it from the default of 9914 and let us know the result. |
First, thanks for your time and attention. The issue doesn´t lie in the port number line of code The error continus to appear when running |
I don't think this is Ginga's problem. See https://stackoverflow.com/questions/69880285/receive-oserror-errno-99-cannot-assign-requested-address-on-google-colab |
Thanks pllim, Indeed, indeed. That's also my opinion. I was simpy trying to use GINGA in such notebook in Google Colab as although I've the DS9 viewer opened, Google Colab doesn't "know" of its existance. Nor does of Ginga it seems. Thxs again. |
@jortiz12 , just to make sure, did the StackOverflow solution work for you? |
No bcse that solution applies to a Jupyter-based notebook, not to a notebook in Google Colab. Txs again for the attention. |
I am not sure what can be done in the Colab world. It seems to still be stuck in Python 3.7 while packages have moved on. @ejeschke , any ideas? |
Thinking about this a little more deeply, I think there are two issues. The first is that probably we need to replace "localhost" with the hostname or IP of the google collab host where the notebook is actually running. For that, I think you might want to look at this video. That is simple enough. @jortiz12, please try that first and then report back here. The second potential issue is whether you are allowed to open a port on the collab server that is open to your browser on your laptop (or wherever). You may need to tunnel the connection. I've seen a couple links on that, but let's see about the first issue before going there. |
So I tried running this notebook on Google Collab. Using the following, it does not give me an error trying to start the server: import socket
hostname = socket.gethostname()
ipaddr = socket.gethostbyname(hostname) then replace "localhost" with ipaddr. However, there is then (I think) the second issue of how to tunnel to that connection, because I think it is walled off. I'm looking that that now. It seems to be a known issue with no real support from google. However, a lot of tutorials related to this issue seem to be using a package called |
Just a note for the sake of completeness, I tried the Ginga Jupyter Widgets backend. It displays in Google Colab, but since |
Your first advice, changing the hostname, indeed has worked for me!!.
Thks so much. Much appreciated. |
Hello again, |
Yes, that mirrors my result above. I think Collab doesn't want to open any ports to the world unless it can be tunneled somehow. |
Instead of Collab, let's step back and maybe you should ask the data provider if they have a proper science platform you can use... |
I haven't tried -- my experience with colab was mixed the last time I looked at it so I've never really tried. |
It seems like they have modified something, because |
It's too bad, because that would be the way to go, IMHO--no need to tunnel anything. |
Dear community,
I´m trying to replicate the example ginga_ipython_demo.ipynb in a Google Collab Notebook. However, when executing the code line ``, I get the following error.
Any assitance would be highly appreciated. It may be due to the fact that I'm running the notebook in Google's platform as opposed to in a "local" (ie in my computer) Jupyter server.
Kind Regards
Jose
The text was updated successfully, but these errors were encountered: