vscode-jupyter icon indicating copy to clipboard operation
vscode-jupyter copied to clipboard

support configurable start port instead of a magic number 9000

Open amunger opened this issue 2 years ago • 3 comments

Discussed in https://github.com/microsoft/vscode-jupyter/discussions/10761

Originally posted by ladyrick July 11, 2022 KernelLauncher.computeStartPort support different start port instead of a magic number 9000: https://github.dev/microsoft/vscode-jupyter/blob/be3667521cf217753b343c7483c128b34dd5d213/src/kernels/raw/launcher/kernelLauncher.node.ts#L99

In my case, I need port 9000-10000 to be reserved. These ports may be not used now but may be used in the future. Now jupyter uses 9000 as start port. It's very likely to occupy a port in 9000-10000 and later my other application would failed because of "port is already in use".

amunger avatar Jul 11 '22 18:07 amunger

Should be relatively simple to add a setting with it defaulting to 9000.

rchiodo avatar Jul 11 '22 20:07 rchiodo

Yes, please. I use 9000 for other applications and would like to specify the vscode-jupyter to use port from some other range.

RafalSkolasinski avatar Jul 13 '22 14:07 RafalSkolasinski

Is there any way to configure this currently? It often clashes with my other dev services I work on.

RafalSkolasinski avatar Sep 21 '22 11:09 RafalSkolasinski

@RafalSkolasinski unfortunately no. If at all possible, please feel free to submit a PR.

DonJayamanne avatar Sep 25 '22 23:09 DonJayamanne

This issue has been open for a while and there haven't been any PRs even though its been marked as good first issue

DonJayamanne avatar Dec 04 '22 19:12 DonJayamanne

Could this issue be reopened? I'd like to give it a try.

CarlosDomingues avatar May 15 '23 23:05 CarlosDomingues