-
Notifications
You must be signed in to change notification settings - Fork 111
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
How to disable request for tex-svg.js
file?
#242
Comments
Code:let mut plot = Plot::new();
let line = Scatter::new(coords.clone(), u.clone())
.mode(Mode::LinesMarkers)
.marker(Marker::new().size(10).opacity(0.8).color("#242424"));
plot.add_trace(line);
plot.show(); Cargo.toml[dependencies]
nalgebra = "0.33.0"
nalgebra-sparse = "0.10.0"
ndarray = "0.13"
plotly = { version="0.10.0", features = ["plotly_embed_js"] }
serde = { version = "1.0.213", features = ["derive"] }
serde_yml = "0.0.12"
|
It is unrelated to any other JS scripts from the template html files. To answer the question in the title, no way unless we change the code :) |
So you can add an additional flag to embed tex-svg.js? The thing is that I need to build graphs on a computer that does not have Internet access. And because of the lack of tex-svg.js, before drawing the graph, there are attempts to request this file, which slows down the output of the graph. |
OK, I see. I have to check why tex-svg.js was added (before I joined the project). Probably most straightforward would be to put it also behind the same embed_js flag to reduce complexity and since ultimately as you very well point out the application of it is in the end offline vs online. I will give you an update this weekend |
Thank you very much! |
Fixes #242 Signed-off-by: Andrei Gherghescu <[email protected]>
Embed all js libraries when plotly_embed_js flag is enabled Fixes #242 Signed-off-by: Andrei Gherghescu <[email protected]>
I merged #243 in main which automatically closed the issue. Let me know if your problem was fixed or not when using the |
The flag
plotly_embed_js
does not disable the file request https://cdn.jsdelivr.net/npm/[email protected]/es5/tex-svg.js.I need to disable all requests. Is it possible?
The text was updated successfully, but these errors were encountered: