-
Notifications
You must be signed in to change notification settings - Fork 885
facets-overview crashed! #213
Comments
i knew the jupyter extension ,but open html file is more convenient for me, can you tell me how to import an online url like "https://raw.githubusercontent.com/PAIR-code/facets/1.0.0/facets-dist/facets-jupyter.html" rather than use "href="/nbextensions/facets-dist/facets-jupyter.html" " |
i uploaded the file "facets-jupyter.html" on my github project and use the raw url but it doesnt work |
What error do you see in the browser's developers console when you attempt to link import the github-hosted facets-jupyter.html from your own html page? |
i m in China ,it seems that the site https://raw.githubusercontent.com cant open, i add "199.232.68.133 raw.githubusercontent.com" in my pc hosts and the facets can show |
So if you copy that file to your machine or another local one and link it from there, does it work as expected? |
i seems find the reason why it doesnt work, maybe my link needs gitlab account verified, |
@jimbojw any advice for getting access to this file without CORS issues? |
OK thanks, I think I understand the problem. To use the If a given server wants to allow its content to be accessible across domains, the server can supply an If you control the server You could also host the |
Yeah, it's a subtle distinction. If you open a link directly, your browser will have no trouble downloading and displaying the content. This is normal. It's even possible to load code and images across domains in some cases. For example, your code fragment loads But the problem is when you want load content from a different domain AND access that data programmatically in JavaScript. To load data dynamically, pages often use This is a security precaution for your safety. It helps to prevent cross-site scripting (XSS) attacks. If But rather than always preventing all cross-origin requests, the browser will allow such requests IF the server specifically allows those requests. The server signals that it's willing to serve to another domain by supplying the |
Can you provided an offline mode that i save the "facets-jupyter.html" in my PC folder path, for example "D:/facets/facets-dist/facets-jupyter.html" and add a line such as |
You can save that file locally from our github repo on your own machine and point your jupyter notebook's code to load it from your local copy, or have your own html file point to that local version. But in that case you will need to write the html code to correctly load the visualization and set the data on it, much in the way that our homepage code does (https://pair-code.github.io/facets/ is the homepage, with the code to get it work being https://github.com/PAIR-code/facets/blob/gh-pages/index.html |
https://raw.githubusercontent.com/PAIR-code/facets/1.0.0/facets-dist/facets-jupyter.html
cant import this depends
The text was updated successfully, but these errors were encountered: