-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b6d2e46
commit 37788b2
Showing
14 changed files
with
120 additions
and
480 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,7 +1,7 @@ | ||
name = "JolinPluto" | ||
uuid = "5b0b4ef8-f4e6-4363-b674-3f031f7b9530" | ||
authors = ["Stephan Sahm <[email protected]> and contributors"] | ||
version = "0.1.79" | ||
version = "0.1.80" | ||
|
||
[deps] | ||
AbstractPlutoDingetjes = "6e696c72-6542-2067-7265-42206c756150" | ||
|
@@ -18,15 +18,11 @@ JWTs = "d850fbd6-035d-5a70-a269-1ca2e636ac6c" | |
UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4" | ||
|
||
[weakdeps] | ||
AWS = "fbe9abb3-538b-5e4e-ba9e-bc94f4f92ebc" | ||
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80" | ||
PythonCall = "6099a3de-0909-46bc-b1f4-468b9a2dfc0d" | ||
RCall = "6f49c342-dc21-5d91-9882-a32aef131414" | ||
CondaPkg = "992eb4ea-22a4-4c89-a5bb-47a3300528ab" | ||
|
||
[extensions] | ||
AWSExt = "AWS" | ||
PlotsExt = "Plots" | ||
PythonCallExt = "PythonCall" | ||
RCallExt = ["RCall", "CondaPkg"] | ||
|
||
|
This file was deleted.
Oops, something went wrong.
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,21 +1,23 @@ | ||
module PlotsExt | ||
import JolinPluto, Plots | ||
|
||
# little helper to support plotly responsiveness | ||
# see this issue for updates https://github.com/JuliaPlots/Plots.jl/issues/4775 | ||
function JolinPluto.plotly_responsive(plt=Plots.current()) | ||
HTML("<div>" * replace( | ||
Plots.embeddable_html(plt), | ||
# adapt margin as it interfers with responsive | ||
r"\"margin\": \{[^\}]*\},"s => """ | ||
"margin": {"l": 40,"b": 40,"r": 0,"t": 22},""", | ||
# delete extra outer style attribute - not needed at all | ||
r"style=\"[^\"]*\""s => "", | ||
# delete layout width as this interfers with responsiveness | ||
r"\"width\":[^,}]*"s => "", | ||
# add extra config json at the end of the call to Plotly.newPlot | ||
");" => ", {\"responsive\": true});" | ||
) * "</div>") | ||
end | ||
# TODO use PlutoPlotly.jl instead | ||
|
||
# # little helper to support plotly responsiveness | ||
# # see this issue for updates https://github.com/JuliaPlots/Plots.jl/issues/4775 | ||
# function JolinPluto.plotly_responsive(plt=Plots.current()) | ||
# HTML("<div>" * replace( | ||
# Plots.embeddable_html(plt), | ||
# # adapt margin as it interfers with responsive | ||
# r"\"margin\": \{[^\}]*\},"s => """ | ||
# "margin": {"l": 40,"b": 40,"r": 0,"t": 22},""", | ||
# # delete extra outer style attribute - not needed at all | ||
# r"style=\"[^\"]*\""s => "", | ||
# # delete layout width as this interfers with responsiveness | ||
# r"\"width\":[^,}]*"s => "", | ||
# # add extra config json at the end of the call to Plotly.newPlot | ||
# ");" => ", {\"responsive\": true});" | ||
# ) * "</div>") | ||
# 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
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.