Giter Club home page Giter Club logo

Comments (11)

mkborregaard avatar mkborregaard commented on May 23, 2024 1

There is CairoMakie now.

from makie.jl.

gdkrmr avatar gdkrmr commented on May 23, 2024 1

On a headless system without graphics card I installed software rendering and glxgears works fine.
I also installed Makie and it works fine if I use ssh -Y server.

Using xpra you can launch a virtual x server on the headless system and use that (https://help.ubuntu.com/community/Xpra) so you don't need to use ssh -Y

There was one warning:

Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "X11: RandR gamma ramp support seems broken")

You can even use a local xpra and open the display on the remote server, but mouse interaction will produce tons of error messages on the remote julia console.

Next step is to get it working inside Jupyter notebooks... I will let you know if I manage to do that.

from makie.jl.

SimonDanisch avatar SimonDanisch commented on May 23, 2024

@jpsamaroo wanted to help me get a backend without a gpu running :) So that might work in the near future!

from makie.jl.

jpsamaroo avatar jpsamaroo commented on May 23, 2024

Indeed, I'm planning on setting up a Cairo+Gtk backend for Makie (Gtk windowing stuff should be optional, to support headless systems). That way we can at least support 2D plotting, and then later on consider adding support for OpenGL for 3D plots (which could be provided by VirtualGL or llvmpipe on systems without proper graphics hardware).

from makie.jl.

gdkrmr avatar gdkrmr commented on May 23, 2024

Could this work with a software renderer? https://stackoverflow.com/questions/7310885/opengl-without-a-graphics-card

Or maybe virtualgl?

from makie.jl.

SimonDanisch avatar SimonDanisch commented on May 23, 2024

Pretty cool you got that running - and it doesn't even sound that complicated ;)

from makie.jl.

gdkrmr avatar gdkrmr commented on May 23, 2024

It was not that complicated. How do I resize the window opened by Makie from within Julia? My current issue is that the window opened in xpra is tiny and therefore it is saved as a tiny png.

from makie.jl.

asinghvi17 avatar asinghvi17 commented on May 23, 2024

You could try passing a resolution to the Scene? For example, sc = Scene(resolution = (1920, 1080))

from makie.jl.

gdkrmr avatar gdkrmr commented on May 23, 2024
p = Scene(resolution = (1920, 1080))
volume!(p, rand(32, 32, 32))
save("make_test.png", p)

works on my machine, but the png is still tiny on the headless machine.

from makie.jl.

SimonDanisch avatar SimonDanisch commented on May 23, 2024

Hm, the only reason it would ignore this, if it somehow thinks that Juno is there!
https://github.com/JuliaPlots/AbstractPlotting.jl/blob/master/src/display.jl#L59
If you use remote Atom, try disabling the plotpane!

from makie.jl.

gdkrmr avatar gdkrmr commented on May 23, 2024

I am trying to make it work with jupyter notebooks, I am not using Atom. I also tried resize! and it does not work. Maybe it has something to do with the display size (the monitor is 0mm x 0mm):

me@server:~$ xrandr -d :7 -q
xrandr:Failed to get size of gamma for output default
Screen 0: minimum 320 x 175, current 5280 x 1920, maximum 8192 x 4096
default connected 5280x1920+0+0 0mm x 0mm

... a list with all possible resolutions

I tried changing the resolution with xrandr but without success.

from makie.jl.

Related Issues (20)

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.