-
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
Search for available free ports if default port 8000 is not available #39
Comments
Thanks for raising this! You're right that the first user will get the port 8000 and the second will get an error. As a workaround I expect the second user could specify the port. But I appreciate this isn't ideal.
It would be nice to detect this and switch to a random high port if |
Is nvdashboard subclassing most of its core functionality from Bokeh? Should this type of logic be submitted as a PR upstream? Am happy to contribute a PR with a little guidance as to where to start. |
We use Bokeh to run the server, however I'm not sure that falling back to a random high port is going to be generic enough for this to make sense as an upstream change. I expect an exception will be raised somewhere around here when trying to run multiple dashboards on the default port. We should catch this exception and try again with a random high port while logging a warning. |
Can this problem can be reproduced by running nvdashboard from two Python environments on the same system at the same time? |
I wonder if we can use the same trick that Tensorboard user and just try to set I have tried launching a server with It would appear that this functionality already exists! Now what needs to happen is we need to check if the user passes |
The following will launch the Bash magic that extracts the port number using
|
Thanks for the awesome tool! We are starting to use
jupyterlab-nvdashboard
on a multi-user HPC system. I am trying to figure out what will happen if two user jobs land on the same compute node and both users run the server in their job scripts as follows.Will the first user get the default port 8000 and then the second user get an error or warning? Or will the
jupyterlab_nvdashboard.server
look for available ports?The text was updated successfully, but these errors were encountered: