autogen icon indicating copy to clipboard operation
autogen copied to clipboard

[Issue]: Make the port number optional in JupyterConnectionInfo()

Open vinodvarma24 opened this issue 1 year ago • 0 comments

Describe the issue

Currently, JupyterConnectionInfo() expects a port number when we use a remote Docker server with a Jupiter notebook.

In production use cases, we would want to pass https-enabled hostnames, so there is no need to pass a port number or allow 443 port numbers for an HTTPS connection with the hostname.

Currenlty, it failing and giving error: port number is missing

with DockerJupyterServer() as server: executor = JupyterCodeExecutor( jupyter_server=JupyterConnectionInfo(host='xxxxxxxxxx.amazonaws.com', use_https=True, , token='xxxxxxxx') ) print( executor.execute_code_blocks( code_blocks=[ CodeBlock(language="python", code="print('Hello, World!')"), ] ) )

Steps to reproduce

Just try to install jupyter in a serverwith HTTPS enabled with ngnix reverse proxy

Screenshots and logs

No response

Additional Information

No response

vinodvarma24 avatar Apr 20 '24 02:04 vinodvarma24