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

ProxyPort URL is broken as July 23rd #4738

Closed
jlopatec opened this issue Jul 27, 2024 · 4 comments
Closed

ProxyPort URL is broken as July 23rd #4738

jlopatec opened this issue Jul 27, 2024 · 4 comments

Comments

@jlopatec
Copy link

jlopatec commented Jul 27, 2024

As of July 23rd / 24th the proxy approach for a URL is broken from Colab with a 403. This is used to launch Tensorboard tools in a full URL.

from google.colab import output
def open_window_to_port(port):
print(output.eval_js(f'google.colab.kernel.proxyPort({port})'))

print('Must execute this cell first for the URL to work.')

The generated URL will only be valid while this notebook file is open.

open_window_to_port(port)

Example:
https://colab.research.google.com/gist/blois/240fab81110daa9bbdb513c5b7b717cb/proxyport-examples.ipynb#scrollTo=gjqweJ0lUwWA

Screenshot 2024-07-27 at 1 41 23 PM
@jlopatec jlopatec added the bug label Jul 27, 2024
@EvanWiederspan
Copy link

Does serve_kernel_port_as_iframe work for you instead?

@arizedatngo
Copy link

Running into the same issue. I can get it into an iframe in the notebook cell myself, but it's a much worser experience to interact that way. I was personally hoping for the proxy approach for a URL to be working again

@EvanWiederspan do we know why this proxy approach for a URL broke?

@jlopatec
Copy link
Author

Slightly suspicious this is related to secure cookie propagation in chrome browser, maybe a chrome browser change that affects the feature between colab server serving up a URL to the chrome browser.

@arizedatngo
Copy link

@EvanWiederspan the issue some got fixed. if that was you, thanks a ton!

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

No branches or pull requests

4 participants