Git Product home page Git Product logo

plutoplotly.jl's People

Contributors

disberd avatar fonsp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

plutoplotly.jl's Issues

Feature Request: Add julia API to modify existing plots shown in different cells

Modifying existing plots from different cells and from the JS side is useful many times, especially if the plot is outputting some variable that is bound on julia using @bind.

Modifying the plot via JS does not trigger a @bind reset and so is preferable.

Main idea to do this is to add a flag to the PlutoPlot object (default to true) that enforces probably via the plot id in JS that this plot is only rendered once. This way one can pass the julia plot object to a julia function and be sure that not more than one plot exists for that specific julia object.

TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.

If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.

If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Plots do not show within `@info`

Plot are not correctly rendered currently inside Pluto logs:
image

This is caused by the IO hack that is used to keep persistence between multiple plot objects in the same cell

Download interactive HTML plot

There is no wrapper function to save an html version of a plot object. The current workaround is as follows:

let
    open("$(homedir())/tmp/text.html"; write=true) do io
        PlotlyBase.to_html(io, p.Plot)
    end
end

load plotly as ES6 module

As discussed last week, I think I am loading plotly as the JavaScript notebook example say one should load ES6 modules:

if (!window.Plotly) {
const {plotly} = await import('https://cdn.plot.ly/plotly-$(ver).$(suffix)')
}

but the Plotly object is anyway attached to the window and can not be accessed from plotly in JS.

Tagging @fonsp as mentioned last week

Fix _preprocess to types from Colors.jl

Current color types from Colors.jl are going through the standard json processing but that errors when rendered inside PlutoPlots.
They should be converted to string representations during _preprocessing

Heatmap behavior

I just figured out that the decision who is the x axis and who the y axis has a different behavior in
PlotlyLight and PlutoPlotly:

image

Further observation: transposing the zz variable zz' leads to an error in PlutoPlotly. (maybe a collect is needed).
permutedims works.

Warning in custom sysimage

When backing PlutoPlotly into a custom sysimage that contains Pluto and PlutoPlotly, I get the following warning upon starting Pluto

┌ Warning: You loaded this package outside of Pluto, this is not the intended behavior and you should use either PlotlyBase or PlotlyJS directly
└ @ PlutoPlotly ~/.julia/packages/PlutoPlotly/8WjBh/src/PlutoPlotly.jl:12

Does is_inside_pluto() not work as intended in this case?

Steps to reproduce on julia 1.7.3

using Pkg
Pkg.activate(temp = true)
Pkg.develop("PrecompilePlutoCourse")
cd(joinpath(Pkg.devdir(), "PrecompilePlutoCourse", "Demo"))
Pkg.activate(".")
using Demo
Demo.create_sysimage()
Demo.start()

Float32Array

hey! did you consider using float32 by default for plot data? to make large plots faster 🤩

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.