Skip to content

Commit

Permalink
Merge pull request #45 from JuliaPluto/fix_filename_option
Browse files Browse the repository at this point in the history
  • Loading branch information
disberd authored Feb 26, 2024
2 parents 58f81ad + bc131f0 commit 145a22b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/script_contents/clipboard.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function getImageOptions() {
width: o.width ?? original_width,
height: o.height ?? original_height,
scale: o.scale ?? 1,
filename: "newplot",
filename: o.filename ?? "newplot",
};
}
Expand Down
17 changes: 10 additions & 7 deletions test/extensions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@ using Test

## PlotlyKaleido Extension ##
using PlotlyKaleido
if Sys.iswindows()
# We skip extensions in windows as PlotlyKaleido fails
else
PlotlyKaleido.start()

PlotlyKaleido.start()

mktempdir() do dir
cd() do
p = plot(rand(10,4))
@test_nowarn savefig(p, "test_savefig.png")
@test isfile("test_savefig.png")
mktempdir() do dir
cd() do
p = plot(rand(10,4))
@test_nowarn savefig(p, "test_savefig.png")
@test isfile("test_savefig.png")
end
end
end

Expand Down
2 changes: 1 addition & 1 deletion test/notebook_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function noerror(cell; verbose=true)
end


options = Configuration.from_flat_kwargs(; disable_writing_notebook_files=true)
options = Configuration.from_flat_kwargs(; disable_writing_notebook_files=true, workspace_use_distributed_stdlib = true)
notebook_dir = joinpath(@__DIR__, "../notebooks/")
eval_in_nb(sn, expr) = WorkspaceManager.eval_fetch_in_workspace(sn, expr)

Expand Down

0 comments on commit 145a22b

Please sign in to comment.