I can build a dataframe and maintain it real time with a ZMQ data stream BUT that’s on My machine and I am a happy bunny. BUT others are whining that I am being a data hog and not sharing. I coded up a web app using stipple.jl but the real time data feed keeps freezing randomly.
I LOVE the new Pluto initiative to provide for real time population of a cell. That married with the Pluto api ability is exciting as well but before heading down that route, which I will, I was wondering IF there is a way to share my dataframe with others across our wired wan. I am familiar with sharedarray but would like to investigate sharing the dataframe if possible.
thanks for ANY help
a LONELY Chicago based Julia amateur developer
How do you want to share the data frame exactly? I.e. how do you want the Python process to be allowed to query the Julia process for data? Do you want to create a web-service that allows other users to query your data? (which could make sense if your data is small). If this is the case then the pattern you could use is shown, for example, in JuliaForDataAnalysis/ch14_server.jl at main · bkamins/JuliaForDataAnalysis · GitHub (you just need to change the code so that it serves the data frame in JSON payload)
conceptually all that would happen is that a dataframe would MAGICALLY appear on each of the remote machines on the network.
I can achieve this easily using ZMQ by just running the julia script on each machine ( loading from cron to make my life easy) and sending the message stream out to multiple listeners so they can do what the like with it. This means that the dataframe would be constructed on all their machines thus NOT shared. It would be the simple approach ( I don’t want to have any web pages here).
Another approach would be dataframe to be an in memory construct possibly Parquet but I haven’t thought that far ahead. Again attractive to me.
I haven’t gotten to chapter 14 in your WONDERFUL book. Thanks for the SPOILER I like that idea and will certainly look into it next week. I wanted to avoid using anything to do with web to be honest as I REALLY want to look into PlutoHooks.jl from @fonsp and from the splendid @lungben
I also considered just using a sharedarray and making the python luddites ( just kidding) do some work.
looking forward to attending your course in Chicago later in 2023. Thanks again for your wonderful blog which is a must read for me munching breakfast in the house of pancakes.
Hey fons THANK YOU for such a inspirational application. I am looking forward to Paul’s wonderful real time cell generation. I have a couple of issues with julia but NOTHING to do with Pluto. Paul has already helped me our tremendously.