Fork me on GitHub
#babashka
<
2021-10-06
>
sb07:10:37

Hello, I would like to help to a friend. I know, much easier solve with python the things from one view or quite impossible with org.apache.poi (buggy xlsm parts). I would like to use libpython-clj from babashka (mainly pandas, openpyxl), what do you think is that possible? I know I can test it, but maybe somebody tested.. and know the limits/ possibilities. I just would like to show Clojure鈥檚 power

borkdude07:10:30

@sb I don't think you can use libpython-clj from bb, just use the JVM in this case

馃憤 1
borkdude07:10:36

It is possible to build a Python pod though.

sb07:10:18

Thank you very much the info!

Karol W贸jcik08:10:49

I would like to get the full classpath retrieved from bb.edn. How can I do it?

borkdude09:10:46

@karol.wojcik bb -e "(babashka.classpath/get-classpath)"

flowthing10:10:02

Is there a reference where I can look up whether Babashka supports a particular class? For example, if I want to check whether Babashka supports java.nio.channels.ServerSocketChannel, where do I look? Or do I just try importing it at the REPL?

borkdude10:10:15

There is java.net.ServerSocket

David Pham14:10:53

Dumb question with babahska tasks, is there a shorter way of getting the same behavior as this: {:out (shell {:out :string} "pwd")}

borkdude14:10:05

@neo2551 (System/getProperty "user.dir")

David Pham14:10:53

But in general, if I want the output from the shell I would need to call the args?

borkdude14:10:55

@neo2551 There is sh in babashka.process (similar to clojure.java.shell)

user=> (:out (sh "pwd"))
"/Users/borkdude/Dropbox/dev/clojure/nbb/examples/vscode-test\n"