nctoolkit icon indicating copy to clipboard operation
nctoolkit copied to clipboard

Selecting the plot server

Open chuaxr opened this issue 2 years ago • 2 comments

When .plot() is called, the server appears to be randomly assigned (e.g. localhost:52401). It would be useful to be able to specify this number in advance (e.g. localhost:12345) for port-forwarding purposes.

According to the discussion in https://github.com/pmlmodelling/nctoolkit/discussions/99, this feature is not yet available but should be easy to add.

chuaxr avatar Aug 25 '23 03:08 chuaxr

Are you running nctoolkit from Python on the terminal @chuaxr ? Internally, it is calling hvplot/panel, which can be tweaked easily I think. My assumption is that this would only be needed when running Python from the terminal, as the plots should show up elsewhere, e.g. in Juypyter notebooks.

Internally, the calls are slightly different depending on whether you are running it from the terminal, so I'd need to know if it's only the terminal calls that should be changed.

robertjwilson avatar Aug 25 '23 09:08 robertjwilson

Yes, I'm thinking about calling nctoolkit from the terminal.

chuaxr avatar Aug 25 '23 13:08 chuaxr