This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-18
Channels
- # announcements (2)
- # aws-lambda (14)
- # babashka (4)
- # beginners (66)
- # clojure (113)
- # clojure-spec (9)
- # clojure-uk (7)
- # clojurescript (24)
- # data-science (12)
- # datomic (45)
- # docker (2)
- # emacs (1)
- # fulcro (48)
- # jobs-discuss (22)
- # kaocha (7)
- # keechma (3)
- # luminus (7)
- # off-topic (7)
- # re-frame (6)
- # shadow-cljs (43)
- # spacemacs (18)
- # tools-deps (2)
- # vim (1)
- # vscode (2)
- # yada (11)
Just did a quick example of plotting with numpy and matplotlib/pyplot - interop rocks
https://github.com/gigasquid/libpython-clj-examples/blob/master/src/gigasquid/numpy_plot.clj
@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.
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?
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
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
or as a String
.