3
$\begingroup$

Now that the wolfram engine is free (for developers), I'd like to know how to use it within a chrome extension. It's easy to make a chrome extension, which is essentially just a JSON file with some javascript. But I'd like my chrome extension to run some function like an Interpreter or ClassifierFunction over the text in the div blocks of a page's HTML.

I have yet to find any examples of writing browser integration/applications with wolfram language so tutorial would be great, but any guidance or references would helpful.

$\endgroup$
5
  • 1
    $\begingroup$ The thing is kinda heavy duty to be building into a Chrome extension? Also might be a license violation? Assuming this would be a public extension. Otherwise doesn't it just depend on how one gets the HTML from the page? Past that you can just call wolframscript (assuming Chrome has permissions to do that) $\endgroup$
    – b3m2a1
    Nov 22 '19 at 19:38
  • $\begingroup$ Native messaging seems to be how Chrome plugins communicate with native applications. So the question then becomes, how do you communicate with Wolfram Engine using the standard input and output? $\endgroup$
    – C. E.
    Nov 22 '19 at 19:44
  • $\begingroup$ @b3m2a1 Right, but it's just a personal project, I'm not putting it on the chrome extension store. $\endgroup$
    – M.R.
    Nov 22 '19 at 19:49
  • $\begingroup$ @C.E. or how to use the wolfram python server as a remote call in javascript $\endgroup$
    – M.R.
    Nov 22 '19 at 19:50
  • $\begingroup$ To follow up on what @C.E. said, you just need to call into wolframscript then once you have a way to extract the HTML. If you need a persistent server you could do the python server, but that seems like a layer of unnecessary complexity. $\endgroup$
    – b3m2a1
    Nov 22 '19 at 19:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.