data-science

Data science, data analysis, and machine learning in Clojure https://scicloj.github.io/pages/chat_streams/ for additional discussions
2020-01-18T00:52:44.002500Z

Just did a quick example of plotting with numpy and matplotlib/pyplot - interop rocks

4
❀️ 8
🐍 2
2020-01-18T00:53:00.002900Z

πŸ‘ 2
2020-01-18T20:49:13.009100Z

@gigasquid that is great. If you consider making the plot wrapper into a library API, then it might be good to consider the different ways one may wish to get the result at. For example: β€’ actually opening the plot (as you did) β€’ returning an svg string (useful for creating an html report) β€’ returning a png file (useful for viewing in the Cider REPL). Here is a short session with variations of your method that return a png http://java.io.File and an svg string.

2020-01-18T20:52:25.011500Z

Cool - I’m personally not interested in making a library - but I’m writing a blog post up on it now. I can point people to your improvements if they are interested in making a wrapper. Do you have an idea how to best share it in a blog post. I like the image but it’s hard to get the code out of it?

2020-01-18T20:52:41.011800Z

I’m writing the post now

2020-01-18T20:57:04.012700Z

To be clear - I hope someone does make a wrapper/ lib πŸ™‚ I just know I don’t have the bandwidth to be a good lib owner

2020-01-18T21:19:21.017400Z

Probably at this stage it is more important to write up examples than to try to generalize πŸ™‚. After some more experiments we will hopefully know better about what APIs we may need. Looking forward to see your next blog post! I think the examples I wrote would not add anything interesting to the post. πŸ™ƒ Only wrote them to show that it is sometimes useful go get the result as a <http://java.io|java.io>.File or as a String.

πŸ‘ 1
Kamuela 2020-01-18T21:19:23.017500Z

Nobody says you’d have to own it. Just make it and run haha

πŸ™ƒ 1
2020-01-18T21:21:10.018800Z

My goal right now is to spread knowledge/ awareness of interop and all the great python libraries that we can use that people may not even be aware of because it is out of our ecosystem

πŸ™ 1
2020-01-18T21:24:55.019200Z

trying to get the blog post shipped before I have to go to dinner πŸ™‚

1
2020-01-18T21:36:56.019600Z

https://gigasquidsoftware.com/blog/2020/01/18/parens-for-pyplot/

2
❀️ 6
🚒 1