I am trying to get the graph using TensorBoard for MNIST example.
I checked other tutorial, questions and it seems uploading file option is not coming under graph menu for me but I haven't found the reason for this.
P.S. I am able to generate graph file using write_graph which I want to display on TensorBoard.
Try using it on chrome instead of Firefox.
It isn't working on my Firefox too.
See this discussion for more info:
Is anyone else having trouble viewing the tensorboard/graph tab in firefox?
Related
We have an open bug in our Automation Testing Framework regarding the resizing limitations of a Chrome Window when it is controlled by Selenium + ChromeDriver and I need help since I can't track down an official answer. As far as I am aware this was not an issue in the past.
We currently use the framework Codeception as the base for our own framework and when we use the action resizeWindow with the dimensions 320x568 it resizes the window to 445x500. Has anyone else ran into this issue with Chrome? It looks like a hardcoded limit at this point. Any advice would be greatly appreciated. Below I've provided a few Tests that I've ran looking for the upper and lower limits of the resizing action.
Test #1
Requested Size: 320x568
Resulting Size: 445x500
Test #2
Requested Size: 5000x5000
Resulting Size: 858x5000
Test 3
Requested Size: 1x1
Resulting Size: 252x500
LINKS
Codeception
Codeception - resizeWindow
Magento Functional Testing Framework
I found an answer to my question in another StackOverflow question.
"Chrome cannot resize horizontally below 400px (OS X) or 218px (Windows)"
Browser doesn't scale below 400px?
Can you please try with selenium dimension import
Import : import org.openqa.selenium.Dimension;
code :
Dimension d = new Dimension(320,568);
driver.manage().window().setSize(d); //Resize current window to the set dimension
Try using firefox. It works great. since chrome's setting changed and it won't work for testing media queries unless you use the dev tools.
I have realized the dynamic graph drawing with matplotlib, and it can refresh graph real-time. Now, I want to generate matplot figure on Web Browers using mpld3. It can export to webpage, but can only run one time and graph won't be refreshed continuously. Wondering what this may be caused by? My script frame is as follow:
import mpld3[enter image description here][1]
from mpld3._server import serve
.
.
.
html1=mpld3.fig_to_html(fig1)
html2=mpld3.fig_to_html(fig2)
serve(html1+html2)
plt.pause(0.5)
enter image description here
There is no way to do that.
However, you can still export your figure as a html file – as you already do with the mpld3.fig_to_html() command – but always in the same html file, and run a auto-reload soft in the web browser on this page (see for example this plugin for Firefox: https://addons.mozilla.org/en-US/firefox/addon/tab-auto-reload/).
But for mpld3 figures, the loading time can be quite large depending on the amount of data you are showing. This solution is definitely not appropriate for real-time applications!
I need to simulate file download on chrome browser and below links points to solutions which is what I'm looking for.
http://ardesco.lazerycode.com/index.php/2012/07/how-to-download-files-with-selenium-and-why-you-shouldnt/
https://github.com/Ardesco/Ebselen/blob/master/ebselen-core/src/main/java/com/lazerycode/ebselen/customhandlers/FileDownloader.java
I'm not able to use this code as it requires attribute and in my case button has a reactid which triggers a end point call. Please refer to attached screen shot.
Can somebody please tell what changes I need to do to make code in above links work ?
Thanks in advance.
Regards,
Vikram
To be able to download a link to need to find a way to get the link. The best way to do that is to talk to the developer that wrote the code and find out how it works.
Clicking on the button will trigger some sort of JavaScript event, you need to know what that event is so that you can replicate it to get the download link.
Bear in mind that this is probably not a test that's worth performing in Selenium., it's probably a unit test in JavaScript land.
Since you can't get the link of the downloadable file from the html and verify the https status code because in your case - the downloading happens by javascript method
The only way to verify downloading in your case is to actually click the element and verify that the file was downloaded.
You also need to set the capability in ChromeDriver to download to default directory without asking.
Chrome Web Driver download files
I am trying to use both bokeh and matplotlib in my IPython notebook... Neither work perfectly.
Attached is a screen shot of Bokeh. Matplotlib explanation is below.
Here are my system specs:
-Windows 7 with Vagrant
-Jupyter/IPython
BOKEH -- buttons are static images; there is no resizing, yet the graph is interactive
Should look like from this website: http://docs.bokeh.org/en/latest/docs/quickstart.html
MATPLOTLIB -- only static shots appear when it should be zoomable, etc (like bokeh)
1) read the documentation.
you would only change output_file() to a call to output_notebook() instead.
Which you did not seem to do above.
2) Why should it ? What di you do to make it zoomable ?
3) try not to post 2 unrelated question at the same time.
You appear to be using an older version of Bokeh. The issue with the CSS problems (button appearance) has been fixed for some time. As mentioned above, you will need to execute output_notebook() to load Bokeh for IPython notebook usage. For future reference, questions like this greatly benefit from providing as much information as possible (e.g., Bokeh and browser versions, platform information, etc.) Without that information it is impossible to diagnose problems with any certainty.
I am trying to render a page having KML using Chromium browser but it fails with the following error:
"The operation failed because it would cause the application to exceed its storage quota."
The same page is rendered correctly using Google chrome.
Any help will be highly appreciated
Answer is among the discussions and comments under jornh direction as follows:
I managed to fix this issue by modifying the method "OnQuotaRequest" in file request_handler_cpptoc.cc in project libcef_dll_wrapper. i compiled that both in 32 and 64 bit then used it in Cefsharp.Core project of the Cefsharp3.