![]() If (result is not None) or (result is not None): If step(self._hosts.query, qname, rdtype, raise_on_no_answer=False): If (self._hosts and (rdclass = ) and (rdtype in _hosts_rdtypes)): If raise_on_no_answer or not isinstance(result, ): Query "foobar." and append to previous result if qname did not contain dots, pretend it was top-level domain, if hosts is enabled and contains answer, return it nowģ. """Query the resolver, using /etc/hosts if enabled.ġ. Tcp=False, source=None, raise_on_no_answer=True, Source = None, raise_on_no_answer = False, _hosts_rdtypes = (1, 28)ĭef query(self, qname, rdtype=, rdclass=, Qname =, rdtype = 1, rdclass = 1, tcp = False \.\.\Miniconda3\envs\clone-athion-utils\lib\site-packages\eventlet\support\greendns.py:413: > return _proxy.query(name, rdtype, raise_on_no_answer=raises) This method is called by the global getaddrinfo() function. """Resolve a name for a given family using the global resolver proxy. Name = 'localhost', family =, raises = Falseĭef resolve(name, family=socket.AF_INET, raises=True, _proxy=None): Once I go offline, I get the error tests\test_plot.py:124 (test_comparison_report) ![]() I’m trying to export a simple figure generated by df.iplot() using cufflinks. I’m sure people in this post can suggest some elegant/graceful ways these methods could be made more stable across os’s, how to check dependencies/paths, Actually, it seems to be an eventlet error. ![]() Please see either/both of the linked jupyter notebooks above if you’d like to try this out or make suggestions! I consider myself barely above noob status. This method required using pyvirtualdisplay to keep the selenium session from opening an actual browser window. Let me know if you have any thoughts on that. html plot file automatically downloads the file… one doesn’t need to do the click() event on the button! I actually found I was getting two downloads one for the opening, and one for the button. One observation is that when specifying image='png' and image_filename='name', opening the. ![]() Turns out that they are using selenium's method get_screenshot_as_png() method and a phantomjs webdriver in order to silently generate the plot (no opening of the html file required)! I was able to replicate this with plotly I piggybacked on your sketch to make another method using a chromedriver webdriver here. I found out that bokeh has an export_png method, and dug into the code. This way the user community could take a stab at it. automatically closing all github issues requesting this feature. Inquired with the plotly team to at least suggest how this might be accomplished vs. Please do the same so we can build a community voice for this. Request: I put in an actual feature request per the suggestion of cldougl at the above github issue. I can’t find any information on how to save my offline (iPython Notebook version or otherwise) chart as an image Super cool! selenium is pretty new to me am I correct that this will pop open a firefox instance while it downloads the file, an then close it? I was hoping to avoid this and just run in the background.įor others following along, here’s some updates I was able to make today. Are you sure you aren’t thinking of ? help()ĪttributeError: module 'plotly.offline' has no attribute did you read the question?
0 Comments
Leave a Reply. |