-
-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into compathelper/new_version/2023-06-03-00-41-…
…36-699-02759681602
- Loading branch information
Showing
13 changed files
with
113 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
github: sglyon | ||
github: [sglyon, JuliaPlots] | ||
open_collective: plotsjl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name = "PlotlyJS" | ||
uuid = "f0f68f2c-4968-5e81-91da-67840de0976a" | ||
authors = ["Spencer Lyon <[email protected]>"] | ||
version = "0.18.10" | ||
version = "0.18.12" | ||
|
||
[deps] | ||
Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f" | ||
|
@@ -18,19 +18,39 @@ Reexport = "189a3867-3050-52da-a836-e630ba90ab69" | |
Requires = "ae029012-a4dd-5104-9daa-d747884805df" | ||
WebIO = "0f1e0344-ec1d-5b48-a673-e5cf874b6c29" | ||
|
||
[weakdeps] | ||
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b" | ||
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0" | ||
IJulia = "7073ff75-c697-5162-941a-fcdaad2a7d2a" | ||
JSON3 = "0f8b85d8-7281-11e9-16c2-39a750bddbf1" | ||
|
||
[extensions] | ||
CSVExt = "CSV" | ||
DataFramesExt = ["DataFrames", "CSV"] | ||
IJuliaExt = "IJulia" | ||
JSON3Ext = "JSON3" | ||
|
||
[compat] | ||
Blink = "0.12" | ||
DelimitedFiles = "1" | ||
CSV = "0.10" | ||
DataFrames = "1" | ||
IJulia = "1" | ||
JSExpr = "0.5, 1" | ||
JSON = "0.20, 0.21" | ||
JSON3 = "1" | ||
PlotlyBase = "0.8.15" | ||
Reexport = "0.2, 1" | ||
Requires = "1.0" | ||
WebIO = "0.8" | ||
julia = "1.3, 1.4, 1.5, 1.6" | ||
|
||
[extras] | ||
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b" | ||
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0" | ||
IJulia = "7073ff75-c697-5162-941a-fcdaad2a7d2a" | ||
JSON3 = "0f8b85d8-7281-11e9-16c2-39a750bddbf1" | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
|
||
[targets] | ||
test = ["Test"] | ||
test = ["Test", "CSV", "DataFrames", "IJulia", "JSON3"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# run the artifacts.yml Github Action after changing this file | ||
"2.3.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module CSVExt | ||
|
||
using PlotlyJS | ||
isdefined(Base, :get_extension) ? (using CSV) : (using ..CSV) | ||
|
||
function PlotlyJS.dataset(::Type{CSV.File}, name::String) | ||
ds_path = PlotlyJS.check_dataset_exists(name) | ||
if !endswith(ds_path, "csv") | ||
error("Can only construct CSV.File from a csv data source") | ||
end | ||
CSV.File(ds_path) | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module DataFramesExt | ||
|
||
using PlotlyJS | ||
isdefined(Base, :get_extension) ? (using DataFrames) : (using ..DataFrames) | ||
isdefined(Base, :get_extension) ? (using CSV) : (using ..CSV) | ||
|
||
|
||
PlotlyJS.dataset(::Type{DataFrames.DataFrame}, name::String) = DataFrames.DataFrame(PlotlyJS.dataset(CSV.File, name)) | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
module IJuliaExt | ||
|
||
using PlotlyJS | ||
isdefined(Base, :get_extension) ? (using IJulia) : (using ..IJulia) | ||
isdefined(Base, :get_extension) ? (using JSON) : (using ..JSON) | ||
isdefined(Base, :get_extension) ? (using PlotlyBase) : (using ..PlotlyBase) | ||
|
||
|
||
function IJulia.display_dict(p::PlotlyJS.SyncPlot) | ||
Dict( | ||
"application/vnd.plotly.v1+json" => JSON.lower(p), | ||
"text/plain" => sprint(show, "text/plain", p), | ||
"text/html" => let | ||
buf = IOBuffer() | ||
show(buf, MIME("text/html"), p) | ||
String(resize!(buf.data, buf.size)) | ||
end | ||
) | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module JSON3Ext | ||
|
||
using PlotlyJS | ||
isdefined(Base, :get_extension) ? (using JSON3) : (using ..JSON3) | ||
|
||
JSON3.write(io::IO, p::PlotlyJS.SyncPlot) = JSON3.write(io, p.plot) | ||
JSON3.write(p::PlotlyJS.SyncPlot) = JSON3.write(p.plot) | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters