-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Offline #10
Comments
Tasks are
|
Unfortunately I have no idea about how to make the browser load a script from a local file - I think it is a security hazard of some kind. I've done a fair amount of googling, but javascript development for offline use is not a popular topic, so I am not going to fix it until I can talk to someone who has lots of javascript/jupyter experience :(. The issue is similar to this: JuliaLang/IJulia.jl#345 |
Maybe it can be fixed with this https://github.com/EricForgy/Pages.jl |
When I used D3Tree, I find a problem but I can't solve it. Perhaps you can help me to solve it. Thank you very much! I only use the function: inchrome. |
@pilgrimygy it looks like your system was not able to start chrome. Do you have google chrome installed and does the command |
If you have a different browser installed, consider using |
Oh! Thank you very much! I can print the tree in jupyter notebook.
…------------------ 原始邮件 ------------------
发件人: "sisl/D3Trees.jl" <[email protected]>;
发送时间: 2020年7月15日(星期三) 晚上11:55
收件人: "sisl/D3Trees.jl"<[email protected]>;
抄送: "pilgrim"<[email protected]>;"Comment"<[email protected]>;
主题: Re: [sisl/D3Trees.jl] Offline (#10)
If you have a different browser installed, consider using inbrowser instead of inchrome.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Yeah, this limitation is borne out of CORS rules: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS The fix is easy, just serve all the files from a local Web server. |
If you're targeting just the Chromium/Chrome browser, a possible workaround is to specify the |
Another workaround, but not just for Chromium, would be to include the JS and other dependencies in the HTML file that you generate. |
Thanks for the clarifying comments @nsajko ! I don't have time to personally work on this at the moment, but it would be nice for someone to implement one of these ideas. Would prefer something that works in all browsers and Jupyter. |
Right now the package downloads d3 on the fly, so it will not work without the internet, as I found out painfully in a presentation. I guess we should download d3 into deps
The text was updated successfully, but these errors were encountered: