So I’ve used PyCall very successfully for calling python packages, but how would people suggest calling and working with javascript from within Julia? JSExpr.jl and WebIO.jl look promising, but if I want to import a library and execute js code immediately, not in the context of any event or UI, I wasn’t sure how that would be done and then the result returned to Julia (maybe that last part using the Scope object?).
Trying to go for the Pan Julian approach for my code I’m not a javascript dev by any means, so hopefully this is me just misunderstanding something simple. Thank you for your help!
2 Likes
One option might be https://github.com/davidanthoff/NodeJS.jl. It is not even close to being slick, but it does allow you to run JavaScript code in a node process.
In an ideal world NodeJS.jl would actually embed node and provide a tighter integration. One could imagine a version that ships a shared library version of node via BinaryProvider etc. I won’t have time to do any of that, but if some brave soul wants to tackle that, it would be most welcome.
1 Like
Still slicker than my approach so far, thank you! I wish I was the brave/knowledgeable soul to tighten that integration, but I’ll need to learn more first.
I’ll keep exploring and report back if anything seems useful to the larger group
1 Like