New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generalize show
for TwoColumn
etc to work with svg
s
#37
Comments
I'm happy to see PRs for improvements. |
sorry, you need |
Adding CarioMakie resulted in it running. But now the RHS says:
"Scene (800px, 600px): 0 Plots 1 Child Scene: └ Scene (800px, 600px)"
I feel like that's likely not the intent.
…On Sat, Oct 28, 2023 at 12:10 AM Fabian Greimel ***@***.***> wrote:
sorry, you need using CairoMakie. I adapted the snippet. Plots from this
package currently don't have an html representation, but an svg
representation.
—
Reply to this email directly, view it on GitHub
<#37 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKDFQV5Q2JT6ZWJYOZWEVDYBSAUVAVCNFSM6AAAAAA6TUGMJCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBTGY4TCMZSGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Eric Ford
|
Might be that you also need a |
Ok, now I see a plot on the right. Yes, I'd be happy to see a PR.
If it's not too much trouble, it would be nice if TwoColumnWideLeft{L,
R}, TwoColumnWideRight{L, R}, and ThreeColumn{L, C, R} worked the same.
Thanks.
…On Sat, Oct 28, 2023 at 12:41 AM Julius Krumbiegel ***@***.***> wrote:
Might be that you also need a CairoMakie.activate!(type = "svg") so it
activates that showable. But this is not really about CairoMakie I think,
just about objects that may return svg but not html. And this probably
needs a more general solution for more MIME types, I just provided some
quick help on slack :)
—
Reply to this email directly, view it on GitHub
<#37 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKDFQWHZRCMDFF2LMV5FX3YBSEGPAVCNFSM6AAAAAA6TUGMJCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBTGY4TQMZWGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Eric Ford
|
Hey! Do you already know about |
# ╔═╡ df7dd1e4-7739-11ee-2c0a-5779ff4a782b
function TwoColumns(a, b)
PlutoUI.ExperimentalLayout.Div([
PlutoUI.ExperimentalLayout.Div([a]; style=Dict("flex" => "0 0 50%"))
PlutoUI.ExperimentalLayout.Div([b]; style=Dict("flex" => "0 0 50%"))
]; style=Dict("display" => "flex", "flex-direction" => "row"))
end
# ╔═╡ 2193c3aa-96c3-4621-a451-58289e879cdb
TwoColumns(
md"# Hello!
I am a computer",
rand(10)
)
# ╔═╡ efd1aca8-5c8f-499d-9748-ccc297c7d167
import PlutoUI |
No, I wasn't aware of that. Thanks.
Your `TwoColumns` looks like a nice solution to me.
It looks simple enough that I could do it next time I update Pluto. Or,
I'd be happy to merge a PR from Fabian if they'd like it sooner.
…On Mon, Oct 30, 2023 at 11:38 AM Fons van der Plas ***@***.***> wrote:
[image: image]
<https://user-images.githubusercontent.com/6933510/279112738-5aa7ed20-864e-4dc8-a080-6d5c4e351a42.png>
# ╔═╡ df7dd1e4-7739-11ee-2c0a-5779ff4a782bfunction TwoColumns(a, b)
PlutoUI.ExperimentalLayout.Div([
PlutoUI.ExperimentalLayout.Div([a]; style=Dict("flex" => "0 0 50%"))
PlutoUI.ExperimentalLayout.Div([b]; style=Dict("flex" => "0 0 50%"))
]; style=Dict("display" => "flex", "flex-direction" => "row"))end
# ╔═╡ 2193c3aa-96c3-4621-a451-58289e879cdbTwoColumns(
md"# Hello! I am a computer",
rand(10)
)
# ╔═╡ efd1aca8-5c8f-499d-9748-ccc297c7d167import PlutoUI
—
Reply to this email directly, view it on GitHub
<#37 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKDFQVNQHWKAHXWYYOWNWTYB7CWDAVCNFSM6AAAAAA6TUGMJCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBVGQ4DKNRXGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Eric Ford
|
Hi @fonsp, |
Hi @eford!
@jkrumbiegel provided the following code snippet on Slack
I think it would be really nice to use this approach in this package, do you agree?
I'd be willing to prepare a PR if @jkrumbiegel and @eford approve (unless @jkrumbiegel wants to do it himself)
The text was updated successfully, but these errors were encountered: