Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upMake Chrome headless location and port configurable #238
Labels
Comments
|
That is a very good idea, PR welcome, otherwise, I keep this open as a reminder. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, the headless mode uses default parameters from
PyChromeDevToolsfor connecting to a chrome headless instance.ipyvolume/ipyvolume/headless.py
Line 53 in e68b728
However, if you use a chrome headless running as docker instance and want to connect from another docker instance (e.g. when using docker-compose), the headless instance is no longer located at
localhostor127.0.0.1.ipv.savefigandipv.screenshotshould both accept headless configuration parameters, for instanceheadless_kwargs=Noneand pass it to thePyChromeDevTools(**(headless_kwargs or {})).