-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
interactive plots in HTML output - how? #235
Comments
Today the Plots team released v0.26.1 for Plots.jl (link here). So now we can at least produce an interactive output using the plotly() backend to Plots, like so:
When I run the above with Plots.jl 0.26.1, and then Weave to html:
I do get an interactive html output. So I am closing this issue. Thanks. |
I am getting issues too. When I put in the following:
And then output via weave using:
Error:
With plotlyjs(): |
I am seeing the same issues reported here (for both Here are the installed package versions:
Any help or insight very much appreciated! |
Yeah it actually did stop happening for a while, I realize it was because of an update, but after I upgraded to Julia 1.5 it came up again. (Not sure if it is due to the Julia version). |
I'm getting the same thing
|
I'm getting the same thing as well,
Getting this during weave process of this code:
It works in the notebook in vscode, but not when trying to weave the resulting html document showing, same result happens for markdown output as well. |
First, thank you for this great package. It has already helped me communicate my results using Julia. I have no doubt this package is improving scientific communication around the world.
In my view, what would really bring Weave reports to the next level are embedded interactive plots. Such a report is beyond a traditional document editor with static plots (e.g., MS Word). I have been trying to embed interactive plots within a Weave HTML report, and read issues #47 and #186. But so far I have been unsuccessful. I tried searching online but have not found examples or instructions for how to generate an interactive HTML output, so I thought to open this issue and ask for help.
I am using a Windows 7 machine and VS Code with the Julia extension (v.0.12.0). Here are my attempts:
Attempt 1
In the editor, I entered and ran the following:
I save the file as "test_interactive_weave.jl". Then in the VS Code Julia console, I entered the following Weave command:
using Weave; weave("C:/Julia/test_interactive_weave.jl", out_path=:doc, doctype="md2html")
But in the rendered HTML file, I see the code but instead of a plot, I see red text that reads:
Attempt 2
Next, I tried changing "plotly()" to "plotlyjs()", but after entering the same Weave command, in the rendered HTML output I see the following red text:
Attempt 3
So then I tried changing the doctype to "pandoctohtml", i.e., the following Weave command:
using Weave; weave("C:/Julia/test_interactive_weave.jl", out_path=:doc, doctype="pandoc2html")
When I use plotly() as the backend and pandoctohtml, I see the "got :html" error as before:
Attempt 4
And when I use plotlyjs() and pandoctohtml, I see the same "data not defined" error:
Package status
The following is the output of
using Pkg; Pkg.status()
I would appreciate any thoughts or help. Thank you for your time.
The text was updated successfully, but these errors were encountered: