[Issue]: Make the port number optional in JupyterConnectionInfo() #2458
Labels
0.2
Issues which were filed before re-arch to 0.4
code-execution
execute generated code
needs-triage
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
The text was updated successfully, but these errors were encountered: