Message Boards Message Boards


Python web app with the (free) Wolfram Engine behind a REST service.

Posted 22 days ago
0 Replies
3 Total Likes

If you are interested in a standard but fully functional Python webapp with the newly released Wolfram Engine (Engine for short henceforth) behind a REST service, take a look at this proof of concept.

enter image description here

It's the minimal example of a Python based web app using the Wolfram Engine via the Wolfram client library for Python. It highlights a few features which would be more complex to develop with more classic engines:

  • named entity recognition (NER) is a oneliner here but would require a whole lot of packages (say NLTK or SpaCy) without the Engine.
  • fetching images from Bing or Google would also require various packages and administration (i.e. subscription) and with the Engine it's just another oneliner
  • idem ditto for the weather (forecast)

The Engine is just a single box for a whole lot of technology you can assemble yourself in different ways but Wolfram makes it simply easy to prototype things. That said, there are of course drawbacks and concerns as well but this would requires a book on its own (scalability, cost, security, continuous integration and whatnot). Aside from the grand enterprise architectural concerns the following came up during development of this POC:

  • lots of magic happens but I think the Python client needs more maturity to be fully functional there is some latency and things sometimes 'disappear'; whether it's serialization or threading or inside the Engine is not always clear
  • wrapping larger bits of Mathematica code in a string is not always straightforward. I
  • seems the triple Python quote does not always work and how one should wrap complex logic is not clear (packages?).

All in all, the Engine is potentially a magical solution for all sorts of applications (prototypes). The amount of (computational) intelligence you get for free is astonishing. At the same time, we are still far away from production-ready and scalable technology. I would describe this as prototyping paradise.

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract