MakieOrg / Makie.jl

Interactive data visualizations and plotting in Julia
https://docs.makie.org/stable
MIT License
2.42k stars 313 forks source link

PackageCompile do not show the print #222

Closed rveltz closed 5 years ago

rveltz commented 6 years ago

Hi,

After running PackageCompiler.compile_package("Makie", force = false) # can take around ~20 minutes ,

I get the following

julia> data = rand(50, 50);

julia> scene = heatmap(data)
Scene (960px, 540px):
events:
    window_area: GeometryTypes.HyperRectangle{2,Int64}([0, 0], [0, 0])
    window_dpi: 100.0
    window_open: false
    mousebuttons: Set(AbstractPlotting.Mouse.Button[])
    mouseposition: (0.0, 0.0)
    mousedrag: notpressed
    scroll: (0.0, 0.0)
    keyboardbuttons: Set(AbstractPlotting.Keyboard.Button[])
    unicode_input: Char[]
    dropped_files: String[]
    hasfocus: false
    entered_window: false
plots:
   *Axis2D{...}
   *Heatmap{...}
subscenes:
   *scene(960px, 540px)

and no window with the result is opened whereas it is if I run Julia without the -J option. Is it to be expected?

Thank you for your amazing work, btw.

Evizero commented 6 years ago

for context: this fallback text is shown if there is no backend display set and no custom show mime method provided by the backend. So the issue is prob somewhere there (e.g. that this information gets lost when compiling)

rveltz commented 6 years ago

the backend gets lost when compiling?

Evizero commented 6 years ago

I do not know. I am just saying something in that corner of the code must get twisted in the process

SimonDanisch commented 6 years ago

You could try display(AbstractPlotting.PlotDisplay(), scene) ! I guess the __init__ behaves different under static compilation, so likely the plots display doesn't get pushed

rveltz commented 6 years ago

it works !

SimonDanisch commented 6 years ago

is it faster, though?

rveltz commented 6 years ago

Up to scene : yes