You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A major problem with Wolfram we experience is the lack of insight when things go wrong - either when trying to start the kernel, when communicating with it, or during the evaluation of an expression. The question is, how can we detect something went wrong, and how can we get details of what went wrong / what to do?
Regarding evaluation, often when there is a problem, we just get back an unavealuated expression, with no indication of the problem. The same expression typed in Wolfram does the same, but also prints some explanation.
Examples
Kernel errors
Sometimes, we fail to start a kernel, and get back rather useless exception:
This error may have any number of causes and I do not know how to find out more. One possible cause is that we are trying to start n+1st kernel, while our license only allows for n.
(wl/eval "WolframAlpha[\"How many licks does it take to get to the center of a Tootsie Pop?\"]")
; => []
When we do the same thing in Wolfram Script:
In[1]:=WolframAlpha["How many licks does it take to get to the center of a Tootsie Pop?"]
URLFetch::invhttp:
Alibraryerroroccurred. Therawdetailsare: "libcurl error (6): Could not resolve host: api.wolframalpha.com"Out[1]= {}
The way we evaluate expressions is effectively this:
#123 makes it possible to capture and display the warnings Wolfram prints when we evaluate something wrong (too few arguments, path to non-existent file etc). This leverages a PacketListener.
Still missing: Finding out why connection to the kernel failed, when this is caused by having the max license allowed number of instances running already. PacketListener does not seem to retrieve anything useful here.
A major problem with Wolfram we experience is the lack of insight when things go wrong - either when trying to start the kernel, when communicating with it, or during the evaluation of an expression. The question is, how can we detect something went wrong, and how can we get details of what went wrong / what to do?
Regarding evaluation, often when there is a problem, we just get back an unavealuated expression, with no indication of the problem. The same expression typed in Wolfram does the same, but also prints some explanation.
Examples
Kernel errors
Sometimes, we fail to start a kernel, and get back rather useless exception:
This error may have any number of causes and I do not know how to find out more. One possible cause is that we are trying to start n+1st kernel, while our license only allows for n.
The way we start the kernel is:
Evaluation errors
Example (W. Alpha call when being online):
When we do the same thing in Wolfram Script:
The way we evaluate expressions is effectively this:
The text was updated successfully, but these errors were encountered: