You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use Plotly.NET.ImageExport to statically export a graph as an image. When I run the application, my program runs for a very long time without any results.
Repro steps
Create a new F# project in console mode and add the dependencies to Plotly.NET and Ploty.NET.ImgeExport:
openPlotly.NET.ImageExportopenPlotly.NETlettest path =letxs=[0.0..9.0]letys= Seq.map (fun x -> x **2.0) xs
Chart.Scatter(xs, ys, StyleParam.Mode.Lines_Markers)|> Chart.saveJPG path
printfn "Exporting the graph..."do test "test.jpg"
printfn "Done!"// never appears
Expected behavior
I expect it to generate an image, and especially for my application to stop, it seems to loop.
Actual behavior
After 10 minutes of waiting, I stopped my program because nothing happens.
Known workarounds
I came across this issue. My application did indeed generate a local chromium, so I referred Plotly to it:
openPlotly.NET.ImageExportopenPlotly.NETdo
PuppeteerSharpRendererOptions.localBrowserExecutablePath <-
Some ".local-chromium/Linux-884014/chrome-linux/chrome"lettest path =letxs=[0.0..9.0]letys= Seq.map (fun x -> x **2.0) xs
Chart.Scatter(xs, ys, StyleParam.Mode.Lines_Markers)|> Chart.saveJPG path
printfn "Exporting the graph..."do test "test.jpg"
printfn "Done!"// never appears
I have tried absolute and relative path, but the problem remains the same.
Related information
Operating system: Linux, Pop!_OS
.NET Runtime: version 6.0.301
The text was updated successfully, but these errors were encountered:
Description
I want to use
Plotly.NET.ImageExport
to statically export a graph as an image. When I run the application, my program runs for a very long time without any results.Repro steps
Create a new F# project in console mode and add the dependencies to Plotly.NET and Ploty.NET.ImgeExport:
Then write any code that exports an image:
Expected behavior
I expect it to generate an image, and especially for my application to stop, it seems to loop.
Actual behavior
After 10 minutes of waiting, I stopped my program because nothing happens.
Known workarounds
I came across this issue. My application did indeed generate a local chromium, so I referred Plotly to it:
I have tried absolute and relative path, but the problem remains the same.
Related information
The text was updated successfully, but these errors were encountered: