I am trying to using backend of PlotlyJS in my julia code, but it shows the warning:
Warning: backend PlotlyJS is not installed.
└ @ Plots C:\Users\username.julia\packages\Plots\p3KMq\src\backends.jl:43
Then there is no any further output on the screen.
I have installed the PlotlyJS and Plots in my Project.toml, but why it still mention that I didn’t install it. Any suggestions and commons would be very appreciated.
Can you copy-paste the output of pkg> status? It could be that you’re not currently in the environment defined by the Project.toml you’re referring to?
Yes, the code I developed is in the VS code. The code itself has the Project.toml file, which will include the necessary packages for the code. But in my julia installation folders, it has another set of packages. I am thinking that it is because I didn’t give the right path to call. BTW, even when I add the Plots.jl package, it still doesn’t work, and shows the following errors
I’m not sure where the JavaScript error comes from, to be honest.
Your default Julia environment (called v1.8 if you’re at the latest release) should ideally be as light as possible to avoid compatibility issues. In particular, it’s usually a bad idea to put heavy stuff like Plots.jl in there. My suggestion would be to remove Plots.jl from your default environment, add it to your project environment and try again
Thank you for your suggestions, I think the Java error is still from the plotlyjs. I am also wondering it may be not because of the Plots.jl, because if I used the default backend, like GR, and also the defined backend, like plotly(), then it works fine, and can get the outputs.
Are you interested in using just the PlotlyJS package directly without going through Plots.jl first? I can help translate the difference if you need it.