Am 07.08.19 um 14:20 schrieb James Ruffle: > Hi Tiago, > > Thanks for this. > > Unfortunately my machine seems to fail with calling state.draw() for > interactive visualisation which makes it difficult to understand exactly how > this interacts. > I am running it from the docker image, on macOS 10.14.16. > > Following your instructions on installation page; > > docker pull tiagopeixoto/graph-tool > xhost +local: > docker run -ti -u user -w /home/user --rm -e DISPLAY=$DISPLAY -v > /tmp/.X11-unix:/tmp/.X11-unix tiagopeixoto/graph-tool ipython > > from graph_tool.all import * ; import graph_tool.all as gt ; > Unable to init server: Could not connect: Connection refused > (ipython:1): Gdk-CRITICAL **: 12:54:59.581: gdk_cursor_new_for_display: > assertion 'GDK_IS_DISPLAY (display)’ failed > (ipython:1): Gdk-CRITICAL **: 12:54:59.598: gdk_cursor_new_for_display: > assertion 'GDK_IS_DISPLAY (display)’ failed > > g = gt.collection.data["celegansneural”] > state = gt.minimize_nested_blockmodel_dl(g) > state.draw() > RuntimeError: Gtk couldn't be initialized. Use Gtk.init_check() if you want > to handle this case. > > Do you have a suggestion how to resolve this?
In MacOS I believe you need to have XQuartz installed: https://en.lmgtfy.com/?q=macos+docker+connecting+to+x+server Best, Tiago -- Tiago de Paula Peixoto <ti...@skewed.de>
Description: OpenPGP digital signature
_______________________________________________ graph-tool mailing list email@example.com https://lists.skewed.de/mailman/listinfo/graph-tool