5

I'm using Neo4j 2.2.0, community edition, installed on a server. I have been able to successfully download the .grass style sheet, modify it, then drag it back to the browser. This works great, however it only changes the style on my local machine. Seemingly the .grass file lives in the local resources of the browser.

I would like to keep my style sheet on the server & apply it to all users of my database. Can anyone guide me through how I can do this please? I couldn't see anywhere obvious in the db files or the help documentation.

The closest related question I could find is this one Edit or Create Graph Style Sheets for WebAdmin, which seems to imply that it's not really possible.

Cheers, Andy

Community
  • 1
  • 1
Andy Herd
  • 95
  • 1
  • 8

2 Answers2

2

Right now it's not possible automatically (except for copying / reading out the local browser storage and updating it in the other browsers).

The feature is being worked on but not ready for public usage yet.

Neo4j Browser Grass Local Storage

Michael Hunger
  • 41,339
  • 3
  • 57
  • 80
2

As of version 3.2, now you can set your own .grass file as default stylesheet for your Neo4j browser visualization. You can set the configuration in the neo4j.conf file as:

browser.post_connect_cmd=style <path to your .grass file>

More info here

Fabio Lamanna
  • 20,504
  • 24
  • 90
  • 122
  • from some servers this doesn't work (even if they are allowed in conf file) (and for me hosting it in import directory didn't work either), in case it happens to anyone else too, my solution was hosting the grass file on github and using the raw file link from there. – FatihSarigol Feb 10 '22 at 16:15