neo4j_streamlit
neo4j_streamlit copied to clipboard
No response from Streamlit
Hi CJ, I am following your post and get to the point of running the docker image:
$ docker run -p 8501:8501 -v $PWD/src:/examples neo_stream
2021-11-28 22:57:42.325 override steps (5) and chunk_size (512) as content does not fit (14 byte(s) given) parameters.
2021-11-28 22:57:42.330 Trying to detect encoding from a tiny portion of (14) byte(s).
2021-11-28 22:57:42.363 ascii passed initial chaos probing. Mean measured chaos is 0.000000 %
2021-11-28 22:57:42.369 ascii should target any language(s) of ['Latin Based']
2021-11-28 22:57:42.369 ascii is most likely the one. Stopping the process.
You can now view your Streamlit app in your browser.
Network URL: http://172.17.0.2:8501
However, I get no response at the above URL. Any thoughts? PS: I cloned the repo to WSL Ubuntu.
Thanks John
Well, that is a new one! I am looking into it now and will get back to you. In the interim, can you please confirm what you have in $PWD/src
?
Hi CJ, thanks for your quick reply! I think Streamlit is a great idea and definitely would like to incorporate it in my data science workflow.
Please see below:
neo4j_streamlit[main !]$ docker run -p 8501:8501 -v $PWD/src:/examples neo_stream 2021-11-28 22:57:42.325 override steps (5) and chunk_size (512) as content does not fit (14 byte(s) given) parameters. 2021-11-28 22:57:42.330 Trying to detect encoding from a tiny portion of (14) byte(s). 2021-11-28 22:57:42.363 ascii passed initial chaos probing. Mean measured chaos is 0.000000 % 2021-11-28 22:57:42.369 ascii should target any language(s) of ['Latin Based'] 2021-11-28 22:57:42.369 ascii is most likely the one. Stopping the process.
You can now view your Streamlit app in your browser.
Network URL: http://172.17.0.2:8501 External URL: http://67.160.215.39:8501
neo4j_streamlit[main !]$ cd src src[main !]$ ls app.py intro.py neo4j_utils.py pycache src[main !]$
On a separate note, I have been following your posts and ran into a little snag in using the jupyter/neo docker with the graph embeddings GDS GoT post https://towardsdatascience.com/getting-started-with-graph-embeddings-2f06030e97ae
I wanted to use the docker setup, but the post uses neo4j sandbox with a prebuilt GoT dataset. I tried to recreate the GoT dataset locally. After searching quite a bit, I found: :play sandbox/got
BUT, some of the scripts did not work (toInt -> toInteger, EXTRACT not longer supported). Even after fixing these, the sandbox GoT example does not match the :play sandbox/got model. There are several posts and data 'out there' by TomazB and Michael Hunger, but it would be nice if there was a :play sandbox/got_gds gist.
I worked around this by creating a dump of the sandbox GDS and restoring it into the docker neo instance container - not the best approach....
Thanks for your great posts. Keep them coming! 😁👍 John
On Tue, Nov 30, 2021 at 1:17 PM C.J. Sullivan @.***> wrote:
Well, that is a new one! I am looking into it now and will get back to you. In the interim, can you please confirm what you have in $PWD/src?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cj2001/neo4j_streamlit/issues/5#issuecomment-983028352, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASVGTF7SFL7LBZWRBE2UNB3UOU5OVANCNFSM5I6HUMEQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Hey. So a few things...
I get those same ascii warnings when I run the container, but then I am able to get to https://172.17.0.2:8501
just fine. When you say that you get no response from the browser, just it just keep trying to load to no avail or is there any kind of error message on the screen? Your $PWD/src
files looks fine.
On the other note re: the GoT graph...
It is confusing. The prebuilt Sandbox with GoT uses a bit more data than what I think you wind up getting out of that browser guide (i.e. :play sandbox/got
), but don't quote me on that bit. We are hoping to give that browser guide some love in the next year and update it. I think it was written for GDS 1.3 and there have been many changes since then (as you have found!). While not idea, your dump file approach is probably the best one for now.