I'm trying to set styles using py2cytoscape on a Cytoscape instance running on another url than http://localhost:1234. The CyRestClient provides a way to enter a custom ip/port, but the styles seem to always use the default "localhost".
Small snippet to reproduce (Cytoscape itself should be listening on 172.17.0.1):
This gives me an error indicating that it is trying to connect to localhost instead of 172.17.0.1:
ConnectionError: HTTPConnectionPool(host='localhost', port=1234): Max retries exceeded with url: /v1/styles/basic/defaults (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f3eeb6c1860>: Failed to establish a new connection: [Errno 111] Connection refused',))
I'm trying to set styles using py2cytoscape on a Cytoscape instance running on another url than http://localhost:1234. The CyRestClient provides a way to enter a custom ip/port, but the styles seem to always use the default "localhost".
Small snippet to reproduce (Cytoscape itself should be listening on 172.17.0.1):
This gives me an error indicating that it is trying to connect to localhost instead of 172.17.0.1:
A workaround is to manually set the BASE_URL:
Then it works without error.