-
Notifications
You must be signed in to change notification settings - Fork 351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configuring a Neo4j Browser with a default custom GRASS style #171
Comments
Sure, you can set the server config
in the file Untested, but should work. |
@oskarhane Wow that's very cool. Correct me if I'm wrong but there is no such setting in the operations manual ? Anyway guys, this is awesome ! |
@ikwattro you might be correct, it's a quite new feature: http://neo4j.com/release-notes/neo4j-3-0-1/ |
Thanks, you guys rock ! Shame on me for not having checked the changelog |
Thanks @oskarhane. The However, it looks like my style command from above doesn't work even when I run it directly from the browser. I'm guessing it could be a CORS issue (as with playing guides from URL in #170). However, the failure is silent. Assuming that reading from a URL is the cause of failure, is there a way to put the GRASS file inside of the Neo4j instance's directory structure and specify a local file with |
Yes, that's probably due to a CORS issue.
To put that in the conf file you probably have to replace newlines with spaces. |
Confirming that the failure to load the style from URL was a CORS issue. My web browser console picked up the following error:
I plan to proceed by applying one of the workarounds, but I think a way to preload a local grass file without user interaction would be good in the longterm. Also confirming that the one line hack (see code snippet below) works. Therefore, if #172 gets implemented, configuration with a local grass file would be less pressing.
|
Since there's no supported builtin way of loading a local grass file (see neo4j/neo4j-browser#171), hosting grass files using the guide-extension would be handy.
Since there's no supported builtin way of loading a local grass file (see neo4j/neo4j-browser#171), hosting grass files using the guide-extension would be handy.
Need to be able to color by node. I think this will help: neo4j/neo4j-browser#171
This looks like it's resolved, so I'll close this. |
I run neo4j Version: 3.3.2 in a docker container and tried to configure a default style as described above.
When i start my container with this config and run |
For Khazl and others: The solution is to strip carriage returns from style.grass file, (with no "play" command in the grass file). Then the config command has the "style" command - browser.post_connect_cmd=style http://domain.com/resources/style.grass You may will have to whitelist "domain.com" with a config statement. |
Hi, Can you please tell me where can i find the neo4j.conf file. Because if i make it manually and insert like i did for .grass file and inserted it in favorites, the neo4j.conf file is not acceptable .
|
@suchetaswabhav The neo4j conf file is in the database directory, under the |
I use the image file to open the Neo4j browser and database ..what to do ? |
Thanks oskarhane... i found out . You get it in Graph Applications tab - > Open folder -> configuration |
Hi,guys |
This is great but I just wanna make a remark here because importing grass file from some websites just doesn't work, I tried 1 https and 1 http server to host my grass file but both failed, finally I hoped that it would work from github rawfiles and it did. I don't know why the other servers did not work, I can LOAD CSV files from one of them to the same NEO4J browser for instance, but when it is a :style grassfile command it just didn't access the file, regardless of my permission for the server in conf settings. by the way, calling the grass file from the neo4j/import directory also failed, and so did the one liner style trick inside the conf file |
你好,我是叶文,我已经收到您的邮件啦,谢谢你的来信
|
I've created a public read-only instance of our Neo4j database at http://neo4j.het.io/ (thanks @jexp for the help). I'd like to have a custom GRASS style applied to every browser instance by default.
On StackOverflow @ikwattro mentioned that:
So I could always instruct users to run:
Is there an automated workaround, so users don't have to execute this command? If not, then I'd like suggest a feature request to couple a specific Neo4j database with a custom style. It seems like styles make sense on a per database level, rather than a per browser level. Or perhaps on a per database per browser level, but with a database default.
The text was updated successfully, but these errors were encountered: