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

jupyter integration not working properly on remote jupyter lab #427

Open
auderson opened this issue Apr 25, 2024 · 2 comments
Open

jupyter integration not working properly on remote jupyter lab #427

auderson opened this issue Apr 25, 2024 · 2 comments

Comments

@auderson
Copy link

The "VizTracer Report" button will not work if user is using remote jupyter, because the code is running on the server side. However user can still open the page manully from his local browser.

def view(): # pragma: no cover
server = ServerThread(file_path, port=options.port, once=True)
server.start()
server.ready.wait()
import webbrowser
webbrowser.open_new_tab(f'http://127.0.0.1:{server.port}')
button = Button(description="VizTracer Report")
button.on_click(lambda b: view())
display(button)

@gaogaotiantian
Copy link
Owner

When a webserver is hosted remotely, you can open a local browser and access it? That sounds a bit off. I don't use jupyter personally so jupyter has never been the first class citizen for viztracer. I don't have any solutions by hand even though I can understand the issue.

@auderson
Copy link
Author

auderson commented Apr 25, 2024

Well…By saying remote & local I actually mean the Ubuntu server of my company & my office desktop, they’re in the same network.

I don't use jupyter personally so jupyter has never been the first class citizen for viztracer.

No big deal, the VizViewer CLI is good.

I don't have any solutions by hand even though I can understand the issue.

Yes, this issue is quite easy to understand, but the solution may not be so straightforward.

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

No branches or pull requests

2 participants