-
Notifications
You must be signed in to change notification settings - Fork 885
How to save the tool outside the jupyter notebook so that the images appear on the display? #239
Comments
If you want to host an instance of Facets Dive outside of a notebook, on your own webpage, then you can follow the same approach taken by our facets.dev website, where we set up a webpage and in our case we use GitHub Pages to host it. https://github.com/PAIR-code/facets/blob/gh-pages/index.html shows our code for the main facets.dev page with its facets dive demo on it. https://github.com/PAIR-code/facets/blob/gh-pages/quickdraw.js and https://github.com/PAIR-code/facets/blob/gh-pages/quickdraw.html show the code for the https://pair-code.github.io/facets/quickdraw.html demo which includes images. |
I'm trying to test these codes, but I'm getting an error. The code is this:
I'm not understand this error. I put in the code both random-dogs.json and random-dogs.png. What could be going wrong? Thanks |
It seems like the javascript is being executed before the HTML code to create the facets-dive and other elements have been created. The HTML code loads the dogs.js inside the WebComponentsReady callback, which should mean it doesn't execute until the elements are built. But you also load dogs.js with a <script> tag explicitly. Try removing the "<script type="text/javascript" src="dogs.js"></script>" line from the html perhaps. |
Also feel free to remove the below section, as its just for our collecting of site visits on the facets homepage: ` |
Hello,
I have doubts if it is possible to save the tool outside the jupyter notebook so that the images appear on the display. I can save in html format, but the images do not appear only the colored circles that are standard of the tool. Is it possible to resolve this for an image database? Below is an excerpt from my code that saves the display:
In general, I'm trying to host an instance of Facets Dive outside of a notebook to shared with other people that wanted to work with tool.
I'm annexed the examples of display on jupyter and when it saved in html format
Display on jupyter:
Display save in html format:
Why don't the images appear?
Has anyone had this problem or could you help me?
Thanks :)
The text was updated successfully, but these errors were encountered: